If you’re working with Python’s requests module and run into the dreaded error:
You're not alone. Many cybersecurity professionals face this issue during packet sniffing, proxy interception (like Burp Suite), or scraping HTTPS services. Most guides recommend using:
But this disables SSL verification, which is a huge security risk.
Here’s a proper fix that keeps your connection secure:
2025 Working Fix:
2. Use it in your code like this:
This uses an updated CA bundle from certifi.io, trusted by Mozilla.
Python:
requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
You're not alone. Many cybersecurity professionals face this issue during packet sniffing, proxy interception (like Burp Suite), or scraping HTTPS services. Most guides recommend using:
Python:
verify=False

Here’s a proper fix that keeps your connection secure:

- Download the latest certifi certificates:
Bash:
pip install --upgrade certifi
2. Use it in your code like this:
Python:
import requests
import certifi
response = requests.get("https://example.com", verify=certifi.where())
print(response.text)
This uses an updated CA bundle from certifi.io, trusted by Mozilla.
Why This Matters in Cybersecurity:
- SSL verification is essential for secure communication.
- Disabling verify=True is dangerous and can expose you to Man-in-the-Middle (MITM) attacks.
- This fix ensures you're safe without bypassing security.