Pure-FTPD cannot connect with TLS/SSL

By | 14 November 2018

Pure-FTPD cannot connect with TLS/SSL. FileZilla log shows this and then everything stop/halt

Status: Resolving address of ftp.mydomain.com
Status: Connecting to XXX.XXX.XXX.XXX:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...

When restarting pure-ftpd in WHM and this reveals the following message
...
Feb 22 23:14:47 host pure-ftpd[20248]: (?@?) [DEBUG] Couldn't load the DH parameters file /etc/ssl/private/pure-ftpd-dhparams.pem
pureftpd restarted successfully.

To solve the issue run the following commands :

openssl dhparam -out /etc/ssl/private/pure-ftpd-dhparams.pem 2048
/scripts/restartsrv_pureftpd