untrusted security certificate

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

untrusted security certificate

Postby sirjo66 » Sun Nov 03, 2019 12:27 pm

Hello,
with Chrome browser, if I navigate to a certain web page, appeare a certificate error, and it tell me that there is a "untrusted security certificate".

Error code:
DLG_FLAGS_INVALID_CA
DLG_FLAGS_SEC_CERT_CN_INVALID

Ok, with Chrome I click on "go ahead" and it works.

But how can do it with CEF ???

On a post I read: " You can use CefRequestHandler::OnCertificateError to allow invalid certificates." but I can't find OnCertificateError event on browser object.
I find LoadError event, and this event is call when I try to navigate to this page, but I don't understand how tell to it that it need to go ahead.

Many thanks
Sergio
sirjo66
Newbie
 
Posts: 6
Joined: Wed Oct 23, 2019 7:24 am

Re: untrusted security certificate

Postby sirjo66 » Mon Nov 04, 2019 1:19 am

SOLVED !!

with this line:
Code: Select all
CefSharp.Cef.Initialize(New CefSettings With {.IgnoreCertificateErrors = True})


Sergio
sirjo66
Newbie
 
Posts: 6
Joined: Wed Oct 23, 2019 7:24 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 41 guests