Page 1 of 1

SSL error inside iFrame

PostPosted: Mon Jun 05, 2017 4:04 pm
by rodrigobarros
Hello all!

I have a situation where some content is loaded inside an iframe. This content may have a bad certificate which results in error loading.
I see viewtopic.php?f=6&t=11159 which describes the situation as by design but I´m wondering if it is possible to detect and/or bypass this error somehow in a specific situation. If so, how would this be?

I really appreciate any help on this.

Thanks,

Rodrigo.

Re: SSL error inside iFrame

PostPosted: Tue Jun 06, 2017 1:22 am
by Czarek
Use CefRequestHandler::OnCertificateError to ignore cert errors for specific websites.

Re: SSL error inside iFrame

PostPosted: Tue Jun 06, 2017 1:47 am
by magreenblatt
Czarek wrote:Use CefRequestHandler::OnCertificateError to ignore cert errors for specific websites.

OnCertificateError won't be called for subresource loads with invalid certificates. You can implement OnLoadError to be notified of the load failure.

Re: SSL error inside iFrame

PostPosted: Tue Jun 06, 2017 2:49 am
by Czarek
What about CefSettings.ignore_certificate_errors to ignore all errors?

Re: SSL error inside iFrame

PostPosted: Tue Jun 06, 2017 8:14 am
by rodrigobarros
Guys, thanks for the responses.
I can detect that an error occurred on OnLoadError but can I take care of it and continue the loading based on which error occurred?
Unfortunately ignore_certificate_errors would require to ignore all errors and I cant do that. I need to take care of an specific error.

Thanks again!