SSL: CERTIFICATE_VERIFY_FAILED
See original GitHub issueHi!
I have a private app set up with shopify and I’m trying to make a Django app that uses the Shopify Python API however I can’t seem to get passed step 6 in the Getting Started instructions!
shop_url = "https://%s:%s@SHOP_NAME.myshopify.com/admin" % (API_KEY, PASSWORD)
shopify.ShopifyResource.set_site(shop_url)
shop = shopify.Shop.current()
Above is all I have put in, obviously with my shop name and api credentials filled in, however when it gets to that last line I get an SSL error:
pyactiveresource.connection.Error: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>
I have a decent understanding of what the error is but I don’t understand why I’m getting it when I know for a fact I’m using the right credentials and following the instructions properly.
Anyone have an ideas?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
python - urllib and "SSL: CERTIFICATE_VERIFY_FAILED" Error
If you have installed Python 3.6 on OSX and are getting the "SSL: CERTIFICATE_VERIFY_FAILED" error when trying to connect to an https:// site,...
Read more >What is an SSL 'Certificate_Verify_Failed' Error and How Do I ...
SSL certificate_verify_failed errors typically occur as a result of outdated Python default certificates or invalid root certificates. If you're a website owner ...
Read more >How to Fix SSL: CERTIFICATE_VERIFY_FAILED Error In ...
Once a browser receives the SSL certificate from the server, it will chain back to the root. It tracks the certificate chain back...
Read more >4 Ways to fix SSL: CERTIFICATE_VERIFY_FAILED in Python
If you receive the “certificate_verify_failed” error when trying to connect to a website, it means that the certificate on the website is not...
Read more >PIP connection Error : SSL CERTIFICATE VERIFY FAILED
The most common issue in installing python package in a company's network is failure of verification of SSL Certificate. Sometimes company blocks some ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same issue on macOS with Python 3.6.0. This solution—detailed at https://stackoverflow.com/a/42098127/592820—resolved the problem for me:
Run
/Applications/Python\ 3.6/Install\ Certificates.command
from a terminal.@clintonb You da bomb! I also had no problems with 2.7 but, when switched to 3.6 your fix worked.