cURL / Mailing Lists / curl-users / Single Mail

curl-users

FTPS problem

From: postmaster <postmaster_at_ftumsh.org>
Date: Fri, 08 Oct 2004 16:50:26 +0100

Lo all,

I am trying to replace the bsd ftps (on windows) with curl.
Below is the -v output from curl (version below. Running on slackware
linux).
It doesn't want to work. The cert it is complaining about (or more to
the point that the server is complaining about) is exactly the same as
the one that works with bsd ftps.
Anyone any ideas?
I was unaware that a user was associated in a cert, but what do I
know...

Thx John

curl 7.12.1 (i686-pc-linux-gnu) libcurl/7.12.1 OpenSSL/0.9.7a zlib/1.1.4
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: Largefile NTLM SSL libz

john_at_darkstar:~/ftps/dev$ curl -v -u anon.acme:passhere --cacert
out/mycert.pem --ftp-ssl ftp://dom.host.com:21
* About to connect() to dom.host.com port 21
* Trying 1.2.3.4... * connected
* Connected to dom.host.com (1.2.3.4) port 21
< 220 gb02qds030iefx7 IE-FTP server (v4r3m0.d) ready on system EUR.
> AUTH SSL
< 234 AUTH command accepted - proceed with Negotiation.
* successfully set certificate verify locations:
* CAfile: out/mycert.pem
  CApath: none
* SSL connection using EXP1024-DES-CBC-SHA
* Server certificate:
* subject: /C=UK/O=ABC/OU=Services for business:
Server/CN=dom.host.com
* start date: 2004-03-11 10:49:30 GMT
* expire date: 2006-03-11 10:49:30 GMT
* common name: dom.host.com (matched)
* issuer: /C=US/O=ABC/OU=Services for business/CN=PKI Services
Root CA
* SSL certificate verify ok.
> USER anon.acme
< 530 User is not the same as specified in the X.509 Certificate.
* Access denied: User is not the same as specified in the X.509
Certificate.
* Closing connection #0
curl: (9) Access denied: User is not the same as specified in the X.509
Certificate.
Received on 2004-10-08