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.
Just check if .lftp directory exists in your home folder, if not create it:
Then create this file if doesn’t exist and open it:
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.