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::Notification::Connector(3) User Contributed Perl Documentation OpenXPKI::Server::Notification::Connector(3)

OpenXPKI::Server::Notification::Connector - Notification via Connector

This class implements a notifier that sends out notifications via the "set" method of a Connector backend. The payload can be created in different ways.

For now this backend supports creation of a data structure directly as a hash from the config or by rendering a YAML file using Template Toolkit and parsing the yaml afterwards.

The only supported output format for now is JSON.

# Sample configuration using a JSON based REST API via HTTP

backend: class: OpenXPKI::Server::Notification::Connector connector: Connector::Proxy::HTTP LOCATION: https://api.acme.org/v2/ content_type: application/json http_method: POST header: Authorization: MyAuthToken

# template settings template: dir: /usr/local/etc/openxpki/template/alerts/

message: cert_expiry: default: path: alert # the template file must end on .yaml and generate a hash template: cert_expiry

    cert_issued:
        default:
            path: info
            content:
                title: A new certificate for [% cert_subject %] has been created
                message: |
                    A new certificate for [% cert_subject %] has been created.
                    You can find more details on the PKI WebUI.
                priority: info
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.