SSL 证书验证失败 (_ssl.c:600) [英] SSL certificate verify failed (_ssl.c:600)

查看:48
本文介绍了SSL 证书验证失败 (_ssl.c:600)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你知道这个错误吗:

urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)

当我运行用 python 编写的应用程序时,我的服务器上发生了这个错误,但是当我在本地计算机上运行这个应用程序以向该服务器发送请求时,它可以正常工作,没有任何错误.python 应用程序发送到 https 请求到 myhost.com/action.并且网络主机正在使用 https.我从

This error occurred on my server when I run my app which is written on python, but when I run this app on local computer for sending requests to that server it works without any error. The python app sent to https request to myhost.com/action. and the web host is working with https. I checked ssl from

我不知道我必须在这里展示什么来解释我的问题.如果您有关于代码或服务器设置的问题,我会尽量回答.

I don't know what I must show here to explain my problem. If you have a question about code or server settings I will try to answer as I can.

** 这个问题与 那个

推荐答案

python 3新增了ssl认证检查系统,一种避免不通过认证错误的方法是取消这个机制:

A new ssl certification checking system is added in python 3, and one way to avoid the error of not passing certification is to nullify this mechanism:

import ssl
ssl._create_default_https_context = ssl._create_unverified_context

这篇关于SSL 证书验证失败 (_ssl.c:600)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆