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