SSLCertVerificationError when querying big query using pd.read_gbq - python

I'm getting this verification error whenever I try to query big query from jupyter notebooks. Does anyone know what I need to do to fix this?
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain

Related

Python kopf operator throwing ssl certificate error

When i try to deploy my operator on k8 cluster, it’s throwing error like ssl certificate like
clientconnectorcertificateerror(connectionkey(host='10.xxxxxx',
port=443, is_ssl=true, ssl=none, proxy=none, proxy_auth=none,
proxy_headers_hash=xxxxxxxxxx), sslcertverificationerror(1, '[ssl:
certificate_verify_failed] certificate verify failed: unable to get
issuer certificate (_ssl.c:1131)'))
Basically it’s trying to do GET request to kubernetes api and hitting with this error !!
Should I need to configure anything on kopf ?
When I tried to deploy this operator on minikube it was working, but when it is deployed in k8’s cluster it throwing ssl certificate error actually it is trying to do GET request to kubernets api but not able connect with kubernetes api

How to get local issuer certificate on wsl2?

I'm now stucking with SSL when using Windows SubSystem WSL2 Ubuntu. Specifically, I need to read table on website, and I'm using pandas.read_html(url). However, It warns me the Error like this
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)
How can I solve this problem? What is the root of it?

Error creating AWS lambda function using "sam build"

When running sam build --use-containers to create an AWS python 3.8 lambda function that uses a downloaded library, I am getting an error:
pip._vendor.requests.exceptions.SSLError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/d0/32/6c367f54699bd51961cf3e10299f6dee976f0f6813210052a4d8c2bd1d2b/pymemcache-3.2.0-py2.py3-none-any.whl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate is not yet valid (_ssl.c:1108)')))
I checked the certificate on https://files.pythonhosted.org, and the cert is marked as starting on 7/13/2020. it's currently 7/14/2020.
I see that I can set the trusted hosts option to hopefully avoid this, (similar to: pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)"), but when PIP is being run from within a container via a script Im not sure how to set it.
if looks like I can use an environment variable to set the PIP trusted hosts as well, but I am not sure how to set that in the docker image used by SAM
(running on a windows 10 system)

ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

Django project which examines the frequency of occurrence of words on the blog.
the project is not finished yet but the scraper did not give any errors before. The error appeared after switching to another komupter, but I'm not sure if it matters
when I try to run my scraping script I get this error:
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)
I tried to use the time function but it didn't help
import time
time.sleep(5)
Make sure that you've got the root certificates installed on the new machine.
I cannot tell from the screenshot on what kind of system you work. If it's a Mac, see
Mac OSX python ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

requests declines certificate

I can access https://siscourses.ethz.ch/python_dbiol/data/logistic_data.txt with curl or within google chrome without any complaints about the certificate.
If I run
import requests
request.get("https://siscourses.ethz.ch/python_dbiol/data/logistic_data.txt")
I get
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify
failed (_ssl.c:749)
What is going wrong here ? I could disable certificate validation, but would prefer to understand the underlying problem.
"siscourses.ethz.ch" use SSL certificate from Let’s Encrypt, but isn't configurated to send complete certificate chain, intermediates certificate missed. It will work for chrome (on your computer) because you have successfully visited other websites using Let’s Encrypt, chrome cached the missing intermediates.
you could check this with ssllabs, or:
openssl s_client -showcerts -connect siscourses.ethz.ch:443

Categories