DotNetBrowser
1.21.5
|
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... | |
Represents a service for verifying SSL certificates.
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 | details about certificate, host, and Chromium verify results. |