X509.CertRequest Method (String, String, String, String, String, SigAlgorithm, X509.CsrOptions)
Create a PKCS #10 certificate signing request (CSR).
Syntax
[C#]
public static int CertRequest(
string reqFile,
string privateKeyFile,
string distName,
string extensions,
string password,
SigAlgorithm sigAlg,
X509.CsrOptions opts
)
[VB.NET]
Public Shared Function CertRequest ( _
reqFile As String, _
privateKeyFile As String, _
distName As String, _
extensions As String, _
password As String, _
sigAlg As SigAlgorithm, _
opts As X509.CsrOptions _
) As Integer
Parameters
- reqFile
- Name of Certificate Signing Request file to be created
- privateKeyFile
- Name of subject's encrypted private key file
- distName
- Specifying the subject's distinguished name as a set of attribute key=value pairs separated with semi-colons (;). See Specifying Distinguished Names
- extensions
- A list of attribute-value pairs to be included in an extensionRequest field. See X.509 Extensions
- password
- password for Subject's encrypted private key file
- sigAlg
- Type: SigAlgorithm
Signature algorithm (must match key type)
- opts
- Type: X509.CsrOptions
Option flags: set as zero for defaults.
Return Value
Remarks
An ECC key must use an ECDSA signature algorithm, and an RSA key must use an RSA signature algorithm.
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: X509_CertRequest
[Contents] [Index]