SSL error inside iFrame

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

SSL error inside iFrame

Postby rodrigobarros » Mon Jun 05, 2017 4:04 pm

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.
rodrigobarros
Techie
 
Posts: 13
Joined: Wed Nov 02, 2016 1:52 pm

Re: SSL error inside iFrame

Postby Czarek » Tue Jun 06, 2017 1:22 am

Use CefRequestHandler::OnCertificateError to ignore cert errors for specific websites.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: SSL error inside iFrame

Postby magreenblatt » Tue Jun 06, 2017 1:47 am

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.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: SSL error inside iFrame

Postby Czarek » Tue Jun 06, 2017 2:49 am

What about CefSettings.ignore_certificate_errors to ignore all errors?
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: SSL error inside iFrame

Postby rodrigobarros » Tue Jun 06, 2017 8:14 am

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!
rodrigobarros
Techie
 
Posts: 13
Joined: Wed Nov 02, 2016 1:52 pm


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 20 guests