Share via


CertUtils.SerializeCert(X509Certificate2, X509ContentType) Method

Definition

Returns serialized certificate - Base64 encoded based on the content type

public static string SerializeCert (System.Security.Cryptography.X509Certificates.X509Certificate2 cert, System.Security.Cryptography.X509Certificates.X509ContentType contentType);
static member SerializeCert : System.Security.Cryptography.X509Certificates.X509Certificate2 * System.Security.Cryptography.X509Certificates.X509ContentType -> string
Public Shared Function SerializeCert (cert As X509Certificate2, contentType As X509ContentType) As String

Parameters

cert
X509Certificate2

The certificate provided

contentType
X509ContentType

Cert content type

Returns

The serialized cert value in string

Applies to