Visual Basic (Usage) | ![]() |
---|---|
Dim executablePath As String Dim storePath As String Dim password As String Dim applicationUri As String Dim applicationName As String Dim subjectName As String Dim domainNames As IList(Of String) Dim keySize As UShort Dim startTime As Date Dim lifetimeInMonths As UShort Dim hashSizeInBits As UShort Dim isCA As Boolean Dim usePEMFormat As Boolean Dim issuerKeyFilePath As String Dim issuerKeyFilePassword As String Dim value As X509Certificate2 value = CertificateFactory.CreateCertificateViaProxy(executablePath, storePath, password, applicationUri, applicationName, subjectName, domainNames, keySize, startTime, lifetimeInMonths, hashSizeInBits, isCA, usePEMFormat, issuerKeyFilePath, issuerKeyFilePassword) |
C# | |
---|---|
public static X509Certificate2 CreateCertificateViaProxy( string executablePath, string storePath, string password, string applicationUri, string applicationName, string subjectName, IList<string> domainNames, ushort keySize, DateTime startTime, ushort lifetimeInMonths, ushort hashSizeInBits, bool isCA, bool usePEMFormat, string issuerKeyFilePath, string issuerKeyFilePassword ) |
Parameters
- executablePath
- The executable path.
- storePath
- The store path.
- password
- The password used to protect the certificate.
- applicationUri
- The application URI.
- applicationName
- Name of the application.
- subjectName
- Name of the subject.
- domainNames
- The domain names.
- keySize
- Size of the key.
- startTime
- The start time.
- lifetimeInMonths
- The lifetime in months.
- hashSizeInBits
- The hash size in bits.
- isCA
- if set to
true
if creating a certificate authority. - usePEMFormat
- if set to
true
the private ket is store in the PEM format. - issuerKeyFilePath
- The path to the PFX file containing the CA private key.
- issuerKeyFilePassword
- The password for the PFX file containing the CA private key.
Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x