OpenXPKI::Server::Workflow::Activity::Tools::AppendCertificateMetadata
Add arbitrary key/value items as certificate metadata.
The activitiy will exit silently if cert_identifier is not
set.
class: OpenXPKI::Server::Workflow::Activity::Tools::AppendCertificateMetadata
param:
cert_identifier: 0utS7yqMTAy2DLIufyJvoc2GSCs
mode: overwrite
meta_new_attribute: my_value
This will attach a new metadata item with the key
meta_new_attribute and value my_value for the given identifier. This
information does not depend on any metadata settings in the certificates
profile!
- error
- If the used key is already present, an exception is thrown. This is the
default.
- skip
- The new value is discarded, the old one will remain in the table.
- overwrite
- The old value is replaced by the new one, expects that only one value
exists. If multiple values have been found, an exception is thrown.
- merge
- Add the new value if it does not already exists, will also work if the key
is defined more than once.