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:

  1. launch the lftp console:
    lftp
    
  2. Disable certificate verification:
    set ssl:verify-certificate no
    
  3. 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

Categories:

Updated: