Re: ssl.SSLError: [X509] no certificate or crl found

Solved! Go to solution
kunalanand241
Helper

ssl.SSLError: [X509] no certificate or crl found

Hi,

I am getting this error while requesting merchant locator API.

I am using the following code.

headers = {'Accept': 'application/json'}

resp = requests.post(url='https://sandbox.api.visa.com/merchantlocator/v1/locator',
verify='DigiCertGlobalRootCA.crt',
cert=('cert.pem', 'key_71a99b0e-9a2e-4177-a549-4e0910973d4e.pem'),
headers=headers,
auth=(username, password),
data=data)

 please help me out.

Thanks.

4 REPLIES 4
API_Products
Visa Developer Support Specialist

Re: ssl.SSLError: [X509] no certificate or crl found

Hey @kunalanand241,

 

I'll be happy to help you resolve the issue. Please let me take a look and I'll get back to you soon.

 




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

kunalanand241
Helper

Re: ssl.SSLError: [X509] no certificate or crl found

I don't know exactly how that happened but removing the part 

verify='DigiCertGlobalRootCA.crt',

worked for me.

 

I followed the steps from Visa Dev webinar to make an api request using python and got it done.

https://www.youtube.com/watch?v=8wb1ihF1vaQ&t=86s 

API_Products
Visa Developer Support Specialist

Re: ssl.SSLError: [X509] no certificate or crl found

Hey @kunalanand241,

 

Excellent! Great to hear, and thanks for sharing how you got it done. Feel free to reach out to us if you have other questions and we'll be happy to help.




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

kunalanand241
Helper

Re: ssl.SSLError: [X509] no certificate or crl found

Thanks Diana