Hello Alexander and the LFTP team,

I'd like to use https with the lftp client. I configured the client key and the 
client certificate (s. settings below). But while requesting a data I get a 
warning: "Certificate verification: Not trusted " and then "Access failed: 401 
Unauthorized".

here is an example:

lftp :~> open https://door08:2880/file -d
---- Connecting to door08 (131.xxxx.xx.xx) port 2880
gnutls_certificate_set_x509_key_file(/home/myCertificate/usercert.pem,/home/myCertificate/userkey.pem):
 Base64 unexpected header error.
---- Sending request...
---> HEAD /file HTTP/1.1
---> Host: dcache-door-desy08:2880
---> User-Agent: lftp/3.6.3
---> Accept: */*
---> Connection: keep-alive
--->
Certificate: C=DE,O=xxx,OU=xxx,CN=host/door08
 Issued by: C=DE,O=xxx,CN=xxx-CA
WARNING: Certificate verification: Not trusted
<--- HTTP/1.1 401 Unauthorized
<--- WWW-Authenticate: Basic realm="null"
<--- Transfer-Encoding: chunked
<--- Server: Jetty(7.0.1.v20091125)
<---
cd: Access failed: 401 Unauthorized (/file)
---- Closing idle connection
---- Closing HTTP connection

My settings in ~/.lftp/rc are:

set ssl:cert-file /home/myCertificate/usercert.pem
set ssl:key-file /home/myCertificate/userkey.pem
set ftp:ssl-force yes
set ftp:ssl-protect-data yes
set ftp:ssl-allow yes
set ftp:ssl-allow-anonymous no
set ftp:ssl-auth TLS
set ssl:check-hostname no
set ssl:verify-certificate no


I also tried to run ./configure --without-gnutls --with-openssl, but without 
any success. I had the same result:WARNING: Certificate verification: Not 
trusted, ---- Closing HTTP connection
get1: Access failed: 401 Unauthorized (/).

How can I solve this issue?

Thank you,
Tanja





-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

Reply via email to