Hi Andreas,
I think you need to upgrade to the 2.x branch - the RPC stuff had some
major changes...
output = cert_identifier, error_code
You are right, the workflow in the repo does not set error_code at all,
looks like a leftover from a "modified" customer version ;)
As this is some kind of whitelist it does not hurt if the value is not
present. To continue with your example, you have to add ", data" here.
I have added the last line in the certificate_search workflow
get_certificate_data:
class: OpenXPKI::Server::Workflow::Activity::Tools::SetContext
param:
_map_notbefore: "[% USE Certificate %][%
Certificate.notbefore(context.cert_identifier) %]"
_map_notafter: "[% USE Certificate %][%
Certificate.notafter(context.cert_identifier) %]"
_map_status: "[% USE Certificate %][%
Certificate.status(context.cert_identifier) %]"
_map_data: "[% USE Certificate %][%
Certificate.data(context.cert_identifier) %]"
I think data in Certificate.data(context.cert_identifier) should be the data
field in the database?
No it isnt - the "USE Certificate" calls the Template Toolit Plugin
which you can find here
https://github.com/openxpki/openxpki/blob/develop/core/server/OpenXPKI/Template/Plugin/Certificate.pm
Is there a way to get the certificates as pem?
Yes - but this way only with the HEAD version of the code as we
introduced this just recently:
Certificate.pem(context.cert_identifier)
I tried it also with download.fcgi but I don't know if it can be uses with
the latest 1.20 version. It was not installed so I added it from github.
This should work...
best regards
Oliver
--
Protect your environment - close windows and adopt a penguin!
_______________________________________________
OpenXPKI-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-users