Opc.Ua.Core
CreateCertificateWithPEMPrivateKey Method



Opc.Ua Namespace > CertificateFactory Class : CreateCertificateWithPEMPrivateKey Method
Create a X509Certificate2 with a private key by combining the certificate with a private key from a PEM stream
Syntax
'Declaration
 
Public Shared Function CreateCertificateWithPEMPrivateKey( _
   ByVal certificate As X509Certificate2, _
   ByVal pemDataBlob() As Byte, _
   Optional ByVal password As String _
) As X509Certificate2
'Usage
 
Dim certificate As X509Certificate2
Dim pemDataBlob() As Byte
Dim password As String
Dim value As X509Certificate2
 
value = CertificateFactory.CreateCertificateWithPEMPrivateKey(certificate, pemDataBlob, password)
public static X509Certificate2 CreateCertificateWithPEMPrivateKey( 
   X509Certificate2 certificate,
   byte[] pemDataBlob,
   string password
)
public:
static X509Certificate2^ CreateCertificateWithPEMPrivateKey( 
   X509Certificate2^ certificate,
   array<byte>^ pemDataBlob,
   String^ password
) 

Parameters

certificate
pemDataBlob
password
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CertificateFactory Class
CertificateFactory Members