[Pki-users] curl / certrequests

Dinesh Prasanth Moluguwan Krishnamoorthy dmoluguw at redhat.com
Mon Jun 15 23:09:14 UTC 2020


Hi Pascal,

What version of PKI are you using?

Can you try replacing your URL with https protocol and corresponding port
number? https://zbook.home:8443/ca/rest/agent/certrequests
By default, secure port is 8443

Regards,
--Dinesh

On Mon, Jun 15, 2020 at 6:55 PM Pascal Jakobi <pascal.jakobi at gmail.com>
wrote:

> I am trying to retrieve the cert reqs that are in my CA at the moment.
>
> The (wrong) curl command I use is below, with its result :
>
> curl -v  -E "/tmp/ca_admin.cert" -H "Accept: application/json"
> http://zbook.home:8080/ca/rest/agent/certrequests
> *   Trying 192.168.1.20...
> * TCP_NODELAY set
> * Connected to zbook.home (192.168.1.20) port 8080 (#0)
> > GET /ca/rest/agent/certrequests HTTP/1.1
> > Host: zbook.home:8080
> > User-Agent: curl/7.61.1
> > Accept: application/json
> >
> < HTTP/1.1 302
> < Cache-Control: private
> < Expires: Thu, 01 Jan 1970 00:00:00 GMT
> < Location: https://zbook.home:8443/ca/rest/agent/certrequests
> < Content-Length: 0
> < Date: Mon, 15 Jun 2020 22:50:24 GMT
> <
> * Connection #0 to host zbook.home left intact
>
> Can someone tell me what's the correct curl command or why don't I receive
> anything as a result ?
>
>
> Thank you in advance.
> --
> *Pascal Jakobi*
> _______________________________________________
> Pki-users mailing list
> Pki-users at redhat.com
> https://www.redhat.com/mailman/listinfo/pki-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pki-users/attachments/20200615/7f0b9ee6/attachment.htm>


More information about the Pki-users mailing list