Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SSL Verification error #11

Open
ifuchs opened this issue Apr 13, 2021 · 1 comment
Open

SSL Verification error #11

ifuchs opened this issue Apr 13, 2021 · 1 comment

Comments

@ifuchs
Copy link

ifuchs commented Apr 13, 2021

I am trying to install pushover-cli on a Debian (buster) docker container. When I run pushover-cli, I am getting the following error:
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)

I realize that this is not a pushover-cli problem per se, but can anyone tell me how to go about resolving this? I tried a half dozen suggestions that a search of this error found but none seemed to help.

@tuxthepenguin84
Copy link

https://docs.python.org/3/library/http.client.html
"Changed in version 3.4.3: This class now performs all the necessary certificate and hostname checks by default. To revert to the previous, unverified, behavior ssl._create_unverified_context() can be passed to the context parameter."

Change this:

conn = http.HTTPSConnection(proxyhost, int(proxyport))

to this:

conn = http.HTTPSConnection(proxyhost, int(proxyport), context = ssl._create_unverified_context())

You may need to import the ssl library
import ssl

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants