EasyUA Reference
CreateCertificateViaProxy Method
See Also  Send Feedback
Opc.Ua.Core.Net4 Assembly > Opc.Ua Namespace > CertificateFactory Class : CreateCertificateViaProxy Method

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.

Glossary Item Box

Creates the certificate via a proxy instead of calling the CryptoAPI directly.

Syntax

Visual Basic (Usage)Copy Code
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)

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.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.