Umgebung: Win7 64 Bit Strawberry 5.18.4
Script:
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;
use Net::FTP 3.07;
use Net::FTP::File 0.06 ;
use IO::Socket::SSL 2.012;
use Net::SSLeay 1.68;
my $ftp = Net::FTP->new(
'hosturl',
Timeout => 10,
SSL_cert_file => 'cacert.pem',
) or do { print "\$@ = '$@'"; exit(); }
Ausgabe:
Quoted:\meinvers>perl -MIO::Socket::SSL=debug4 test_ftp.pl
DEBUG: .../IO/Socket/SSL.pm:1791: Failed to use private key
SSL error: 1896: 1 - error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
SSL error: 1896: 2 - error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
SSL error: 1896: 3 - error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
SSL error: 1896: 4 - error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib
SSL error: 1896: 5 - error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
SSL error: 1896: 6 - error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error
SSL error: 1896: 7 - error:140B000D:SSL routines:SSL_CTX_use_PrivateKey_file:ASN1 lib
DEBUG: .../IO/Socket/SSL.pm:1796: Failed to use private key error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
Welches Problem liegt hier vor?
10 print "Hallo"
20 goto 10