Hi Wahaj,

The REST API doc was created manually, so unfortunately it may have become
out of date and we don't have resources right now to update it. For now I'd suggest
to run the pki CLI in --verbose, --message-format, and --output to see the actual
request and responses sent between the server and client and then replicate the
same messages in your application. Hope this helps.

https://github.com/dogtagpki/pki/wiki/PKI-CLI-Options

--
Endi S. Dewata


On Mon, Nov 9, 2020 at 1:52 AM Wahaj K <mwahaj3120@gmail.com> wrote:
Hi,

Saw the documentation at: https://github.com/dogtagpki/pki/wiki/PKI-CA-Revoke-Certificate-REST-API

I am trying this and failing. I get all sort of issues like Content type is not valid, Content Length is not valid etc when I put some content type and content length. I believe as this is HTTP POST and no content required hence I am then skipping both of these but then I get this in the CA logs:

2020-11-09 11:33:00 [https-jsse-nio-8443-exec-24] ERROR: RESTEASY002010: Failed to execute

javax.ws.rs.NotSupportedException: RESTEASY003200: Could not find message body reader for type: class com.netscape.certsrv.cert.CertRevokeRequest of content type: */*

I am using Postman. Get Certs call is working fine.

image.png

I get similar errors on the Restful Approve call.

Is the documentation up to date? I am stuck for days :( Would be grateful if you can guide!

Regards,
Wahaj
_______________________________________________
Pki-users mailing list
Pki-users@redhat.com
https://www.redhat.com/mailman/listinfo/pki-users