CryptoSys PKI Pro Manual

X509.MakeCertSelf Method (String, String, Int32, Int32, String, String, X509.KeyUsageOptions, String, X509.Options)

Create a self-signed X.509 certificate. [DEPRECATED]

Syntax

[C#]
[ObsoleteAttribute("Use X509.MakeCertSelf(String, String, Int, Int, String, String, KeyUsageOptions, String, SigAlgorithm, X509.CertOptions)", 
	false)]
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]
<ObsoleteAttribute("Use X509.MakeCertSelf(String, String, Int, Int, String, String, KeyUsageOptions, String, SigAlgorithm, X509.CertOptions)",  _
	False)> _
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. 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
options
Type: X509.Options
Option flags: set as zero for defaults.

Return Value

Zero if successful or a non-zero error code

Examples (VB.NET)

See Example1

See Also

VB6/C equivalent: X509_MakeCertSelf

[Contents] [Index]

[PREV: X509.MakeCertSelf Method (String, String, Int32, Int32, String, String, X509.KeyUsageOptions, String, SigAlgorithm, X509.CertOptions)...]   [Contents]   [Index]   
   [NEXT: X509.MakeCRL Method (String, String, String, String, String, String, SigAlgorithm, X509.CrlOptions)...]

Copyright © 2004-21 D.I. Management Services Pty Ltd. All rights reserved. Generated 2021-12-27T10:58:57Z.