Working with Certificates

EO.WebBrowser supports both server certificate and client certificate.

Server Certificate

Server certificates is the certificate that the web server presents to the browser (in this case EO.WebBrowser). The server may present an invalid certificate. In this case the WebView's CertificateError event will be raised. Inside your event handler you can:

  • Prompt the user that the server has presented an invalid certificate. You can examine the event argument for more information about the error;
  • If you wish to ignore the error and continue, call the event argument's Continue method to continue the request. If you do not call this method, the request will be cancelled;

Client Certificate

Client certificate is the certificate that the browser (in this case EO.WebBrowser) presents to the server. If this is the case, the server will ask the browser for a certificate. When this happens, the WebView's NeedClientCertificate event will be raised. Inside this event handler you can:

  • Call the event argument's Continue method with your client certificate. The server may accept or reject your client certificate. If the server rejects your client certificate, the request will be cancelled; -- OR --
  • Call the event argument's ContinueWithoutCertificate method to continue without a certificate. The server may accept or reject this. If the server rejects this, the request will be cancelled;