Subject: | Net::Sieve |
Date: | Fri, 5 Jul 2013 02:17:38 +0200 |
To: | bug-net-sieve-script [...] rt.cpan.org |
From: | kardan <kardan [...] riseup.net> |
Hi,
I just tried your sieve module and ran into some issues. Please help
if my assumptions are wrong.
Show quoted text
> Use of uninitialized value $param{"ssl_verify"} in string eq
> at /usr/share/perl5/Net/Sieve.pm line 147.
> STARTTLS promotion failed:
> SSL connect attempt failed with unknown error error:14090086:SSL
> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
In the documentation [1] there is assumingly a typo for the constructor:
ssl_verif : default 0x01, set 0x00 to don't verify and allow
self-signed cerificate
As the code also says
my $ssl_verify = 0x01;
$ssl_verify = 0x01 if $param{ssl_verify};
$ssl_verify = 0x00 if $param{ssl_verify} eq '0x00';
$ssl_verify = 0x00 if $param{notssl_verify};
Could it be possible, to leave this parameter out without a warning, as
it is set to 0x01 anyway?
Show quoted text> Need both a client key and cert for SSL certificate auth."
I only want to authentificate the server without a client certificate.
Is this possible?
I set the key to the pem file in /etc/ssl/certs and see
Show quoted text> STARTTLS promotion failed: Failed to open Private Key
> error:0906D06C:PEM routines:PEM_read_bio:no start line
> error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib
And the script does not stop then but keeps running, despite die (also
a library should not die in my eyes but raise a warning/error). The file
pem file is definitively there and readable for my user.
I added $sock->close; before the die so the script ends with
Show quoted text> (in cleanup) Connection dropped unexpectedly when trying to read.
$ openssl s_client -connect mail.netzguerilla.net:2000 -tls1
-CApath /etc/ssl/certs -starttls imap
CONNECTED(00000005)
Maybe you have some idea, what I am doing wrong.
Thanks for this module!
kardan
[1] https://metacpan.org/module/Net::Sieve
The beginning of my script:
my %config = (server => 'mail.netzguerilla.net', user =>
'~', password => '~', ssl_verify => '0x01',
sslcertfile =>
'/usr/local/share/ca-certificates/mail.netzguerilla.net.crt',
sslkeyfile => '/etc/ssl/certs/mail.netzguerilla.net.pem' );
my $server = Net::Sieve->new (%config);