curl-users
Ignoring certificate warnings and saving the page?
Date: Wed, 9 Mar 2005 10:23:04 -0000
Here's what I get when I try to download a page...
server root # curl -vo test.html https://site.domain.tld/test/
* About to connect() to site.domain.tld port 443
* Connected to site.domain.tld (111.222.222.111) port 443
* successfully set certificate verify locations:
* CAfile: /usr/share/curl/curl-ca-bundle.crt
CApath: none
* SSL connection using DHE-RSA-AES256-SHA
* Server certificate:
* subject: /C=UK/ST=Buckinghamshire/L=Milton Keynes/O=Bla Bla Bla/OU=IT/CN=sitebla.othername.com
* start date: 2004-08-27 15:45:39 GMT
* expire date: 2005-08-27 15:45:39 GMT
* SSL: certificate subject name 'sitebla.othername.com' does not match target host name 'site.domain.tld'
* Closing connection #0
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)
Thanks
Mark Casey
IT Manager
Jade Press
Received on 2005-03-09