cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: Help with an X509 certificate and cURL request

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 22 Jan 2008 14:01:50 +0100 (CET)

On Tue, 22 Jan 2008, thomas Armstrong wrote:

> I want to use a remote webservice (hosted at http://www.domain.com) by using
> cURL, and I was requested to "submit a X509 client certificate as part of my
> request". I use a Linux machine.

> 1) How to create my own free X509 client certificate?

If they requrie a client certificate, there's no point in you making up your
own but they should rather provide it for you. What else would be the point
with a certificate?

> 2) How to use it with cURL? Can I use this next command?
> curl -d "firstName=John&lastName=Smith" -G -v --key private.key --cert
> server.crt https://www.domain.com/WebService.asp

Yes, but you may also need to provide a keyphrase for the private key.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-01-22

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET