Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1542

facing Invalid intermediate certificate with a governmental site! [SSL: CERTIFICATE_VERIFY_FAILED]

$
0
0

I'm trying to fetch some data from a market exchange website using python with httpx library.

when I make a request to the api I get an error message..

httpx.ConnectError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

but if I ignore the ssl verification verify = False I could bypass this issue and get the desired data.

I have checked the website ssl certificate and the result was that there is Invalid intermediate certificate and it uses TLSv1 protocol.

My question here..

could they use the invalid certificate intentionally?

as I have read some websites use this method to prevent scraping data somehow. but, would a governmental website use this method too?!


Viewing all articles
Browse latest Browse all 1542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>