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]
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 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 X509.KeyUsageOptions
- Key usage options
- password String
- For issuer's private key
- sigAlg SigAlgorithm
- Signature algorithm to sign certificate.
- options X509.CertOptions
- Option flags: set as zero for defaults.
Return Value
See Also
VB6/C equivalent: X509_MakeCertSelf
[Contents] [Index]