Thread [IO::Socket::SSL] Failed to use private key (21 answers)
Opened by bianca at 2015-10-14 19:11

bianca
 2015-10-14 19:11
#182607 #182607
User since
2009-09-13
7016 Artikel
BenutzerIn

user image
Umgebung: Win7 64 Bit Strawberry 5.18.4

Script:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl
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',    # dies ist die Datei aus Mozilla::CA Version 20150826
) or do { print "\$@ = '$@'"; exit(); }


Ausgabe:
Quote
d:\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

View full thread [IO::Socket::SSL] Failed to use private key