X509BasicConstraintsExtension.CreateForCertificateAuthority Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an instance of X509BasicConstraintsExtension appropriate for a certificate authority, optionally including a path length constraint value.
public static System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension CreateForCertificateAuthority (int? pathLengthConstraint = default);
static member CreateForCertificateAuthority : Nullable<int> -> System.Security.Cryptography.X509Certificates.X509BasicConstraintsExtension
Public Shared Function CreateForCertificateAuthority (Optional pathLengthConstraint As Nullable(Of Integer) = Nothing) As X509BasicConstraintsExtension
Parameters
The longest valid length of a certificate chain between the certificate containing this extension and an end-entity certificate.
The default is null
, an unconstrained length.
Returns
The configured basic constraints extension.
Exceptions
pathLengthConstraint
is a non-null
value less than zero.
Remarks
Following the guidance from IETF RFC 3280, the extension returned from this method will have the Critical property set to true
.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om