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
阅读(2618) | 评论(0) | 转发(0) |