Chinaunix首页 | 论坛 | 博客
  • 博客访问: 741222
  • 博文数量: 130
  • 博客积分: 2951
  • 博客等级: 少校
  • 技术积分: 1875
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-04 18:32
文章分类

全部博文(130)

文章存档

2013年(1)

2012年(129)

分类: Python/Ruby

2012-08-27 17:34:35

Perl发送https请求的时候,有时候会报
Can't connect to host:port (certificate verify failed)

LWP::Protocol::https::Socket: SSL connect attempt failed with unknown errorerror:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed at /usr/share/perl5/LWP/Protocol/http.pm line 51.

解决办法(当其他配置没有错误时候):
export
PERL_LWP_SSL_VERIFY_HOSTNAME=0

阅读(2580) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~