Click or drag to resize

X509MakeCertSelf Method

Create a self-signed X.509 certificate with signature options.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int MakeCertSelf(
	string certFile,
	string privateKeyFile,
	int certNum,
	int yearsValid,
	string distName,
	string extensions,
	X509KeyUsageOptions keyUsageOptions,
	string password,
	SigAlgorithm sigAlg,
	X509CertOptions options
)

Parameters

certFile  String
Name of file to be created
privateKeyFile  String
File containing issuer's private key data
certNum  Int32
Issue number for new certificate
yearsValid  Int32
How many years to be valid
distName  String
Distinguished name string. See Distinguished Names in the main manual.
extensions  String
Extensions: a list of attribute-value pairs separated by semicolons (;). See X.509 Extensions Parameter in the main manual.
keyUsageOptions  X509KeyUsageOptions
Key usage options
password  String
For issuer's private key
sigAlg  SigAlgorithm
Signature algorithm to sign certificate.
options  X509CertOptions
Option flags: set as zero for defaults.

Return Value

Int32
Zero if successful or a non-zero error code
See Also