cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl-users Digest, Vol 56, Issue 1

From: Scott Taylor <sstaylor21671_at_gmail.com>
Date: Thu, 1 Apr 2010 16:07:10 -0400

I thought this would send the "mycsr.csr" file to the remote server for
signing. So the two commands I was using to try this were:
====================
# curl --cacert cert.pem --data CertRequest=mycsr.csr -d Mode=newreq -d
TargetStoreFlags=0 -d SaveCert=yes --data-urlencode CertAttrib=\r\n
https://ca.myserver.com/certsrv/certfnsh.asp

# curl --cacert cert.pem -G -d ReqID=115 -d Enc-bin
https://ca.myserver.com/certsrv/certnew.cer
====================

I thought I was getting an error because perhaps the .csr file should be
converted to a .pem file first. If this does not do the job can you advise
the best way to accomplish this? Again I'm trying to use curl to have a
locally generated CSR signed by the remote CA server (MS 2008), and retrieve
the signed certificate.

Thanks for any direction you can provide.

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.
>
>

-------------------------------------------------------------------
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-04-01