Subject: | warning when use ssl |
== code ==:
#!/bin/env perl
use strict;
use warnings;
use Net::IMAP::Client;
my $imap = Net::IMAP::Client->new(
server => 'imap.alibaba-inc.com',
user => 'xxxxx',
pass => 'xxxxxxx',
ssl => 1,
port => 993,
) or die "Could not connect to IMAP server ";
$imap->login or die "Login failed: " . $imap->last_error;
=== error/warnings =====
*******************************************************************
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 /home/admin/perl5/perlbrew/perls/perl-5.16.3/lib/site_perl/5.16.3/Net/IMAP/Client.pm line 624.
=================
this maybe means the IO::Net::SSL module have change its creator method (new);
you should fix the code of call it in line 624;
============== environment===========
OS: Linux vsandbox067001.cm4 2.6.18-308.el5xen #1 SMP Fri Jan 27 17:26:57 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
system: redhat-5.4
Perl Version:5.16.3
IO::Net::SSL version:"VERSION: 1.84"