Hi all,

I’m struggling to retrieve certificates (including the certificate’s key) from 
openXPKI via RPC-call (REST-call would be even better).
Somehow, I managed to get the openxpki-docker containers from docker Hub up and 
running - so I am able to create certificates via WebUI.

Also RPC-calls to the SearchCertificate method work fine:

curl -s -F "method=SearchCertificate"  -F "common_name=Rob Roberts" 
http://localhost:8080/rpc/enroll | python -m json.tool
{
    "result": {
        "data": {
            "cert_identifier": "jLy7gIbwwvnvOCMRpTPgdw6uVpg",
            "notafter": "2022-03-16T16:54:56",
            "notbefore": "2021-09-16T16:54:56",
            "status": "ISSUED"
        },
        "id": 0,
        "pid": 71,
        "proc_state": "finished",
        "state": "SUCCESS"
    }
}

Looks perfekt, but the key is missing!

Seems, that I have to change enroll.yaml AND the certificate_search workflow, 
to add the certificate’s key as an additional output field:
https://sourceforge.net/p/openxpki/mailman/openxpki-users/thread/26520814-81cf-2d0e-a8dd-431b6e4149ea%40oliwel.de/#msg36766216

But I don’t know, how to do that.
Could some of the experts give me advice?

As I am not a C# / Perl / OpenXPKI expert, I hope, you can help me with “easy 
to understand/digest” answers.
(of cause: “ready to use” code-snippets/files would be perfect, but I do not 
dare to ask for that).

Kind regards

Andreas


_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to