sendEmail报错:at /usr/share/perl5/vendor_perl/IO/Socket/SSL.pm

简介:
1
2
3
4
5
6
7
8
9
10
*******************************************************************
  Using the default of SSL_verify_mode of SSL_VERIFY_NONE  for  client
  is deprecated! Please  set  SSL_verify_mode to SSL_VERIFY_PEER
  together with SSL_ca_file|SSL_ca_path  for  verification.
  If you really don't want to verify the certificate and keep the
  connection  open  to Man-In-The-Middle attacks please  set
  SSL_verify_mode explicitly to SSL_VERIFY_NONE  in  your application.
*******************************************************************
   at  /usr/bin/sendEmail  line 1906.
invalid SSL_version specified at  /usr/share/perl5/vendor_perl/IO/Socket/SSL .pm line 415.


sendEmail发邮件的时候,出现的报错,然后查阅了很多资料


http://caspian.dotconf.net/menu/Software/SendEmail/

上找到了 下面这段话


Q: I get the error "invalid SSL_version specified at /System/Library/Perl/Extras/5.16/IO/Socket/SSL.pm line 332.a on my Apple. What do I do?
A: Here's what I got from one user. It's a workaround until I put a real fix in:
> Fixed it by using Perl v5.12 that's still on OSX Mavericks. > (just changed sendEmail line 1 from #!/usr/bin/perl -w to #!/usr/bin/perl5.12 -w)


centos7.2默认是 perl的版本是5.16,centos6.5的是5.10,后来把7的版本换成5.10,就可以正常发邮件了。

1
2
3
4
5
6
7
8
9
10
11
12
#### perl安装
      wget http: //www .cpan.org /src/5 .0 /perl-5 .10.0. tar .gz
      tar  -zxf perl-5.10.0. tar .gz
      cd  perl-5.22.0
      . /configure .gnu -des -Dprefix= /usr/local/perl
      echo  $?
      make
      make  test
      make  install
      mv  /usr/bin/perl  /usr/bin/perl .bak
      ln  -s  /usr/local/perl/bin/perl  /usr/bin/perl
      perl - v










本文转自 295631788 51CTO博客,原文链接:http://blog.51cto.com/hequan/1811246,如需转载请自行联系原作者
目录
相关文章
|
26天前
|
Java 关系型数据库 MySQL
Flink1.18.1和CDC2.4.1 本地没问题 提交任务到服务器 报错java.lang.NoClassDefFoundError: Could not initialize class io.debezium.connector.mysql.MySqlConnectorConfig
【2月更文挑战第33天】Flink1.18.1和CDC2.4.1 本地没问题 提交任务到服务器 报错java.lang.NoClassDefFoundError: Could not initialize class io.debezium.connector.mysql.MySqlConnectorConfig
46 2
|
30天前
|
网络安全 数据安全/隐私保护
JavaMail给QQ邮箱发邮件报错,没有SSL加密
JavaMail给QQ邮箱发邮件报错,没有SSL加密
13 0
|
2月前
|
关系型数据库 网络安全 对象存储
Flink报错问题之Flink报错java.io.EOFException: SSL peer shut down incorrectly如何解决
Flink报错通常是指在使用Apache Flink进行实时数据处理时遇到的错误和异常情况;本合集致力于收集Flink运行中的报错信息和解决策略,以便开发者及时排查和修复问题,优化Flink作业的稳定性。
|
6月前
初始化Kubenetes报错1:[kubelet-check] The HTTP call eal to ‘curl -sSL.
初始化Kubenetes报错1:[kubelet-check] The HTTP call eal to ‘curl -sSL.
|
6月前
|
应用服务中间件 网络安全 nginx
nginx开启ssl报错: [emerg] "server" directive is not allowed here ...
nginx开启ssl报错: [emerg] "server" directive is not allowed here ...
|
6月前
|
缓存 Shell 网络安全
Github-推送代码报错“error:RPC failed;curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL,errno 10054”解决方案
Github-推送代码报错“error:RPC failed;curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL,errno 10054”解决方案
103 0
|
开发工具 git
git 报错 OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
git 报错 OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
395 0
git 报错 OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
|
9月前
|
网络协议 C++ Docker
Docker pull拉取镜像报错“Error response from daemon: Get "https://registry-1.docker.io/v2”解决办法
Docker pull拉取镜像报错“Error response from daemon: Get "https://registry-1.docker.io/v2”解决办法
2687 0
|
10月前
编译netty报错缺少 io.netty.collection 包 解决方案
编译netty报错缺少 io.netty.collection 包 解决方案
25 0
|
10月前
|
SQL Oracle 关系型数据库
数据库连接报错之IO异常(The Network Adapter could not establish the connection)
有以下四个原因: 1. ORACLE数据库 1、oracle配置 listener.ora 和tnsnames.ora 文件里面查看是否配置正确
1674 1