SSL错误:例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败 [英] SSL error : routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

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

问题描述

我在txt文件中有大量文件下载链接.我试图编写一个python脚本以一次下载所有文件,但最终出现以下错误:

I have a large number of file download links in a txt file. I am trying to write a python script to download all the files at once, but I end up with the following error:

SSLError: [Errno 1] _ssl.c:499: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 

正在通过Intranet下载文件.

The file is being downloaded via intranet.

我试图通过浏览器下载文件,并弹出some certificate的提示.我试图用Google搜索它,但没有找到解决此问题的方法.

I tried to download the file via browser and I got a pop up with some certificate. I tried to google it but didn't find a way to solve this.

推荐答案

服务器证书无效,因为它是由无效的CA签名的(内部CA,自签名等等)与服务器的证书不匹配.名称或因为它已过期.

The server certificate is invalid, either because it is signed by an invalid CA (internal CA, self signed,...), doesn't match the server's name or because it is expired.

无论哪种方式,您都需要找到如何告诉Python库您正在使用的库,如果您确实想从该服务器下载文件,则它不能在无效的证书处停止.

Either way, you need to find how to tell to the Python library that you are using that it must not stop at an invalid certificate if you really want to download files from this server.

这篇关于SSL错误:例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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