cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Using curl to have CA server sign CSR

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 31 Mar 2010 23:16:15 +0200 (CEST)

On Wed, 31 Mar 2010, Scott Taylor wrote:

> until I get to the commands to push the CSR and pull the newly signed
> certificate.:

> 6. curl --cacert mysite_cert.pem --data CertRequest=servername_csr.csr \
> -d Mode=newreq -d TargetStoreFlags=0 -d SaveCert=yes \
> --data-urlencode CertAttrib=\r\n \
> https://my.server.com/certsrv/certfnsh.asp
>
> I receive an HTML response from the server indicating the file is probably
> corrupt. I have confirmed there are no spaces or garbage after the last line
> of the CSR file.

That command line only sends five name=variable pairs separated with
ampersands (--trace-ascii shows you that). I don't see how that sends any file
at all to the remote server.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-31