GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Server::API2::Plugin::Profile::render_templates(3) User Contributed Perl Documentation OpenXPKI::Server::API2::Plugin::Profile::render_templates(3)

OpenXPKI::Server::API2::Plugin::Profile::render_templates

Renders 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

  • "profile" Str - certificate profile, required
  • "style" Str - profile substyle, default: first style found in profile
  • "vars" HashRef - variables to be inserted into (i.e. required by) the template text, required

Renders 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

  • "profile" (Str) - certificate profile, required
  • "style" (Str) - profile substyle, default: first style found in profile
  • "vars" (HashRef) - variables to be inserted into (i.e. required by) the template text, required
  • "additional" (HashRef) - additional SANs, default: none

Renders 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

  • "profile" (Str) - certificate profile, required
  • "style" (Str) - profile substyle, default: first style found in profile
  • "vars" (HashRef) - variables to be inserted into (i.e. required by) the template text, required

Process the given text template via "process" in Template using the given variables.

Parameters

  • $template (Str) - text template for TT
  • $vars (HashRef) - variables for TT

Cleans up the given HashRef of variables for use in Template Toolkit.

This modifies the argument HashRef!

Parameters

$vars (HashRef) - variables for TT
2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.