1

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

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 Name: GDAL_HTTP_USERAGENT

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

Variable Name: GDAL_HTTP_UNSAFESSL

Variable Value: YES

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

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

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?

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

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.

2
  • I was hoping for at least a workaround instead of buying software.
    – brink
    Commented 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. Commented 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.