X509.MakeCert Method (String, String, String, String, Int32, Int32, String, String, X509.KeyUsageOptions, String, X509.Options)
Create a new X.509 certificate using subject's public key and issuer's private key files [DEPRECATED].
Syntax
[C#]
[ObsoleteAttribute("Use X509.MakeCert(String, String, String, String, Int, Int, String, String, X509.KeyUsageOptions, String, SigAlgorithm, X509.CertOptions)",
false)]
public static int MakeCert(
string certFile,
string issuerCert,
string subjectPubKeyFile,
string issuerPriKeyFile,
int certNum,
int yearsValid,
string distName,
string extensions,
X509.KeyUsageOptions keyUsageOptions,
string password,
X509.Options options
)
[VB.NET]
<ObsoleteAttribute("Use X509.MakeCert(String, String, String, String, Int, Int, String, String, X509.KeyUsageOptions, String, SigAlgorithm, X509.CertOptions)", _
False)> _
Public Shared Function MakeCert ( _
certFile As String, _
issuerCert As String, _
subjectPubKeyFile As String, _
issuerPriKeyFile 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
- issuerCert
- Name of issuer's certificate file
- subjectPubKeyFile
- File containing subjects public key data
- issuerPriKeyFile
- 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, if encrypted.
- options
- Type: X509.Options
Option flags: set as zero for defaults.
Return Value
Remarks
See remarks for X509.MakeCert()
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: X509_MakeCert
[Contents] [Index]
[
PREV: X509.MakeCert Method (String, String, String, String, Int32, Int32, String, String, X509.KeyUsageOptions, String, SigAlgorithm, X509.CertOptions)...] [
Contents] [
Index]