apimall / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Expose SSL certificate information via OnCertificateError #1530

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The CefRequestHandler::OnCertificateError method is called from 
CefContentBrowserClient::AllowCertificateError when attempting to visit an 
HTTPS page with an invalid SSL certificate. An argument of type net::SSLInfo 
(net/ssl/ssl_info.h) is passed to AllowCertificateError and includes 
information about the X.509 certificate. Expose enough information to 
OnCertificateError that a client application could verify self-signed 
certificates. This includes the following fields from 
net/cert/x509_certificate.h:

issuer() 
subject()
serial_number()
valid_start()
valid_expiry()
GetDEREncoded()
GetPEMEncoded()

Original issue reported on code.google.com by magreenb...@gmail.com on 11 Feb 2015 at 12:08

GoogleCodeExporter commented 9 years ago
Also, pass the browser to OnCertificateError.

Original comment by magreenb...@gmail.com on 11 Feb 2015 at 12:16

GoogleCodeExporter commented 9 years ago
Fixed in trunk revision 2028 and 2272 branch revision 2029 with the addition of 
a new CefSSLInfo interface.

Original comment by magreenb...@gmail.com on 11 Feb 2015 at 6:16

GoogleCodeExporter commented 9 years ago
Issue 1450 has been merged into this issue.

Original comment by magreenb...@gmail.com on 11 Feb 2015 at 7:11