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 requestsimport jsonurl = "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): Maxretries exceeded with url: /rest/agile/1.0/issue/{issueIdOrKey}(caused by SSLError(SSLCertVerificationError(1, '[SSL:CERTIFICATE_VERIFY_FAILED] certificate verify failed : self signedcertificate in certificate chain (_ssl.c:992)')))
Suggest me possible ways to resolve this issue.Thank you!