Certificate verification error in Lftp
Today I encountered the following message while working normally with lftp:
ls: Fatal error: Certificate verification: Not trusted
It can be quickly fixed like this:
- launch the lftp console:
lftp
- Disable certificate verification:
set ssl:verify-certificate no
- Connect to the server:
open user@ip_address
In order to consolidate the material you have covered and not return to it again, create a folder ~/.lftp/
mkdir ~/.lftp/
Create a file in the folder:
nano ~/.lftp/rc
File contents:
set ssl:verify-certificate no