Table of Contents

Class CoreWebView2ClientCertificate

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

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

public class CoreWebView2ClientCertificate
Inheritance
CoreWebView2ClientCertificate
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

Kind

Kind of a certificate. See CoreWebView2ClientCertificateKind for descriptions.

public CoreWebView2ClientCertificateKind Kind { get; }

Property Value

CoreWebView2ClientCertificateKind

PemEncodedIssuerCertificateChain

Returns list of PEM encoded client 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 CoreWebView2ClientCertificate object.

See Also