Hi,
the "_map" enables parameter replacement that is not required here, so
remove it. I did not try but as "[% %]" is the makro for the Template
engine (invoked by the map prefix) I'd assume that this generates some
unexpected string.
Try "cert_subject: *" - I think that should work, but be aware that the
class has some internal limits, have a look at the docs of the activitiy
class.
Oliver
Am 21.04.21 um 11:56 schrieb Gerard van den Bosch:
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openxpki-users
--
Protect your environment - close windows and adopt a penguin!
_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users