cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
24384
Views
6
Helpful
16
Replies

Dashboard API via Python - unable to get local issuer certificate (passing through web gateway)

CiscoDave
Frequent Visitor
Frequent Visitor

Hello,

I am using the Meraki Python module and having issues getting through our web gateway.

My old scripts use a request.get where I can pass the certificate location in, but I am unable to see how to do this within the meraki python module

Code / Error:

import meraki

x_cisco_meraki_api_key = 'MyKey'

m = meraki.DashboardAPI(x_cisco_meraki_api_key)
orgs = m.organizations.getOrganizations()

print(orgs)
Organizations, getOrganizations - HTTPSConnectionPool(host='api.meraki.com', port=443): Max retries exceeded with url: /api/v0/organizations (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1045)'))), 
16 Replies 16

cheers

Philip D'Ath
Meraki Community All-Star
Meraki Community All-Star

What OS are you using this on?

Also, are you using a "recent" requests module? Try something like:

pip install -U requests