Connecting to Swestore over WebDav with lftp - UPPMAX/irods GitHub Wiki

Works on rot, but not u5 so far.

Usage syntax

lftp https://webdav.swegrid.se/snic/

(don't forget the trailing slash)

Specifying Certificate and key files to use

in /home/[user]/.lftprc, add, e.g:

set ssl:cert-file /home/[user]/.globus/usercert2.pem
set ssl:key-file /home/[user]/.globus/userkey2.pem

If your original files are password protected, or somehow in the wrong format, I think you have to convert them with the following command:

openssl rsa -in userkey.pem -out userkey2.pem

How to test a secured webdav connection with openssl

echo "quit" | openssl s_client -cert usercert.pem -key userkey.pem -connect webdav.swegrid.se:443 2>&1