Root 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.

Root certificate

Postby mrborman » Wed Jul 18, 2018 10:51 pm

Hello!
Can you please say, how i must add a root sertificate to CEF? When i try to open sites by https - some sites opens successfully, but some (who was signed not by well-known CA) i can't open. Some times it is white screen and andless loading (i.e. https://finist.71036.kz ) sometimes it is error -101. (i.e. https://pki.gov.kz/). With http - they will be opened w/o problems. So, i think - problem in "non-standard" CA? How i must fix this problem?

I have tried "cefclient.exe --disable-web-security --ignore-certificate-errors" but w/o any changes.

Thanks.
mrborman
Newbie
 
Posts: 5
Joined: Wed Jul 18, 2018 10:26 pm

Re: Root certificate

Postby magreenblatt » Thu Jul 19, 2018 10:14 am

CEF/Chromium uses the OS certificate store. So you should install the root certificate using whatever method your OS supports.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Root certificate

Postby ndesktop » Thu Jul 19, 2018 11:03 am

The issuer (ҰЛТТЫҚ КУӘЛАНДЫРУШЫ ОРТАЛЫҚ (RSA)) seems to be some Kazakhstan certificate authority which indeed is not in Root CA.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Root certificate

Postby mrborman » Thu Jul 19, 2018 12:05 pm

Thanks. But:

1. I have installed a CA certificate as a entrusted root certificate. "Chrome" began to open the website normally. (Before Chrome also didn't open the website). But CEF still doesn't open (error -101).

2. I need to exempt the user from excess gestures. The Application will work with one website with one certificate which is supposed to be embedded in the application. Not to force the user to put separately the certificate. User must download application, run it and begin to work. No any other actions. (Application for state structures.).

Are any ways to solve my task?...
mrborman
Newbie
 
Posts: 5
Joined: Wed Jul 18, 2018 10:26 pm

Re: Root certificate

Postby magreenblatt » Thu Jul 19, 2018 12:11 pm

Is CefRequestHandler::OnCertificateError being called for your certificate? If so, you can try allowing it there.
magreenblatt
Site Admin
 
Posts: 12407
Joined: Fri May 29, 2009 6:57 pm

Re: Root certificate

Postby mrborman » Tue Jul 24, 2018 5:19 am

i'm very sorry, but.... i can't find OnCertificateError anywhere in project. Where is it?
mrborman
Newbie
 
Posts: 5
Joined: Wed Jul 18, 2018 10:26 pm

Re: Root certificate

Postby ndesktop » Tue Jul 24, 2018 5:45 am

mrborman wrote:i'm very sorry, but.... i can't find OnCertificateError anywhere in project. Where is it?

Defined here and sample implementation here.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 44 guests