Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use warnings; use Net::FTPSSL; open (STDERR, "> logfile.txt"); # Redirects STDERR to this file. my %connectionHash = ( Port => 21, Encryption => 'E', Debug => 1, OverridePASV => 'xxx.xxx.xxx.xxx', Croak => 0, PreserveTimestamp => 0, ); my %sslHash = ( #SSL_cert_file => '', #SSL_reuse_ctx => '', SSL_key_file => 'MD5:9f:...f9', #SSL_ca_file => '', #SSL_use_cert => 1, ); $connectionHash{SSL_Client_Certificate} = \%sslHash; my $ftps = Net::FTPSSL->new( 'xxx.xxx.xxx.xxx:', %connectionHash, ); $ftps->login ('user', 'pass') or warn "Could not login to xxx.xxx.xxx +.xxx: ", $ftps->message; $ftps->nlst(); $ftps->quit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SSL connect attempt failed
by hippo (Archbishop) on Aug 12, 2020 at 17:14 UTC | |
by Anonymous Monk on Aug 12, 2020 at 17:41 UTC | |
by hippo (Archbishop) on Aug 12, 2020 at 19:38 UTC | |
|
Re: SSL connect attempt failed
by jcb (Parson) on Aug 13, 2020 at 01:15 UTC | |
by Anonymous Monk on Aug 13, 2020 at 13:17 UTC | |
by jcb (Parson) on Aug 14, 2020 at 01:12 UTC | |
|
Re: SSL connect attempt failed
by Anonymous Monk on Aug 13, 2020 at 22:01 UTC |