interface ICoreWebView2Certificate

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

interface ICoreWebView2Certificate
  : public IUnknown

Provides access to the certificate metadata.

Summary

Members Descriptions
get_DerEncodedSerialNumber DER encoded serial number of the certificate.
get_DisplayName Display name for a certificate.
get_Issuer Name of the certificate authority that issued the certificate.
get_Kind Kind of a certificate (eg., smart card, pin, other).
get_PemEncodedIssuerCertificateChain Collection of PEM encoded certificate issuer chain.
get_Subject Subject of the certificate.
get_ValidFrom The valid start date and time for the certificate as the number of seconds since the UNIX epoch.
get_ValidTo The valid expiration date and time for the certificate as the number of seconds since the UNIX epoch.
ToPemEncoding PEM encoded data for the certificate.

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 1.0.1158

Members

get_DerEncodedSerialNumber

DER encoded serial number of the certificate.

public HRESULT get_DerEncodedSerialNumber(LPWSTR * value)

Read more about DER at RFC 7468 DER.

get_DisplayName

Display name for a certificate.

public HRESULT get_DisplayName(LPWSTR * value)

get_Issuer

Name of the certificate authority that issued the certificate.

public HRESULT get_Issuer(LPWSTR * value)

get_Kind

Kind of a certificate (eg., smart card, pin, other).

public HRESULT get_Kind(COREWEBVIEW2_CERTIFICATE_KIND * value)

get_PemEncodedIssuerCertificateChain

Collection of PEM encoded certificate issuer chain.

public HRESULT get_PemEncodedIssuerCertificateChain(ICoreWebView2StringCollection ** value)

In this collection first element is the current certificate followed by intermediate1, intermediate2...intermediateN-1. Root certificate is the last element in collection.

get_Subject

Subject of the certificate.

public HRESULT get_Subject(LPWSTR * value)

get_ValidFrom

The valid start date and time for the certificate as the number of seconds since the UNIX epoch.

public HRESULT get_ValidFrom(double * value)

get_ValidTo

The valid expiration date and time for the certificate as the number of seconds since the UNIX epoch.

public HRESULT get_ValidTo(double * value)

ToPemEncoding

PEM encoded data for the certificate.

public HRESULT ToPemEncoding(LPWSTR * pemEncodedData)

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