123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314 |
-
- Pure-FTPd supports encryption of the control and data channels using
- TLS security mechanisms.
- When this extra security layer is enabled, login and passwords are no more
- sent as cleartext. Neither are other commands sent by your client nor replies
- made by the server.
-
- To support TLS, the OpenSSL library must already be installed on your
- system. This is a common requirement so your operating system probably
- already ships with it.
- Pure-FTPd also has to be configured with the
- compilation :
- ./configure
- make install-strip
- If something goes wrong, try to bring your OpenSSL library up-to-date.
-
- TLS connections require certificates, as well as their key.
- Both can be bundled into a single file. If you have both a `.pem` file
- and a `.key` file, just concatenate the content of the `.key` file to
- the `.pem` file.
- By default, Pure-FTPd will look for a cert+key bundle in the
- /etc/ssl/private/pure-ftpd.pem file.
- The location can be changed at compile-time with the
- and
- It can also be changed at runtime, with the CertFile option in the
- configuration file:
- CertFile /etc/ssl/private/pure-ftpd.pem
- or
- CertFileAndKey /etc/pure-ftpd.pem /etc/pure-ftpd.key
- The former is for a bundle, the later loads two files.
- If you already have a certificate for another service on the same host
- (commonly for HTTPS), you can use it as well with Pure-FTPd and other
- TLS-enabled services.
- Both RSA and ECDSA signatures are supported, but not simultaneously.
- For testing purposes, a self-signed certificate can be created as follows:
- mkdir -p /etc/ssl/private
- openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048
- openssl req -x509 -nodes -newkey rsa:2048 -sha256 -keyout \
- /etc/ssl/private/pure-ftpd.pem \
- -out /etc/ssl/private/pure-ftpd.pem
- chmod 600 /etc/ssl/private
|