Post #4026642
2026-07-23 04:06 UTC
curl --cacert cert.pem https://zapgirl/
works just fine!
but when I do:
python -c "import requests;requests.get('https://zapgirl/',cert='cert.pem')"
SSLError(SSLCertVerificationError(1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: Hostname mismatch, certificate is not valid for 'zapgirl'. (_ssl.c:1077)"))
Replies (1)
-
@foone@digipres.club 2026-07-23 04:07
same cert! same hostname! same server! requests says it can't talk to the server because the hostname is invalid, but curl can talk to it just fine