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::Workflow::Activity::Tools::AddCertExtension(3) User Contributed Perl Documentation OpenXPKI::Server::Workflow::Activity::Tools::AddCertExtension(3)

OpenXPKI::Server::Workflow::Activity::Tools::AddCertExtension

Add a new item to the cert_extension list. The items get persisted and added to the certificate on issue. Running this activity is equal to adding the data to the profiles OID section. See the profile documentation for details on the parameters.

oid
oid of the extension (numeric notation, named oids are not accepted).
format, optional
the format of the item, usually ASN1 or DER.
encoding, optional
encoding of the item
value
value to set, in case you set encoding to SEQUENCE, the value must be a valid string to be added as section in the openssl config file. If the value is empty, nothing is added.
critical
Set to 1 to mark this extension as critical

To get the extension data in the context you must add the oid names to the PCSK10 parser activity:

    class: OpenXPKI::Server::Workflow::Activity::Tools::ParsePKCS10
    param:
       req_extensions: certificateTemplate certificateTemplateName

Add the certificateTemplateName extension using the value extracted from the PKCS10 request by the parser.

    class: OpenXPKI::Server::Workflow::Activity::Tools::AddCertExtension
    param:
        oid: 1.3.6.1.4.1.311.20.2
        format: ASN1
        encoding: UTF8String
        _map_value: "[% context.req_extensions.certificateTemplateName %]"

    class: OpenXPKI::Server::Workflow::Activity::Tools::AddCertExtension
    param:
        oid: 1.3.6.1.4.1.311.21.7
        format: ASN1
        encoding: SEQUENCE
        _map_value: |
            [% IF context.req_extensions.certificateTemplate %]
            field1=OID:[% context.req_extensions.certificateTemplate.templateID %]
            field2=INT:[% context.req_extensions.certificateTemplate.templateMajorVersion %]
            field3=INT:[% context.req_extensions.certificateTemplate.templateMinorVersion %]
            [% END %]
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.