cURL / Mailing Lists / curl-library / Single Mail


Re: libcurl: Problem when connect to a shared hosting server over ftp+ssl

From: Nick Zitzmann <>
Date: Mon, 4 Feb 2013 10:17:12 -0700

On Feb 4, 2013, at 3:48 AM, chu ngoc hung <> wrote:

> Hi guys,
> I'm using libcurl version 7.28.0 - with ssl (openssl) - to connect to server hosting by with ftp+ssl connection. I downloaded certificate from this server and add to my ca path before connect to server. But I always get an error:
> * Server certificate:
> * subject: OU=Domain Control Validated; OU=PositiveSSL Wildcard; CN=*
> * start date: 201
> * expire date: 202
> * subjectAltName does not match
> * Closing connection #0
> * SSL peer certificate or SSH remote key was not OK
> When I turn off verifying host/peer the connection is always timeout.
> Can you give me advice to fix this?

You could disable host name verification, though I wouldn't recommend you do that unless this project of yours is for internal use only and isn't going to be used to connect to other servers. A better fix would be to get the host to issue and use a new certificate for the site using its proper domain name.

And about the timeout: Does it work if you use any other client to connect to the server? Are you using implicit or explicit FTP-SSL? (There's a difference.)

Nick Zitzmann

List admin:
Received on 2013-02-04