I was playing around with the CefClient sample app and noticed that when opening HTTPS sites with bad security certificates, the client is simply ignoring the certificate errors and proceeds loading the site. I think this is bad behavior and defeats the purpose of using certificates for secure connections. Ideally the client should tell the user in some way that there is a certificate error and proceed loading only if the user wants to. This is what most browsers including chrome do.
Is there any way to control the same when embedding chromium using Cef in our application? i.e We would like to prompt the user (with our own UI) for his decision and proceed to open the site only if the user chooses to. Is there any callback system already implemented for the same or do I need to dig into chromium code for the same?