ssl.SSLError:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:852) [英] ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852)

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

问题描述

Django项目,该项目检查博客上单词出现的频率.

Django project which examines the frequency of occurrence of words on the blog.

该项目尚未完成,但刮板之前未出现任何错误.切换到另一个komupter后出现了错误,但是我不确定这是否重要

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]证书验证失败(_ssl.c:852)

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.

我无法从屏幕截图中分辨出您所使用的系统类型.如果是Mac,请参见
Mac OSX python ssl.SSLError:[SSL:CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:749)

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)

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

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