SSL: CERTIFICATE_VERIFY_FAILED
See original GitHub issueHello,
after building an image yesterday based on:
FROM tiangolo/uwsgi-nginx-flask:python3.8 or
FROM tiangolo/uwsgi-nginx-flask:python3.7
I got this error when conecting to any HTTPS server:
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)> (caused by URLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')))"
I had to add:
RUN apt-get update && apt-get install -y ca-certificates
to my Dockerfile in order to fix it.
Reporting just in case you want to add it to the root image or it helps anybody in the future.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:13
- Comments:8
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
SSL certificate_verify_failed errors typically occur as a result of outdated Python default certificates or invalid root certificates. We will cover how to ...
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

Had to add this to my own docker file and this seemed to fix it for me:
Hey, @drount ! Thanks for giving the fix 💙 . I was facing the exact same problem and this helped a lot.