I like to use curlftpfs to mount a ftp server. It works as long as I do not use client certificates. However, the following command (italic
$ sudo curlftpfs -v -o cert=/home/john/my_cert.pem -o key=/home/john/my_cert_key.pem -o pass=mycertpass -o ssl -o allow_other -o user=ftpuser ftp://myserver.dyndns.org:1033/ /home/john/mountedftp/
produces this output:
Enter host password for user 'ftpuser':
* Couldn't find host myserver.dyndns.org in the .netrc file, using defaults
* About to connect() to myserver.dyndns.org port 1033 (#0)
* Trying ???.???.???.???... * connected
* Connected to myserver.dyndns.org (???.???.???.???) port 1033 (#0)
< 220 (vsFTPd 2.0.7)
> AUTH SSL
< 234 Proceed with negotiation.
* found 140 certificates in /etc/ssl/certs/ca-certificates.crt
* error reading X.509 key or certificate file
* Closing connection #0
Error connecting to ftp: error reading X.509 key or certificate file
In an attempt to find the error, I used curl to list a directory on the ftp server. It works without any complaints. Thus, the server side is ok, certificates are ok, passwords are ok.
Any idea, what is wrong?