cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Ignoring certificate warnings and saving the page?

From: Mark C. Casey <markcc_at_jadepress.co.uk>
Date: Wed, 9 Mar 2005 10:30:19 -0000

LOL,

Erm.. *cough* Just as I received this mail I found the -k/--insecure command on the curl page at http://curl.haxx.se/docs/sslcerts.html...

Whoops, sorry for wasting your time.

Mark

-----Original Message-----
From: Dominique L Bouix [mailto:d_at_tonnikala.net]
Sent: 09 March 2005 10:29
To: Mark C. Casey
Subject: Re: Ignoring certificate warnings and saving the page?

On Wed, Mar 09, 2005 at 10:23:04AM -0000, Mark C. Casey wrote:
> curl: (51) SSL: certificate subject name 'sitebla.othername.com' does not match target host name 'site.domain.tld'
>
> (I've obviously changed the sitenames)
>
> What I plan to do is login to the site and then download a specific page, however before I can do that I need curl to be able to download a page in the first place.
>
> >From what I understand the people who setup the certificate for the site did it rather stupidly, however.. I need curl to ignore the error and download the page regardless.
>
> How can I do this? (tell curl to ignore the incorrect certificate and download the page)

Hi,

Use option -k or --insecure

regards,
Dominique
Received on 2005-03-09