CryptoSys PKI Toolkit Manual
X509.MakeCertSelf Method
Creates a self-signed X.509 certificate
Syntax
[C#]
public static int MakeCertSelf(
string certFile,
string privateKeyFile,
int certNum,
int yearsValid,
string distName,
string extensions,
X509.KeyUsageOptions keyUsageOptions,
string password,
X509.Options 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, _
options As X509.Options _
) 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
- extensions
- See MakeCert(String, String, String, String, Int32, Int32, String, String, X509.KeyUsageOptions, String, X509.Options)
- keyUsageOptions
- Type: X509.KeyUsageOptions
Key usage options
- password
- For issuer's private key
- options
- Type: X509.Options
Option flags. See X509.Options.
Return Value
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: X509_MakeCertSelf
[Contents] [Index]