CertUtils.SerializeCert(X509Certificate2, X509ContentType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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