You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Security.Cryptography.X509Certificates/CertificateRequest.xml
+26-2Lines changed: 26 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -348,7 +348,16 @@
348
348
<paramname="serialNumber">The serial number to use for the new certificate. This value should be unique per issuer. The value is interpreted as an unsigned integer of arbitrary size in big-endian byte ordering. <seehref="https://tools.ietf.org/html/rfc3280#section-4.1.2.2">RFC 3280</see> recommends confining it to 20 bytes or less.</param>
349
349
<summary>Creates a certificate using the established subject, key, and optional extensions using the specified certificate as the issuer.</summary>
350
350
<returns>An <seecref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object with the specified values. The returned object won't assert <seecref="P:System.Security.Cryptography.X509Certificates.X509Certificate2.HasPrivateKey" />.</returns>
351
-
<remarks>To be added.</remarks>
351
+
<remarks>
352
+
<formattype="text/markdown"><![CDATA[
353
+
354
+
## Remarks
355
+
356
+
This method does not support using MD5 or SHA-1 as the hash algorithm for the certificate signature.
357
+
If you need an MD5 or SHA-1 based certificate signature, you need to implement a custom <xref:System.Security.Cryptography.X509Certificates.X509SignatureGenerator> and call <xref:System.Security.Cryptography.X509Certificates.CertificateRequest.Create(System.Security.Cryptography.X509Certificates.X500DistinguishedName,System.Security.Cryptography.X509Certificates.X509SignatureGenerator,System.DateTimeOffset,System.DateTimeOffset,System.Byte[])>.
358
+
359
+
]]></format>
360
+
</remarks>
352
361
<exceptioncref="T:System.ArgumentNullException">
353
362
<paramrefname="issuerCertificate" /> is <seelangword="null" />.</exception>
354
363
<exceptioncref="T:System.ArgumentException">The <paramrefname="issuerCertificate" /> doesn't contain a private key.
@@ -370,6 +379,7 @@ The type of signing key represented by <paramref name="issuerCertificate" /> cou
370
379
<paramrefname="issuerCertificate" /> has a different key algorithm than the requested certificate.</exception>
<paramrefname="issuerCertificate" /> is an RSA certificate and the current object was created using a constructor that doesn't accept a <paramrefname="padding" /> parameter.</exception>
382
+
<exceptioncref="T:System.ArgumentOutOfRangeException">The <seecref="P:System.Security.Cryptography.X509Certificates.CertificateRequest.HashAlgorithm"/> property value is not supported.</exception>
373
383
</Docs>
374
384
</Member>
375
385
<MemberMemberName="Create">
@@ -462,11 +472,21 @@ The type of signing key represented by <paramref name="issuerCertificate" /> cou
462
472
<paramname="notAfter">The date and time when this certificate is no longer considered valid.</param>
463
473
<summary>Creates a self-signed certificate using the established subject, key, and optional extensions.</summary>
464
474
<returns>An <seecref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> object with the specified values. The returned object will assert <seecref="P:System.Security.Cryptography.X509Certificates.X509Certificate2.HasPrivateKey" />.</returns>
465
-
<remarks>To be added.</remarks>
475
+
<remarks>
476
+
<formattype="text/markdown"><![CDATA[
477
+
478
+
## Remarks
479
+
480
+
This method does not support using MD5 or SHA-1 as the hash algorithm for the certificate signature.
481
+
If you need an MD5 or SHA-1 based certificate signature, you need to implement a custom <xref:System.Security.Cryptography.X509Certificates.X509SignatureGenerator> and call <xref:System.Security.Cryptography.X509Certificates.CertificateRequest.Create(System.Security.Cryptography.X509Certificates.X500DistinguishedName,System.Security.Cryptography.X509Certificates.X509SignatureGenerator,System.DateTimeOffset,System.DateTimeOffset,System.Byte[])>.
482
+
483
+
]]></format>
484
+
</remarks>
466
485
<exceptioncref="T:System.ArgumentException">
467
486
<paramrefname="notAfter" /> represents a date and time that happens earlier than <paramrefname="notBefore" />.</exception>
468
487
<exceptioncref="T:System.InvalidOperationException">The current object was created using a constructor that doesn't accept a signing key.</exception>
469
488
<exceptioncref="T:System.Security.Cryptography.CryptographicException">An error occurs during the certificate creation process.</exception>
489
+
<exceptioncref="T:System.ArgumentOutOfRangeException">The <seecref="P:System.Security.Cryptography.X509Certificates.CertificateRequest.HashAlgorithm"/> property value is not supported.</exception>
470
490
</Docs>
471
491
</Member>
472
492
<MemberGroupMemberName="CreateSigningRequest">
@@ -511,6 +531,9 @@ The type of signing key represented by <paramref name="issuerCertificate" /> cou
511
531
512
532
## Remarks
513
533
534
+
This method does not support using MD5 or SHA-1 as the hash algorithm for the signing request signature.
535
+
If you need an MD5 or SHA-1 based signing request, you need to implement a custom <xref:System.Security.Cryptography.X509Certificates.X509SignatureGenerator> and call <xref:System.Security.Cryptography.X509Certificates.CertificateRequest.CreateSigningRequest(System.Security.Cryptography.X509Certificates.X509SignatureGenerator)>.
536
+
514
537
When submitting a certificate signing request via a web browser, or other graphical or textual
515
538
interface, the input is frequently expected to be in the Privacy Enhanced Mail (PEM) format,
516
539
instead of the DER binary format. To convert the return value to PEM format, make a string
@@ -546,6 +569,7 @@ public static string PemEncodeSigningRequest(CertificateRequest request, PkcsSig
546
569
]]></format>
547
570
</remarks>
548
571
<exceptioncref="T:System.InvalidOperationException">The current object was created using a constructor that doesn't accept a signing key.</exception>
572
+
<exceptioncref="T:System.ArgumentOutOfRangeException">The <seecref="P:System.Security.Cryptography.X509Certificates.CertificateRequest.HashAlgorithm"/> property value is not supported.</exception>
0 commit comments