HI,




Version : OpenXPKI Community Edition v3.32.8



when using RPC to run the search certificate workflow I have the following 
action defined in the workflow/def/certificate_search.yaml :



 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_pem: "[% USE Certificate %][% 
Certificate.pem(context.cert_identifier) %]"
            _map_cn: "[% USE Certificate %][% 
Certificate.subject(context.cert_identifier) %]"





in the client.d/service/rpc/public.yaml rpc config I have 



SearchCertificate:
    workflow: certificate_search
    input:
      - common_name
    output:
      - notbefore
      - notafter
      - status
      - pem
      - cn 
      - cert_identifier



all fields are displayed in the json data array fine.



Can someone please explain :



- why I dont need to map cert_identifier to return it, cert_identifier seems to 
be the only value that doesnt need to be mapped to work in output ?

- why I cannot do : _map_whatever: "[% USE Certificate %][% 
Certificate.cert_identifier(context.cert_identifier) %]" and let it output via 
the RPC call by adding '- whatever' in the output: list ?

- why I cannot do : _map_keyid: "[% USE Certificate %][% 
Certificate.subject_key_identifier(context.cert_identifier) %]"  and let it 
output via the RPC call by adding '- keyid' in the output: list ?





just trying to make some sense of all this 



thank you in advance

regards,

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

Reply via email to