-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async operations gets a certificate error (while sync operation works fine) #226
Comments
The output:
|
Hi @obrigg are you still having this issue? If so are you able to test from different physical locations (e.g. not behind a firewall that might be doing SSL decryption)? |
It still happens from various locations. |
Having trouble recreating this in Python 3.11; script succeeds:
|
Hi. I have this issue as well. I can workaround it by setting ssl verification to False. (Meraki -> aio -> rest_session.py) Make the HTTP request to the API endpoint
I assume that the issue is with a certificate. If I test SSL certificate I see this: openssl s_client -showcerts -connect api.meraki.com:443 -brief CN is ios.meraki.com. I think it should be api.meraki.com. Can you do the same test from a working location to check CN ? |
Hi @LeChat19 thanks for sharing this. I see similar output from those commands, but still successful script execution. From Ubuntu:
And from Windows:
|
I'm still confused why we are using certificate signed for ios.meraki.com while requests are sent to api.meraki.com. However looking to this issue I see that it's a common one for Mac. Issue is with access to MacOS root certificates. It can be fixed by installing root certificates: % cd /Applications/Python\ 3.10 (can be different depending on version) % ./Install\ Certificates.command I was able to run the script. |
Thank you @LeChat19. My test above was from a Windows machine. I am also left wondering why connections via For now though, I'm not seeing any definitive evidence that this is a library-side issue.
With that said I've marked this ticket 'not able to reproduce' and welcome further guidance and feedback from the community. |
I think this is the official information regarding this issue. https://bugs.python.org/issue43404 Can we update documentation that we need to run the "Install Certificates.command" on Macos or disable SSL certificate verification ? Disabling SSL verification is a workaround. |
Updating async readme for #226.
Thanks for your help, @LeChat19. I've updated the readme to cover this macOS limitation. I'll close the issue. |
Python version installed
3.10
Meraki library version installed
meraki==1.37.2
Have you reproduced the issue with the latest version of this library? And with the latest version of Python?
Yes
OS Platform
MacOS 13.5.2
Describe the bug
On some computers (3 people reported this so far - two of them are Cisco folks with standard Cisco IT Macs.), the async operation for
getOrganizationAdmins
results in a self-sign certificate error (?!) while the equivalent sync operation works fine.How can we replicate the problem you're reporting?
Run the snippet below on an affected computer.
Expected behavior
A clear and concise description of what you expected to happen instead, and why.
Code snippets
The text was updated successfully, but these errors were encountered: