Opc.Ua.Security.Certificates
ExportCertificateAsPEM Method



Opc.Ua.Security.Certificates Namespace > PEMWriter Class : ExportCertificateAsPEM Method
Returns a byte array containing the cert in PEM format.
Syntax
'Declaration
 
Public Shared Function ExportCertificateAsPEM( _
   ByVal certificate As X509Certificate2 _
) As Byte()
'Usage
 
Dim certificate As X509Certificate2
Dim value() As Byte
 
value = PEMWriter.ExportCertificateAsPEM(certificate)
public static byte[] ExportCertificateAsPEM( 
   X509Certificate2 certificate
)
public:
static array<byte>^ ExportCertificateAsPEM( 
   X509Certificate2^ certificate
) 

Parameters

certificate
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

PEMWriter Class
PEMWriter Members