Configurer Proftpd avec TLS

Créer le certificat et la clé :

openssl req -new -x509 -nodes -days 365 -out /etc/ssl/certs/proftpd.cert.pem -keyout /etc/ssl/certs/proftpd.key.pem

Remplissez habituellement les questions d'openssl (pour information, le champ "Common Name (eg, YOUR name) []:" doit contenir l'hostname du serveur utilisé pour la connexion, par exemple ftp.domaine.tld).

Configurer proftpd :

<IfModule mod_tls.c>
    TLSEngine                  on
 
    # Authenticate clients that want to use FTP over TLS?    
    TLSVerifyClient            off
 
    # Are clients required to use FTP over TLS when talking to this server?
    TLSRequired                on
    TLSLog                     /var/log/proftpd/tls.log
    TLSProtocol                SSLv23
    TLSOptions                 NoCertRequest
 
    # Server's certificate
    TLSRSACertificateFile      /etc/ssl/certs/proftpd.cert.pem
    TLSRSACertificateKeyFile   /etc/ssl/certs/proftpd.key.pem
</IfModule>