Create a self-signed X.509 certificate with signature options.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int MakeCertSelf(
string certFile,
string privateKeyFile,
int certNum,
int yearsValid,
string distName,
string extensions,
X509KeyUsageOptions keyUsageOptions,
string password,
SigAlgorithm sigAlg,
X509CertOptions options
)
Public Shared Function MakeCertSelf (
certFile As String,
privateKeyFile As String,
certNum As Integer,
yearsValid As Integer,
distName As String,
extensions As String,
keyUsageOptions As X509KeyUsageOptions,
password As String,
sigAlg As SigAlgorithm,
options As X509CertOptions
) As Integer
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
Int32Zero if successful or a non-zero
error code
See Also