<div dir="ltr">or use the pki command like tool with the option ca-cert-request-review :<div><a href="https://github.com/dogtagpki/pki/wiki/Handling-Certificate-Request">https://github.com/dogtagpki/pki/wiki/Handling-Certificate-Request</a><br></div><div>for example:</div><div>pki -U <a href="https://ca1.example.test:8443/ca">https://ca1.example.test:8443/ca</a> -d ~/.dogtag/subca1 -C ~/.dogtag/subca1/pwdfile.txt -n caadmin ca-cert-request-review 1011 --action approve</div><div><br></div><div>and after successful authentication, the URI is in the form of /ca/rest/agent/certrequests/xx/approve</div><div>where xx is the request id</div><div>it is a HTTPS POST operation</div><div><br></div><div>Thanks,</div><div>M.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 4, 2021 at 1:43 AM Perig Bouenou <<a href="mailto:pseite35@gmail.com">pseite35@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello<br><br><br>I'm trying to approve certificate requests by using curl as in <a href="https://github.com/dogtagpki/pki/wiki/PKI-CA-Approve-Certificate-Request-REST-API" target="_blank">https://github.com/dogtagpki/pki/wiki/PKI-CA-Approve-Certificate-Request-REST-API</a> <br><br><div>I manage to submit certificate requests by posting an xml request template, I can retrieve the list of requests, the curl command for a review works fine, but I'm stuck with approval by using curl (I can approve CSR with pki tool but I still don't know do the same with curl). <br></div><div><br></div><div>BTW, here is my command for reviewing request:</div><br>curl -ks -X GET  --cert-type P12 --cert ca_admin_cert.p12:<password> <a href="https://dogtag.server:8443/ca/rest/agent/certrequests/08" target="_blank">https://dogtag.server:8443/ca/rest/agent/certrequests/08</a> --header "Content-Type:application/xml" |  xmllint --format -<br><br><br>Can someone tell me what's the correct curl command to approve cr? or is there any example of request approval (with curl) somewhere? or even something more detailed than <a href="https://github.com/dogtagpki/pki/wiki/PKI-CA-Approve-Certificate-Request-REST-API" target="_blank">https://github.com/dogtagpki/pki/wiki/PKI-CA-Approve-Certificate-Request-REST-API</a>?<br><br>PS: I had a look at the JAVA API (<a href="https://github.com/dogtagpki/pki/wiki/PKI-CA-Java-API#approving-a-certificate-request" target="_blank">https://github.com/dogtagpki/pki/wiki/PKI-CA-Java-API#approving-a-certificate-request</a>) but it didn't help me so much.<br><br>Regards,<br>Pier</div>
_______________________________________________<br>
Pki-users mailing list<br>
<a href="mailto:Pki-users@redhat.com" target="_blank">Pki-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pki-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pki-users</a></blockquote></div>