Facing SSL issue

Hi, while calling sentinel hub API facing SSL issue can you provide certificate which needs to install in system and that python program in which we are calling API is working fine in personal system but in office system it is throwing SSL errors. Please provide solution for this. Thank You!

SSLError: HTTPSConnectionPool(host=‘services.sentinel-hub.com’, port=443): Max retries exceeded with url: /oauth/token (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate signature failure (_ssl.c:1129)’)))

Hi @s.rajendra.vikhe ,

You could manually add the certificate chains your store. We are using Sectigo Organisation Validated certificates.

Hi @chung.horng
I am facing a similar error while using Sentinelsat:
SSLError: HTTPSConnectionPool(host=‘apihub.copernicus.eu’, port=443): Max retries exceeded with url: /apihub/search?format=json&rows=100&start=0&q=beginPosition%3A%5B%222019-01-01T00%3A00%3A00Z%22+TO+%22NOW%22%5D+cloudcoverpercentage%3A%5B%220%22+TO+%22100%22%5D+platformname%3A%22Sentinel-2%22+processinglevel%3A%22Level-2A%22+footprint%3A%22Contains%28GEOMETRYCOLLECTION%28POLYGON%28%28107.2278+29.9018%2C107.4603+29.9018%2C107.4603+30.0721%2C107.2278+30.0721%2C107.2278+29.9018%29%29%29%29%22 (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)’)))

I am new to programming so I do not really understand how to tackle this problem, could you maybe elaborate a bit more?
So far I have tried:
pip install --upgrade certifi
I have tried to download the certificate you mentioned above and installed it by default.
tried to download the certificate from https://apihub.copernicus.eu/ and installed it by default
But nothing worked.
It would be great if you could help me on this.

Hi @aria.li ,

Unfortunately, I’m not familiar with Sentinelsat. You could try to find a solution on their issue board or raise a new issue their.