Table of Contents

Class CoreWebView2Certificate

Namespace
Microsoft.Web.WebView2.Core
Assembly
Microsoft.Web.WebView2.Core.dll

Represents a certificate. Gives access to a certificate's metadata.

public class CoreWebView2Certificate
Inheritance
CoreWebView2Certificate
Inherited Members

Properties

DerEncodedSerialNumber

Base64 encoding of DER encoded serial number of the certificate. Read more about DER at RFC 7468 DER.

public string DerEncodedSerialNumber { get; }

Property Value

string

DisplayName

Display name for a certificate.

public string DisplayName { get; }

Property Value

string

Issuer

Name of the certificate authority that issued the certificate.

public string Issuer { get; }

Property Value

string

PemEncodedIssuerCertificateChain

Returns list of PEM encoded certificate issuer chain. In this list first element is the current certificate followed by intermediate1, intermediate2...intermediateN-1. Root certificate is the last element in the list.

public IReadOnlyList<string> PemEncodedIssuerCertificateChain { get; }

Property Value

IReadOnlyList<string>

Subject

Subject of the certificate.

public string Subject { get; }

Property Value

string

ValidFrom

The valid date and time for the certificate since the UNIX epoc.

public DateTime ValidFrom { get; }

Property Value

DateTime

ValidTo

The valid date and time for the certificate since the UNIX epoc.

public DateTime ValidTo { get; }

Property Value

DateTime

Methods

ToPemEncoding()

PEM encoded data for the certificate. Returns Base64 encoding of DER encoded certificate. Read more about PEM at RFC 1421 Privacy Enhanced Mail.

public string ToPemEncoding()

Returns

string

ToX509Certificate2()

Converts this to a X509Certificate2.

public X509Certificate2 ToX509Certificate2()

Returns

X509Certificate2

An object created using PEM encoded data from this CoreWebView2Certificate object.

See Also