Opc.Ua.Core
CreateCertificateWithPrivateKey Method



Opc.Ua Namespace > CertificateFactory Class : CreateCertificateWithPrivateKey Method
Create a X509Certificate2 with a private key by combining the new certificate with a private key from an existing certificate
Syntax
'Declaration
 
Public Shared Function CreateCertificateWithPrivateKey( _
   ByVal certificate As X509Certificate2, _
   ByVal certificateWithPrivateKey As X509Certificate2 _
) As X509Certificate2
'Usage
 
Dim certificate As X509Certificate2
Dim certificateWithPrivateKey As X509Certificate2
Dim value As X509Certificate2
 
value = CertificateFactory.CreateCertificateWithPrivateKey(certificate, certificateWithPrivateKey)
public static X509Certificate2 CreateCertificateWithPrivateKey( 
   X509Certificate2 certificate,
   X509Certificate2 certificateWithPrivateKey
)

Parameters

certificate
certificateWithPrivateKey
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