question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SSL: CERTIFICATE_VERIFY_FAILED

See original GitHub issue

Hello,

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:open
  • Created 3 years ago
  • Reactions:13
  • Comments:8

github_iconTop GitHub Comments

4reactions
ssilvermcommented, Aug 31, 2020

Had to add this to my own docker file and this seemed to fix it for me:

RUN apt-get update
RUN apt-get install -y --reinstall ca-certificates
3reactions
sameshlcommented, May 22, 2020

Hey, @drount ! Thanks for giving the fix 💙 . I was facing the exact same problem and this helped a lot.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found