DefaultRequestHandlerOnCertificateError Method |
Version 75.1.140
Called to handle requests for URLs with an invalid SSL certificate.
Return true and call
Continue(Boolean) either
in this method or at a later time to continue or cancel the request.
If CefSettings.IgnoreCertificateErrors is set all invalid certificates
will be accepted without calling this method.
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 75.1.140.0 (75.1.140.0)
Syntax public virtual bool OnCertificateError(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
CefErrorCode errorCode,
string requestUrl,
ISslInfo sslInfo,
IRequestCallback callback
)
public:
virtual bool OnCertificateError(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
CefErrorCode errorCode,
String^ requestUrl,
ISslInfo^ sslInfo,
IRequestCallback^ callback
)
Parameters
- chromiumWebBrowser
- Type: CefSharpIWebBrowser
the ChromiumWebBrowser control - browser
- Type: CefSharpIBrowser
the browser object - errorCode
- Type: CefSharpCefErrorCode
the error code for this invalid certificate - requestUrl
- Type: SystemString
the url of the request for the invalid certificate - sslInfo
- Type: CefSharpISslInfo
ssl certificate information - callback
- Type: CefSharpIRequestCallback
Callback interface used for asynchronous continuation of url requests.
If empty the error cannot be recovered from and the request will be canceled automatically.
Return Value
Type:
BooleanReturn false to cancel the request immediately. Return true and use
IRequestCallback to
execute in an async fashion.
Implements
IRequestHandlerOnCertificateError(IWebBrowser, IBrowser, CefErrorCode, String, ISslInfo, IRequestCallback)See Also