Save certificate to use with lftp
- by Greg C
How can I save a certificate for use with lftp?
The certificate in question is not accepted by lftp when downloaded from the server. I tried
openssl s_client -connect {HOSTNAME}:21 -showcerts
from How to save a remote server SSL certificate locally as a file but this returns
CONNECTED(00000003)
3074045628:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:766:
no peer certificate available
I am connecting with
lftp -p 21 -u {USER} {HOSTNAME}
and receive
ls: Fatal error: Certificate verification: Not trusted