Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors: SSL Certificate or Json decoding failed #35

Closed
Opadera opened this issue Jun 13, 2016 · 4 comments
Closed

Errors: SSL Certificate or Json decoding failed #35

Opadera opened this issue Jun 13, 2016 · 4 comments

Comments

@Opadera
Copy link
Contributor

Opadera commented Jun 13, 2016

Hello,

I am trying to implement your tool on a new computer.
running on scihub.coperinicus/s2/ i get SSL certificate problem: self signed certificate in certificate chain

trying with scihub.coperinicus/dhus/: API response not valid. JSON decoding failed.

I tried logged in and with the guest//guest account. The JSON is fine and works on another computer with an older version of the sentinelsat.

Any ideas how I can get the new version to run?

@kr-stn
Copy link
Member

kr-stn commented Jun 14, 2016

This error likely depends on your installation of pyCurl and the CA bundle it uses. Most of the time this issue can be solved by installing certifi - as noted in the troubleshooting section of the docs.

@Opadera
Copy link
Contributor Author

Opadera commented Jun 14, 2016

I already checked certifi, it's installed and updated.

@kr-stn
Copy link
Member

kr-stn commented Jun 14, 2016

Did you try passing through a cacert.pem yourself? We had this issue before (#1) and it is not related to sentinelsat but rather homura>pyCurl>CA certificates. The solutions mostly circle around using a different version of pyCurl, providing the cacert.pem yourself and/or installing openssl dependencies. All very dependent on your OS, your Python installation, environment, etc.

On Windows I saw best results by using conda.

I also just verified that this is not a sentinelsat issue. The download is working fine on Ubuntu 14.04 and Win7 x64 with Python 2.7 and 3.4.

@Opadera
Copy link
Contributor Author

Opadera commented Jun 14, 2016

I uninstalled conda and installed pycurl=7.19.0, updated certifi and it works now.

thanks again for your input

@Opadera Opadera closed this as completed Jun 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants