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::preset_subject_parts_from_profile(3) User Contributed Perl Documentation OpenXPKI::Server::API2::Plugin::Profile::preset_subject_parts_from_profile(3)

OpenXPKI::Server::API2::Plugin::Profile::preset_subject_parts_from_profile

Generate cert_subject_parts hash by parsing a profiles preset attributes

Parameters

  • "profile" Str - certificate profile name, required
  • "fields" ArrayRef - list of field names to query, default: all fields of the given style
  • "style" Bool - profile style to query, required if "fields" is not specified
  • "section" Str - ui section (only used if "style" was specified), default: "subject"
  • "preset" HashRef

The parser knows four different notations for the preset rules.

clonable field word.X
Expects $param->{word} to be an array and creates one field item for each value. The X is a literal character.
DN component rdn / rdn.n
Create a field using the n-th value of the dn component rdn. If n is not given the first component is used. E.g. to set a field to the commonName of a used CSR write CN or CN.0. To use the second occurence of "organizational unit" write OU.1.

The list of supported RDNs is C|ST|O|OU|CN|DC|L|UID|SN|GN.

additional data word.key
If additional key/value data was passed as input, e.g. the userinfo hash you can access those items writing e.g. userinfo.email. To avoid any ambigouties the section name must be lowercase and match the key of the hash in the input data, the latter key can use any word character.
template
If none of the above rules is matched, the string is handed over to template toolkit using the preset hash as variable input. If the field is clonable, the result is split at the pipe symbol and a field is added for each non-empty item.
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.