Hello,

I am trying to get a list of certificates through the API.
The result I expect is the same as if you login to the WebUI as an operator
and do a certificate search without filling in any search params.

Steps I have taken:

- Copied workflow certificate_search.yaml and called it
certificate_list.yaml
- Changed workflow name
- Changed the map_cert_subject filter to: _map_cert_subject: "CN=[%],*"
- Removed input and validators for common_name
- Added following entry to rpc public.conf

[ListCertificate]
workflow = certificate_list
output = cert_identifier, notbefore, notafter, status

When I call the endpoint however this gives back no results:

{
    "result": {
        "id": 0,
        "proc_state": "finished",
        "state": "NORESULT",
        "pid": 956,
        "data": {}
    }
}

Where I would expect one certificate to come back, which does come back if
I use the certificate search in the WebUI.

Could anyone give me a pointer of what I could be doing wrong?

Cheers,
Gerard
_______________________________________________
OpenXPKI-users mailing list
OpenXPKI-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openxpki-users

Reply via email to