Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

Can not load a URL

Post Reply
egold2005
Posts: 11
Joined: Mon Aug 24, 2020 9:32 am

Can not load a URL

Post by egold2005 »

Hello,

I have tried to load my https URL using Simple demo and nothing happens. However i can load it in Chrome browser just fine. The URL contains HERE mapping code in ASP page. Any ideas?

Thanks a lot!
User avatar
salvadordf
Posts: 4575
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Can not load a URL

Post by salvadordf »

Hi,

I have no experience with HERE mapping code but it would be helpful if you could provide the URL to try to reproduce that issue.

Try the official CEF sample application to see if it works :
http://opensource.spotify.com/cefbuilds ... nt.tar.bz2
Student
Posts: 73
Joined: Tue Aug 07, 2018 9:20 am

Re: Can not load a URL

Post by Student »

There may be a missing dll for working with https in the application directory.
Try putting libraries in your program's catalog libeay32.dll, ssleay32.dll for your bit app.
egold2005
Posts: 11
Joined: Mon Aug 24, 2020 9:32 am

Re: Can not load a URL

Post by egold2005 »

Student wrote: Mon Aug 24, 2020 12:26 pm There may be a missing dll for working with https in the application directory.
Try putting libraries in your program's catalog libeay32.dll, ssleay32.dll for your bit app.
This is not the case, because it opens other URLs with https:// just fine.

I am using unmodified SimpleBrowser demo project.
egold2005
Posts: 11
Joined: Mon Aug 24, 2020 9:32 am

Re: Can not load a URL

Post by egold2005 »

Actually i did modify SimpleBrowser project and removed popup handling code, to see if it displays any security warnings. Did not help...
egold2005
Posts: 11
Joined: Mon Aug 24, 2020 9:32 am

Re: Can not load a URL

Post by egold2005 »

i tried the suggested demo browser from the link above and got certificate error:

Page failed to load.
URL: (My URL)
Error: ERR_CERT_AUTHORITY_INVALID (-202)
X.509 Certificate Information:
Field Value
Status CERT_STATUS_COMMON_NAME_INVALID
CERT_STATUS_DATE_INVALID
CERT_STATUS_AUTHORITY_INVALID
User avatar
salvadordf
Posts: 4575
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Can not load a URL

Post by salvadordf »

The certificate in that website has several invalid fields.

You should be able to avoid those problems if you set GlobalCEFApp.IgnoreCertificateErrors to TRUE before the GlobalCEFApp.StartMainProcess call in the DPR file.

You can also implement the TChromium.OnCertificateError event to ignore that particular error if you don't want to ignore all certificate errors.

Read this for more information about that event :
https://magpcss.org/ceforum/apidocs3/pr ... llback%3E)
egold2005
Posts: 11
Joined: Mon Aug 24, 2020 9:32 am

Re: Can not load a URL

Post by egold2005 »

salvadordf wrote: Tue Aug 25, 2020 7:56 am The certificate in that website has several invalid fields.
Thank you Salvador.
Post Reply