Notification and summary email messages are constructed using templates located in the emails directory of a CMS instance. This directory has the following default location:
<server_root>/cert-<instance_id>/emails
Both text an HTML templates are included by default. They are listed in Table 14.6 and Table 14.7.
Templates for Event-Triggered Notifications
Table 14.6 lists the default template files provided for formulating event-triggered-notification messages. You can customize certain aspects of these templates--such as the subject of the email message and the location and name of the template file--using the CMS window.
Note that the email notification that a certificate has been issued is based on a template file whose default name begins with certIssued. Similarly, the email notification that a certificate has been rejected is based on a template file whose name begins with certRequestRejected. This template file must be located in the same directory as the certificate-issuance template. Unlike the certificate-issuance template, the filename of the certificate-rejection template (certRequestRejected) cannot be changed. However, the file extension for the certRequestRejected file can be changed, as long as it exactly matches the file extension specified for the certificate issuance template file. For example, if the certificate issuance template file is named certIssued_CA.htm, the certRequestRejected file must be named certRequestRejected.htm. The HTML file extensions permitted are .htm, .html, .HTM, and .HTML. Template files with any other extension (or no extension) are treated as text files.
If you change the name of any of these files, be sure to make the appropriate changes to the configuration (see the "Content template file" field on page 451 and page 454). In the CMS configuration, template files for event-triggered notifications are identified as follows:
<subsystem>.notification.<notification_name>.emailTemplate=
<template_file_path>
<subsystem>.notification.<notification_name>.emailTemplate=
<template_file_path>
Tokens, which you can use as variables in the body of the message, are also defined for each template, enabling you to customize the message; a token is replaced by its current variable value in the constructed message. For details, see "Customizing Message Templates".
Templates for Summary Notifications
Table 14.7 lists the default template files for formulating the notification messages that summarize jobs that were executed by the Job Scheduler component of a Certificate Manager or Registration Manager. You can change the name of these files as applicable; be sure to make the appropriate changes to the configuration.
For summaries, a separate template is used to format the entry for each item in the summary. The item entries are then added to a table in the summary message.
Tokens, which you can use as variables in the body of the message, are defined for each templates enabling you to customize the message; the token is replaced by its current variable value in the constructed message. For details, see "Customizing Message Templates".
Note that in the CMS configuration, template files for schedulable jobs are identified as follows:
jobsScheduler.job.<job_name>.summary.emailTemplate=
<template_file_path>
jobsScheduler.job.<job_name>.summary.itemTemplate=
<template_file_path>
Customizing Message Templates
You can modify the templates to customize the contents and appearance of messages. The message body can contain HTML or plain text. In the body of the message, you can use tokens or keywords as variables. A token is indicated by the dollar character ($) and is replaced by its current variable value in the constructed message. Different tokens are available for each job or notification class. These are listed in "Tokens Available in Message Templates".
For example, a certificate-issuance-notification message can make use of tokens as follows:
CERTIFICATE ISSUANCE NOTIFICATION
Your certificate request ($RequestId) has been processed successfully.
Details of your certificate are as follows:
Serial Number= $SerialNumber
SubjectDN= $SubjectDN
IssuerDN= $IssuerDN
Validity Period= $NotBefore - $NotAfter
To get your certificate, please follow this URL:
https://$HttpHost:$HttpPort/getCertFromRequest?requestId=$RequestId
If you have any questions or problems, please send an email to
cert_central@siroe.com.
Thank you.
Tokens Available in Message Templates
This section explains the tokens provided in the templates used by the default job plug-in and event-triggered notification modules to formulate notification messages.
Tokens for Certificate Issuance Notifications to End Entities
Table 14.8 lists the tokens that are available in the message templates provided for formulating the content of email notifications to end entities; a Certificate Manager or Registration Manager can send these notifications upon issuance of the certificates they requested.
Tokens for Rejection Notifications to End Entities
Table 14.9 lists tokens that are available in the message templates provided for formulating the content of email notifications to end entities; a Certificate Manager or Registration Manager can send these notifications to end entities when rejecting certificate requests.
Tokens for Renewal Notification Messages
This section lists the tokens that are available in the message templates for instances of the RenewalNotificationJob class or plug-in module.
Table 14.10 lists the tokens that you can use for formulating this job's summary report. You can customize the content and format of the items in the report by using the tokens defined in Table 14.11.
Table 14.11 lists the tokens for the inner list items.
Tokens for Request In Queue Notification Messages
Table 14.12 lists the tokens that you can use for formulating the content of the RequestInQueueJob job's summary report.
Tokens for Directory Update Notification Messages
This section lists the tokens that are available in summary message templates for instances of the UnpublishExpiredJob class or plug-in module.
Table 14.13 lists the tokens that are available for this jobs's summary report. You can customize the content and format of the items in the report by using the tokens defined in Table 14.14.
Table 14.14 lists the tokens for the inner list items.