'Unable to import pfx certificate with password using python
I am trying to import a pfx certificate (with password) using python requests library(Post method).
Code:
headers = {'Authorization': pstr_auth_header, 'Content-Type': 'multipart/form-data', 'accept': 'application/json','CertificatePassword': '8328', 'IsPasswordEncrypted': 'False'}
cert_path = get_cert_path() //for getting certificate path
response = requests.post(pstr_target_url, headers=headers,cert=cert_path, verify=True)
Getting the following error:
HTTPSConnectionPool(host='idprxxxxx.demo.gemxxx.com', port=443): Max retries exceeded with url: /IDxxxxxxx/Proxxxx/V1.0/Tenants/715axxxxx/Users/juhi/Tokens/36dxxxx/Certificate (Caused by SSLError(SSLError(9, '[SSL] PEM lib (_ssl.c:3862)')))
The same is working with Postman. However, not working with python
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
