1Net::SSLGlue::FTP(3)  User Contributed Perl Documentation Net::SSLGlue::FTP(3)
2
3
4

NAME

6       Net::SSLGlue::FTP - extend Net::FTP for FTPS (SSL) and IPv6
7

SYNOPSIS

9           use Net::SSLGlue::FTP;
10           # SSL right from start
11           my $ftps = Net::FTP->new( $host,
12               SSL => 1,
13               SSL_ca_path => ...
14           );
15
16           # SSL through upgrade of plain connection
17           my $ftp = Net::FTP->new( $host );
18           $ftp->starttls( SSL_ca_path => ... );
19
20           # change protection mode to unencrypted|encrypted
21           $ftp->prot('C'); # clear
22           $ftp->prot('P'); # protected
23

DESCRIPTION

25       Net::SSLGlue::FTP extends Net::FTP so one can either start directly
26       with SSL or switch later to SSL using starttls method (AUTH TLS
27       command).  If IO::Socket::IP or IO::Socket::INET6 are installed it will
28       also transparently use IPv6.
29
30       By default it will take care to verify the certificate according to the
31       rules for FTP implemented in IO::Socket::SSL.
32

METHODS

34       new The method "new" of Net::FTP is now able to start directly with SSL
35           when the argument "<SSL =" 1>> is given. One can give the usual
36           "SSL_*" parameter of IO::Socket::SSL to "Net::FTP::new".
37
38       starttls
39           If the connection is not yet SSLified it will issue the "AUTH TLS"
40           command and change the object, so that SSL will now be used.
41
42       peer_certificate ...
43           Once the SSL connection is established you can use this method to
44           get information about the certificate. See the IO::Socket::SSL
45           documentation.
46
47       All of these methods can take the "SSL_*" parameter from
48       IO::Socket::SSL to change the behavior of the SSL connection. The
49       following parameters are especially useful:
50
51       SSL_ca_path, SSL_ca_file
52           Specifies the path or a file where the CAs used for checking the
53           certificates are located. This is typically "etc/ssl/certs" on UNIX
54           systems.
55
56       SSL_verify_mode
57           If set to 0, verification of the certificate will be disabled. By
58           default it is set to 1 which means that the peer certificate is
59           checked.
60
61       SSL_verifycn_name
62           Usually the name given as the hostname in the constructor is used
63           to verify the identity of the certificate. If you want to check the
64           certificate against another name you can specify it with this
65           parameter.
66

SEE ALSO

68       IO::Socket::SSL, Net::FTP, Net::SSLGlue::Socket
69
71       This module is copyright (c) 2013, Steffen Ullrich.  All Rights
72       Reserved.  This module is free software. It may be used, redistributed
73       and/or modified under the same terms as Perl itself.
74
75
76
77perl v5.30.1                      2020-01-30              Net::SSLGlue::FTP(3)
Impressum