Partager via


interface ICoreWebView2Certificate

interface ICoreWebView2Certificate
  : public IUnknown

Provides access to the certificate metadata.

Summary

Members Descriptions
get_DerEncodedSerialNumber Base64 encoding of 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_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 1.0.1245.22
WebView2 Win32 Prerelease 1.0.1158

Members

get_DerEncodedSerialNumber

Base64 encoding of DER encoded serial number of the certificate.

public HRESULT get_DerEncodedSerialNumber(LPWSTR * value)

Read more about DER at [RFC 7468 DER] (https://tools.ietf.org/html/rfc7468#appendix-B).

The caller must free the returned string with CoTaskMemFree. See API Conventions.

get_DisplayName

Display name for a certificate.

public HRESULT get_DisplayName(LPWSTR * value)

The caller must free the returned string with CoTaskMemFree. See API Conventions

get_Issuer

Name of the certificate authority that issued the certificate.

public HRESULT get_Issuer(LPWSTR * value)

The caller must free the returned string with CoTaskMemFree. See API Conventions.

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)

The caller must free the returned string with CoTaskMemFree. See API Conventions.

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] (https://tools.ietf.org/html/rfc1421).

The caller must free the returned string with CoTaskMemFree. See API Conventions