Azure Blob Storage and Python Certificate Error - python

Please help in resolving the certificate error. This occurred for the first time in years..
I am trying to run python on my local machine to read and write data from azure blob container, was able to process successfully then suddenly started getting below certificate error. I do have admin control on my machine..
Since the error we did few scenario analysis and were successful:
Tried running the same script on another machine, same version of python and sas url
The script runs on VM and on DevOps on a schedule, same version of python and sas url
Using Python 3.8.8
ServiceRequestError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)

Related

pycharm ssh tunnel to google cloud platform instance was worked and now it does not once I tried to restart the tunnel?

I had a SSH session working on pycharm and then today when I tried to create the tunnel to the google cloud instance I got this error:
Error:
ERROR: (gcloud.compute.start-iap-tunnel) Error while connecting [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)].
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
Anyone know why when I tried to restart the tunnel to the gcp instance that it throws this error?

Python suds: Getitng SSL: CERTIFICATE_VERIFY_FAILED error

I'm trying to request some data from a website using suds in Python. I'm getting urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)> while creating suds client. I do not get this error when I'm running the project locally but this issue happens when I try to deploy this project to a Linux host so that it can be automated.
One thing to note is, this python code lies behind AppProxy so that it can connect to internet. I have verified using a CURL request that the remote hosts is able to connect to the website.
I'm new to SSL Certificate thing not so sure about this certificate issue, do I need to install any server certificates on the hosts so that it can verified by SSL Validation? Any leads would be helpful. Thanks.

local issuer certificate error uniquely in docker with python

Following error occurs only with docker app in python when making request to an https url.
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)>
Outside of docker, the app works. I can fetch the same URL inside the docker image of other language app such as dotnet.
I have tried:
RUN update-ca-certificates
Install certfi library and manually supply the certificates during making the call
Manually insert the certificates that comes with certify library in different locations of docker images such as /usr/local/share/ca-certificates/, /etc/ssl/certs/ and RUN update-ca-certificates
Tried different versions (3.6.9, 3.8.4) and providers (alpine, buster, slim-buster ) of python.
Setting different env variables such as REQUESTS_CA_BUNDLE, SSL_CERT_FILE etc.
Use different libraries such as requests, urllib, urllib3
.... and really large number of different things.
It of course works when I turn the verify off, but I want to keep verification.
I was having this issue in an ARM Ubuntu 20.04 container.
I installed ca-certificates and curl, but I still couldn't use curl. For me the fix ended up being adding the following before calling curl:
export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt

Working behind company's SAML and getting cerficate verification failed

My company recently implemented SAML and causing my python app not able to verify the certificate. Keep showing error "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)" Is there any workaround for this issue?
I have tried installing certifi but it is still not working.

AWS IAM create access key failure

Having trouble creating an access key for my AWS user. I've set up aws on the command line (aws configure) and try the following command
aws iam create-access-key --user-name myUser
I get the following response and have no clue what to do. Seems to be a problem with python or something from my quick google
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)

Categories

Resources