[Python] Why do HTTPS requests produce SSL CERTIFICATE_VERIFY_FAILED error?

Discussão em 'Python' iniciado por Stack, Março 21, 2025.

  1. Stack

    Stack Membro Participativo

    Here is my Python code:

    import requests
    requests.get('https://google.com')


    This is the error:

    requests.exceptions.SSLError: HTTPSConnectionPool(host='google.com', port=443):
    Max retries exceeded with url: / (Caused by SSLError(SSLError(1,
    '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)'),))


    Using Insomnia gives me an error related with certificates:

    [​IMG]

    My OS is Windows 7 Professional.

    Continue reading...

Compartilhe esta Página