[Python] SSL: CERTIFICATE_VERIFY_FAILED certificate verify failed : self signed certificate in...

Discussão em 'Python' iniciado por Stack, Maio 18, 2025.

  1. Stack

    Stack Membro Participativo

    I am using python to make a get request to jira cloud rest api to get details of an issue, but getting this SSL verification failed error message, I am using this script

    import requests
    import json

    url = "https://your-domain.atlassian.net/rest/agile/1.0/issue/{issueIdOrKey}"

    headers = {
    "Accept": "application/json",
    "Authorization": "Bearer <access_token>"
    }

    response = requests.request(
    "GET",
    url,
    headers=headers
    )

    print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))


    error message-


    requests.exceptions.SSLError: HTTPSConnectionPool('host=your-domain.atlasian.net', port=443): Max retries exceeded with url: /rest/agile/1.0/issue/{issueIdOrKey} (caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed : self signed certificate in certificate chain (_ssl.c:992)')))
    ​

    Suggest me possible ways to resolve this issue. Thank you!

    Continue reading...

Compartilhe esta Página