I'm getting the following error when trying to open a GeoJSON file in QGIS:

Data source is invalid (SSL certificate problem: self signed certificate in certificate chain)

Is this related to the page being https? Is there a workaround to get the file downloaded locally? I found a couple mentions of it possibly being a bug but no solution was given. Normally I remove the 's' to make it unsecured and it works but in this instance it won't allow me.

Query page

Query result

3 Answers 3


I have found the following solution:

Firstly, I added the below variables within QGIS -> Settings ->Options- > System-> Environment section. (It wasn't any immediate effect), but then I added them at System environmental variables (at OS system properties):


Variable Value: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36


Variable Value: YES

Restart QGIS and them try to add the GeoJSON file link again.

  • This solution is same as using http directly as topicstarter wrote. You only disable secure in https. Sep 9, 2018 at 20:48
  • This worked, the key is adding the OS system environmental variables as well. Thanks Ioana.
    – brink
    Sep 13, 2018 at 18:21

I can run the query for layer "reference markers" on your page, I can't replicate the error, this is the url that points to the geojson that's generated from the query (you may Add-vector-layer>>protocol>>url in QGIS) is this what you are looking for?

  • I can run the query, I can't get it to load in QGIS. Your link is invalid by the way.
    – brink
    Sep 11, 2018 at 17:12

Try alternative installer of QGIS by NextGIS. This problem occurs in QGIS from qgis.org because of outdated openssl library. In NextGIS installer most of libraries are up to date.

Also you may see blogpost about new installer.

  • I was hoping for at least a workaround instead of buying software.
    – brink
    Sep 6, 2018 at 18:43
  • It's free. No need to buy anything exists in normal QGIS. Also you can install NextGIS QGIS near the QGIS. They not conflicting. Sep 6, 2018 at 20:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.