Let's encrypt certificate, Python and Windows -


i changed webserver http https "let"s encrypt". webserver contains api, , have python application, uses api.

under linux fine, under windows receive below, when i'm logging in.

[ssl: certificate_verify_failed] certificate verify failed (_ssl.c:590) 

my thought was, ssl certificate isn't installed.

so downloaded "isrgrootx1.der" , "lets-encrypt-x1-cross-signed.der" renamed both ending "*.cer".

then opened windows console, , run this:

certutil -addstore "root" "isrgrootx1.cer". certutil -addstore "root" "lets-encrypt-x1-cross-signed.cer". 

the second command failed, because isn't root certificate. question is: in group has "lets-encrypt-x1-cross-signed.cer" installed?

i faced same issue while using python-requests library.

here's worked me:

r = requests.post(url, *verify=false*)     # verify=false being key element here  requests.packages.urllib3.util.ssl_.default_ciphers += 'high:!dh:!anull'    # deal "dh key small" error might face later 

hope helps!


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -