FTPS with VSFTP and OpenSSL
I have set up VSFTP to use ftps , the box is old running FC6. I have added the following lines in vsftpd.conf:
I have generated a certificate using OpenSSL:
openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout /etc/vsftpd/vsftpd.pem -out /etc/vsftpd/vsftpd.pem
I have accepted the untrusted cert in FireFTP and can connect securely
234 Proceed with negotiation.
200 PBSZ set to 0.
331 Please specify the password.
PASS (password not shown)
230 Login successful.
200 Switching to ASCII mode.
200 PROT now Private.
227 Entering Passive Mode
I then do not get a directory listing, the account has read write and execute rights of the directory. After a while the connection drops and I get:
521 Data connections must be encrypted.
I thought I had done everything I needed but clearly I have missed a step. Does anyone have any suggestions?