DotNetBrowser  1.14
Public Member Functions | List of all members
DotNetBrowser.CertificateVerifier Interface Reference

Represents a service for verifying SSL certificates. More...

Public Member Functions

CertificateVerifyResult Verify (CertificateVerifyParams parameters)
 Verifies the given SSL CertificateVerifyParams.Certificate against the given CertificateVerifyParams.HostName as an SSL server. More...
 

Detailed Description

Represents a service for verifying SSL certificates.

Member Function Documentation

CertificateVerifyResult DotNetBrowser.CertificateVerifier.Verify ( CertificateVerifyParams  parameters)

Verifies the given SSL CertificateVerifyParams.Certificate against the given CertificateVerifyParams.HostName as an SSL server.

This method is invoked every time when Server SSL certificate verification is required. By default Chromium uses its own default certificate verifier which always checks incoming SSL certificate and passes verification results as CertificateVerifyParams.VerifyFlags parameter. You can analyze the verify flags parameter to find out how the given certificate was initially validated by Chromium engine and decide whether it should be accepted/rejected, or Chromium should decide it itself.

If implementation of this method throws an exception, then default behavior will be used - Chromium engine will decide itself whether SSL certificate should be accepted or rejected.

Parameters
parametersdetails about certificate, host, and Chromium verify results.
Returns
CertificateVerifyResult.OK to accept SSL certificate, CertificateVerifyResult.INVALID to reject SSL certificate, CertificateVerifyResult.DEFAULT to let Chromium decide.