Click or drag to resize

X509CertRequest Method

Create a PKCS #10 certificate signing request (CSR).

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int CertRequest(
	string reqFile,
	string privateKeyFile,
	string distName,
	string extensions,
	string password,
	SigAlgorithm sigAlg,
	X509CsrOptions opts
)

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

Int32
Zero if successful or a non-zero error code
Remarks
An ECC key must use an ECDSA signature algorithm, and an RSA key must use an RSA signature algorithm.
See Also