X509.MakeCertSelf Method
Create a self-signed X.509 certificate with signature options.
Syntax
[C#]
public static int MakeCertSelf(
string certFile,
string privateKeyFile,
int certNum,
int yearsValid,
string distName,
string extensions,
X509.KeyUsageOptions keyUsageOptions,
string password,
SigAlgorithm sigAlg,
X509.CertOptions options
)
[VB.NET]
Public Shared Function MakeCertSelf ( _
certFile As String, _
privateKeyFile As String, _
certNum As Integer, _
yearsValid As Integer, _
distName As String, _
extensions As String, _
keyUsageOptions As X509.KeyUsageOptions, _
password As String, _
sigAlg As SigAlgorithm, _
options As X509.CertOptions _
) As Integer
Parameters
- certFile
- Name of file to be created
- privateKeyFile
- File containing issuer's private key data
- certNum
- Issue number for new certificate
- yearsValid
- How many years to be valid
- distName
- Distinguished name string. See Distinguished Names in the main manual.
- extensions
- Extensions: a list of attribute-value pairs separated by semicolons (;). See X.509 Extensions Parameter in the main manual.
- keyUsageOptions
- Type: X509.KeyUsageOptions
Key usage options
- password
- For issuer's private key
- sigAlg
- Type: SigAlgorithm
Signature algorithm to sign certificate.
- options
- Type: X509.CertOptions
Option flags: set as zero for defaults.
Return Value
See Also
VB6/C equivalent: X509_MakeCertSelf
[Contents] [Index]