lftp Certificate verification: Not trusted
If lftp gives this error while connecting to an FTP server:
Certificate verification: Not trusted
It means that the site you are trying to ftp to has some certificate mismatch and so it’s not verified.
Solution:
Just check if .lftp directory exists in your home folder, if not create it:
mkdir ~/.lftp
Then create this file if doesn’t exist and open it:
vi ~/.lftp/rc
Add these lines:
set ssl:verify-certificate no
set ftp:ssl-allow no
This will tell lftp to not verify any certificates.
Sometimes forcing ssl also causes some problems, so the line to disallow ssl.
But if your ftp server needs ssl to connect then don’t add that line.
This should fix your certificate problem.