GenerateCertificateCreateSelfSignedCertificate(String, DateTime, DateTime, Int32, Int32, String, String) Method

Creates new certificate with the specified attributes and saves it to a file.

Definition

Namespace: SnapDB.Security
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static void CreateSelfSignedCertificate(
	string subjectDirName,
	DateTime startDate,
	DateTime endDate,
	int signatureBits,
	int keyStrength,
	string password,
	string fileName
)

Parameters

subjectDirName  String
The distinguished name for the subject.
startDate  DateTime
The validity start date of the certificate.
endDate  DateTime
The validity end date of the certificate.
signatureBits  Int32
The number of bits for the signature algorithm.
keyStrength  Int32
The key strength for generating public/private key pairs.
password  String
The password to protect the private key in the PKCS#12 file.
fileName  String
The name of the PKCS#12 file to save the certificate.

See Also