1
2
Use of uninitialized value in subroutine entry at blib\lib\Net\SSLeay.pm (autosplit into blib\lib\auto\Net\SSLeay\randomize.al) line 888.
Use of uninitialized value in subroutine entry at blib\lib\Net\SSLeay.pm (autosplit into blib\lib\auto\Net\SSLeay\randomize.al) line 888, <GEN1> line 10.
-24: IO::Socket::SSL->start_SSL failed: SSL connect attempt failed with unknown error error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
#!/usr/bin/perl -w use strict; use Mail::Sender; my $mailparams = { smtp => 'smtp.udag.de', from => 'SPLMget <ABSENDER>', auth => 'LOGIN', authid => 'POSTFACHNAME', authpwd => 'PASSWORT', TLS_required => 0, on_errors => 'code', debug => './mailLog.txt', debug_level => 4 }; my $mail = Mail::Sender->new($mailparams); $Mail::Sender::NO_X_MAILER = 1; my $message = '<html><body><h1><center>Heute ist Valentinstag</center></h1></body></html>'; $mail->Open({ to => 'EMPFÄNGER', headers => { 'X-Mailer' => 'SPLMget', 'Accept-Language' => 'de-DE, en-US', 'Content-Language' => 'de-DE' }, subject => encode_qp(encode("UTF-8", 'Neue Nachricht verfügbar')), ctype => 'text/html; charset=UTF-8', encoding => "quoted-printable", #multipart => 'mixed' }); $mail->SendEnc($message); $mail->Close(); print "$mail->{error}: $mail->{error_msg}";
$ENV{HTTPS_CA_FILE} = "/etc/ssl/certs/cacert.pem";
1 2 3 4 5 6 7 8 9
use IO::Socket::SSL; use Net::SSLeay; BEGIN { IO::Socket::SSL::set_ctx_defaults( SSL_verify_mode => Net::SSLeay->VERIFY_PEER(), SSL_verifycn_scheme => 'smtp', SSL_ca_file => "/etc/ssl/certs/cacert.pem" ); }
-14: Connection not established
2013-02-14T21:02:21 GwenDragon...
Code (perl): (dl )1 2 3 4 5 6 7 8 9use IO::Socket::SSL; use Net::SSLeay; BEGIN { IO::Socket::SSL::set_ctx_defaults( SSL_verify_mode => Net::SSLeay->VERIFY_PEER(), SSL_verifycn_scheme => 'smtp', SSL_ca_file => "/etc/ssl/certs/cacert.pem" ); }
//EDIT3:
Quäle: http://api.metacpan.org/source/SULLR/IO-Socket-SSL...
Bis sowas gefunden ist in den Untiefen von OpenSSL und CPAN :/
1 2 3 4 5 6 7
use IO::Socket::SSL; use Net::SSLeay; BEGIN { IO::Socket::SSL::set_ctx_defaults( ca_file => "/etc/ssl/certs/cacert.pem" ); }