|
||
|
|
Chapter 13 Automated Notifications
Netscape Certificate Management System (CMS) can be configured to send automatic email notifications to end users when certificates are issued and revoked, or to an agent when a new request has arrived in the agent request queue. This chapter describes automated notifications, details how to enable and configure them, and details how to customize the notification email messages that are sent.
This chapter contains the following sections:
The automated notifications feature is an event-driven system that sends email notifications when the specified event occurs. The system uses listeners that monitor the system to determine when a particular event has occurred, and then trigger the notification system when the event does occur. Each type of notification is associated with a template in either plain text or HTML format that is used to construct the notification message. The template contains text and tokens that are expanded at run time to fill in the correct information for a particular event. The messages can be customized by changing the text and tokens contained in the templates. The HTML templates can be further customized by changing the HTML tags to create a different appearance for the message.
Setting Up Automated Notifications
The automated notifications feature is set up by performing the following tasks:
- Enabling and configuring one of the notification types and setting preferences for that notification type; see Setting Up Automated Notifications for complete details.
![]()
- Customizing the email notification messages that are sent. You do this by changing the template associated with a type of notification. You can change the contents of the message of both plain text messages and HTML messages, or the appearance of HTML messages. See Customizing Notification Messages for more information
![]()
Types of Automated Notifications
Three types of automated notifications are available:
A notification message is automatically sent to users who have been issued certificates. A rejection message is sent if the user's certificate request is rejected.
A notification message is automatically sent to one or more agents when a request enters the agent request queue, using the email address(es) you set up for the agent when you set up this feature. There is also a job that sends a notification to agents about the status of the queue. The job sends a summary of the status at certain intervals. This notification sends an email every time a message enters the queue. For more information about the request in queue job, see "RequestInQueueJob".
A notification message is automatically sent to users when their certificate is revoked.
You can create additional automated notifications using the CMS SDK.
Determining End-Entity Email Addresses
The notification system determines the email address of an end entity by checking in the certificate request or revocation request itself, then in the subject name of the certificate, and last in the Subject Alternative Name extension of the certificateif the certificate contains this extension. If an email address cannot be found, the notification is sent to the email address specified in the "Sender's Email Address" field specified when you set up this notifications as undeliverable notification.
You can customize the email resolver using the
ReqCertSANameEmailResolver.javaclass included as a sample with the CMS SDK.Setting Up Automated Notifications
To configure a Certificate Manager or Registration Manager to send automated notifications, follow these steps:
- Access the CMS console (see Logging Into the CMS Console).
![]()
- Click the Configuration tab.
![]()
- Select Notification in the navigation tree.
![]()
- The Notification tabs appear in the right side of the window.
![]()
- To enable Certificate Issued notifications, go to the Certificate Issued tab and specify information in the following fields:
![]()
- Enable Certificate Issued notification. Select this field to enable Certificate Issued notifications.
- Sender's E-mail Address. Type the sender's full email address; this is the email address of the person who is notified of any delivery problems.
- Subject. Type the subject title for the notification.
- Content template path. Type the path, including the filename, to the directory that contains the template to be used for constructing the message content.
- To enable Request In Queue notifications, go to the Request In Queue tab and specify information in the following fields:
![]()
- Enable Request In Queue notification. Select this field to enable Request In Queue notifications.
- Sender's E-Mail Address. Type the sender's full email address; this is the email address of the person who is notified of any delivery problems.
- Subject. Type the subject title for the notification.
- Recipient's E-Mail Address. Type the recipient's full email address; this is the email address of the agent, or agents, who will check the queue. You can specify more than one recipient; separate email addresses by commas.
- Content Template path. Type the path, including the filename, to the directory that contains the template to be used for constructing the message content.
- To enable Certificate Revocation notifications, go to the Certificate Revoked tab and specify information in the following fields:
![]()
- Enable Certificate Revoked notification. Select this field to enable Certificate Revoked notifications.
- Sender's E-mail Address. Type the sender's full email address; this is the email address of the person who is notified of any delivery problems.
- Subject. Type the subject title for the notification.
- Content template path. Type the path, including the filename, to the directory that contains the template to be used for constructing the message content.
- Click Save.
![]()
- Make sure your mail server is set up correctly. See Mail Server.
![]()
- Customize the notification message templates. See "Customizing Notification Messages".
![]()
- Test your configuration. See "Testing Your Configuration".
![]()
Configuring Specific Notifications By Editing the Configuration File
- Stop the server instance whose configuration file you will be editing.
![]()
- Open the
CMS.cfgfile for that server instance in a text editor.![]()
- Edit all of the configuration parameters for the notification type you are enabling and configuring.
![]()
- The parameters for this feature are identified as
ca.notificationfor a Certificate Manager andra.notificationfor a Registration Manager.
- The parameters for a particular notification message are explained in the procedure in the section "Setting Up Automated Notifications".
![]()
- Save the file.
![]()
- Restart the server instance.
![]()
- If you set up a job that sends automated messages, check that your have correctly set up a mail server. See "Mail Server".
![]()
- If you set up a job that sends automated messages, you can customize those messages. See "Customizing Notification Messages" for details.
![]()
To test whether the subsystem you configured sends email notifications:
- Change the email address in the notification configuration for the Request In Queue notification to your email address.
![]()
- Go to the end-entity interface and request a certificate using the agent-approved enrollment form.
![]()
- When the request gets queued for agent approval, you should receive a Request In Queue email notification. Check the message to see if has the correct information.
- Login to the agent interface and approve the request.
![]()
- When the server issues a certificate, you should receive a Certificate Issued email notification. Check the message to see if has the correct information.
- Login to the agent interface and revoke the certificate.
![]()
- You should receive an email message notifying you that the certificate has been revoked. Check the message to see if has the correct information.
Customizing Notification Messages
The email notifications that are sent are constructed using a template for each type of message that is sent. Each type of message has an HTML template and a plain text template associated with it. Messages are constructed from text and tokens, and HTML markup in the case of HTML templates. Tokens are variables, identified with the dollar sign (
$) character, in the message that are replaced by the current value when the message is constructed. See "Token Definitions" for a list of available tokens.You can modify the contents of any message type by making changes to the text and tokens contained in the template for that message type. You can modify the appearance of HTML messages by modifying the HTML commands included in the HTML template for that message type.
The text version of the certificate-issuance-notification message is a mixture of text and tokens, shown as follows:
Your certificate request has been processed successfully.
Serial Number= 0x$HexSerialNumber
To get your certificate, please follow this URL:
https://$HttpHost:$HttpPort/displayBySerial?op=displayBySerial&seri alNumber=$SerialNumber
Please contact your admin if there is any problem.
And, of course, this is just a \$SAMPLE\$ email notification form.
You could change the message by changing the text and tokens, shown as follows:
THE EXAMPLE COMPANY CERTIFICATE ISSUANCE CENTER
Your certificate has been issued!
You can pick up your new certficate at the following website:
https://$HttpHost:$HttpPort/displayBySerial?op=displayBySerial&seri alNumber=$SerialNumber
This certificate has been issued with the following information:
Serial Number= 0x$HexSerialNumber
Name of Certficate Holder = $SubjectDN
Certificate Expiration Date = $NotAfter
Certificate Validity Date = $NotBefore
Contact IT by calling X1234, or going to the IT website http://IT if you have any problems.
Notification Message Templates
Notification message templates are located in the following directory:
<server_root>/cert-<instance_id>/emailsYou can change the name of these files as applicable or their location; be sure to make the appropriate changes when configuring the notification. All template names can be changed except for the certificate rejected templates whose name must remain the same. The templates associated with certificate issuance and certificate rejection must be located in the same directory and must use the same extension.
Table 13-1 lists the default template files provided for creating notification messages.
Table 13-1 Notification Templates
Table 13-2 lists and defines the tokens that can be used in the notification message templates.
Table 13-2 Notification Tokens
© 2001 Sun Microsystems, Inc. Portions copyright 1999, 2002-2004 Netscape Communications Corporation. All rights reserved.
Last Updated November 23, 2004