GenerateCertificateCreateSelfSignedCertificate(String, DateTime, DateTime, Int32, Int32, String, String) Method
Creates new certificate with the specified attributes and saves it to a file.
Namespace: SnapDB.SecurityAssembly: 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
)
Public Shared Sub CreateSelfSignedCertificate (
subjectDirName As String,
startDate As DateTime,
endDate As DateTime,
signatureBits As Integer,
keyStrength As Integer,
password As String,
fileName As String
)
public:
static void CreateSelfSignedCertificate(
String^ subjectDirName,
DateTime startDate,
DateTime endDate,
int signatureBits,
int keyStrength,
String^ password,
String^ fileName
)
SnapDB.Security.GenerateCertificate.CreateSelfSignedCertificate = function(subjectDirName, startDate, endDate, signatureBits, keyStrength, password, 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.