|
NAMEOpenXPKI::Server::API2::Plugin::Profile::render_templatesCOMMANDSrender_subject_from_templateRenders the certificate subject by using the text template as defined in the certificate profile ("profile.XXX.style.XXX.subject.dn") and the given variables.The result might be empty. Parameters
render_san_from_templateRenders a list of SANs by using the text template as defined in the certificate profile ("profile.XXX.style.XXX.subject.san") and the given variables.The result is formatted for use with the crypto backend and might be undef if nothing is found. If additional SANs are specified they are merged with the results of the template parser, duplicates are removed. Expected hash format (empty refs are ok): { DNS => [ 'www.example.com', 'www.example.org' ] } Configuration example: subject: san: dns: - "[% hostname %]" - "[% FOREACH entry = hostname2 %][% entry %]|[% END %]" email: [% email %] Parameters
render_metadata_from_templateRenders a HashRef metadata entries by using the text template as defined in the certificate profile ("profile.XXX.style.XXX.metadata") and the given variables.The return HashRef's values are either scalars (single metadata item) or ArrayRefs (metadata lists, separated by pipe "|" in config). Empty template parsing results are not stored. Configuration example: metadata: requestor: "[% requestor_gname %] [% requestor_name %]" Parameters
METHODSprocess_templateProcess the given text template via "process" in Template using the given variables.Parameters
cleanup_for_ttCleans up the given HashRef of variables for use in Template Toolkit.This modifies the argument HashRef! Parameters
Visit the GSP FreeBSD Man Page Interface. |