Create a PKCS #10 certificate signing request (CSR).
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int CertRequest(
string reqFile,
string privateKeyFile,
string distName,
string extensions,
string password,
SigAlgorithm sigAlg,
X509CsrOptions opts
)
Public Shared Function CertRequest (
reqFile As String,
privateKeyFile As String,
distName As String,
extensions As String,
password As String,
sigAlg As SigAlgorithm,
opts As X509CsrOptions
) As Integer
Parameters
- reqFile String
- Name of Certificate Signing Request file to be created
- privateKeyFile String
- Name of subject's encrypted private key file
- distName String
- Specifying the subject's distinguished name as a set of attribute key=value pairs
separated with semi-colons (;).
See Specifying Distinguished Names
- extensions String
- A list of attribute-value pairs
to be included in an extensionRequest field.
See X.509 Extensions
- password String
- password for Subject's encrypted private key file
- sigAlg SigAlgorithm
- Signature algorithm (must match key type)
- opts X509CsrOptions
- Option flags: set as zero for defaults.
Return Value
Int32Zero if successful or a non-zero
error code
RemarksAn ECC key must use an ECDSA signature algorithm, and an RSA key must use an RSA signature algorithm.
See Also