|
||
|
|
Chapter 8 Administrative Basics
This chapter discusses the Netscape Certificate Management System (CMS) user interface, the configuration file, and other basic administrative tasks like starting and stopping the server, managing logs, changing port assignments, and changing the internal database.
This chapter contains the following sections:
- The Administrative Interface
![]()
- System Passwords
![]()
- Starting, Stopping, and Restarting CMS Instances
![]()
- Subsystem Configuration Overview
![]()
- Mail Server
![]()
- Configuration Files
![]()
- Logs
![]()
- Signed Audit Log
![]()
- Self Tests
![]()
- Ports
![]()
- Changing an IP Addresses
![]()
- The Internal Database
![]()
- Managing the Certificate Database
![]()
- Tokens for Storing CMS Keys and Certificates
![]()
- Hardware Cryptographic Accelerators
![]()
- Configuring the Server's Security Preferences
![]()
CMS provides a GUI-based administration tool called the CMS console that is accessible from Netscape Console. Netscape Console is a GUI-based front-end for Netscape Administration Server and allows you to manager servers as well as users.
This section provides an overview of Netscape Administration Server and the CMS console.
Netscape Administration Server
Netscape Administration Server is a web-based (HTTP) server installed along with CMS that enables you to configure CMS through Netscape Console. You access Administration Server by entering its URL in the Netscape Console login screen and providing the user ID and password of the administrative user.
Administration Server must be running before you can access Netscape Console.
For complete details about Netscape Administration Server, see Managing Servers with Netscape Console.
Starting Administration Server
The CMS installation program automatically starts Administration Server. If you stopped Administration Server after installation, you must start it before you can administer CMS from the CMS console.
To start Administration Server:
Netscape Console is a stand-alone Java application that provides a GUI-based front end to all network resources registered in an organization's configuration directory. This unified administration interface simplifies network administration by supplying access points to all Netscape server instances installed across a network. Similarly, it simplifies basic user and group management by providing a unified administration interface to the user directory.
You can accomplish various CMS-specific tasks from the Console tab:
- Launch the CMS console.
![]()
- Install instances of CMS.
![]()
- Remove an instance of CMS.
![]()
- Clone an instance of CMS.
![]()
- Set access permissions for CMS.
![]()
For complete details about Netscape Console, see Managing Servers with Netscape Console.
You can launch and use Netscape Console only when the configuration directory and Administration Server are running.
- Go to the following directory:
![]()
- Type the following command:
![]()
./startconsole
- The login dialog opens.
- Log into Netscape Console by filling in the following field:
![]()
- User ID. Type the administrator user ID. You should login using the administrator user ID, using the
cn=DirectoryManager user ID allows you full privileges with Directory Server, but does not allow you to create CMS server instances.
- Password. Type the password for this user ID.
- Administration URL. Specify the URL for the Administration Server you want to log into. This URL has the following format:
http://<machine_name>.<your_domain>.<domain>:<port_number>
- For example, if your domain name is
example.comand you installed Administration Server on a host machine calledmyHostand specified port number12345, the URL is:http://myHost.example.com:12345
- Click OK.
![]()
- Netscape Console opens.
![]()
The CMS console is a GUI-based administration interface that allows you to perform day-to-day operational and managerial duties for CMS and configure the server. You launch the CMS console from within Netscape Console.
You can use the CMS console to access the server locally or remotely. The console has the following tabs:
- Tasks Tab
![]()
- The Tasks tab enables you to perform tasks such as starting, stopping, and restarting the server, and running the Certificate Setup Wizard. For more information, see "Starting, Stopping, and Restarting CMS Instances".
- Configuration Tab
![]()
- The Configuration tab enables you to view and modify the configuration settings for the server instance. The choices available in this tab will change depending on which subsystem is installed in this server instance. The specifics of setting these configuration settings is contained in the appropriate section of this guide.
- Status Tab
![]()
- The Status tab allows you to monitor the server by viewing the contents of various logs maintained by CMS. See "Logs" for more information.
- Log into Netscape Console, see "Logging Into Netscape Console".
![]()
- Double-click the CMS instance you want to open from the Netscape Console navigation tab, or select the instance and click Open.
![]()
- The CMS Authenticate User dialog opens.
- If this instance has not yet been setup, the Installation Wizard launches allowing you to set up this instance.
- If the server is not running, you are asked to start the server first. For information on starting the server, see Starting, Stopping, and Restarting CMS Instances.
- You must login into CMS as an administrator user of CMS. Provide the administrator user ID and password in the following fields:
![]()
- User ID. Provide a user ID that has CMS administrator privileges.
- Password. Type the password for this user ID.
- Note: If SSL client authentication is set up for this server, you will be presented with a list of your certificates to choose from in order to login. You will not be presented with the userID/Password entry dialog.
- The CMS console opens.
![]()
![]()
Viewing Information About a CMS instance
You can view some of the basic information about a CMS instance.
To view information pertaining to a CMS instance:
- Log in to Netscape Console (see Logging Into Netscape Console).
![]()
- In the Console tab, select the CMS instance you want to view.
![]()
- The right pane shows information about the selected CMS instance.
- The information displayed includes the following:
- Server Name. A descriptive name of the CMS instance.
- Description. Additional information that helps you identify the CMS instance. You can change this description.
- Installation Date. The date the server was installed.
- Server Root. The directory in which all servers are installed.
- Product Name. The complete product name.
- Vendor. The name of the vendor.
- Version. The version number.
- Build Number. The number that identifies the build that was used for this installation.
- Security Level. The server's security levelwhether the server is meant for use in the United States and Canada (domestic) or any other part of the world (export). See Configuring the Server's Security Preferences.
- Server Status. The server's statuswhether it is
started,stopped, orunknown; normally,unknownindicates that the server hasn't been configured properly.
- To change the name of the instance, or its description:
![]()
- Select the instance and click Edit.
- Details about the selected CMS instance appear in the right pane. Specify the appropriate information:
- Server Name. Type a name for the server.
- Description. Type any additional description for the server. For example, you may want to type information that will help you identify this instance of CMS.
Setting up Certificate Authentication for the CMS Console
Certificate Authentication of Netscape Console, and the CMS window can now be enabled so that administrators must authenticate using a client certificate that is good for SSL authentication before logging into Netscape Console, or the CMS window. You first need to store the certificates of the administrators and then enable this feature.
Storing an Administrator's Client Certificates
You must store the certificates for any of administrator using this system. The certificate should be either from the CA itself, or from whichever CA signed the certificate for the subsystem.
Make sure the client certificate is good for SSL client authentication, otherwise, the server will not accept the client certificate and will post the following error message in the error log located in the directory
<server_root>/cert-<instanceID>/logs/errors:
failure (14290): Error receiving connection (SEC_ERROR_INADEQUATE_CERT_TYPE - Certificate type not approved for application.)Enabling SSL Client Authentication
To enable SSL client authentication in Netscape Console:
- Since you need to use
certutilto initializecert8.dbandkey3.dband to create certificate request, make sure to set the LD_LIBRARY_PATH correctly. To do this, issue the following command:![]()
setenv LD_LIBRARY_PATH <server_root>/lib:$LD_LIBRARY_PATH
- Use
certutilin/bin/cert/toolsto initialize the cert8.db and key3.db files in<home_directory>/.mcc. To do this:![]()
- Go to the following directory:
![]()
<server_root>/bin/cert/tools
- Issue the command:
![]()
./certutil -N -d <home_directory>/.mcc
- Request the client certificate. Go to the end-entity interface for the CA that will issue the certificate and click on the Enrollment tab.
![]()
- Select the "Manual User Dual-Use Certificate Enrollment" link.
![]()
- Fill in all necessary information required for the form and click Submit.
![]()
- Once you get the certificate, make sure to import it to the browser.
![]()
- Export the certificate as p12 file.
![]()
- Import the client certificate in p12 format to the cert8.db.
![]()
./pk12util -i <pk12file> -d "<home directory>/.mcc"
- Log in to the CMS console (see Logging Into the CMS Console).
![]()
- Go to the Configuration tab, and then select the Users tab in the left hand panel.
![]()
- Click Certificates to add the client certificate.
![]()
- The Manager User Certificates window appears.
- Paste the certificate into the window.
![]()
- Click Import.
![]()
- Repeat from step 6 for each administrator until the certificates for all administrators have been imported.
![]()
- Click Done.
![]()
- Stop the CMS server.
![]()
- Go to the directory
<serverRoot>/cert-<instanceID>/config![]()
- Open the file
CMS.cfg.![]()
- Change the value of the
authTypeparameter frompwdtosslclientauth:![]()
authType=sslclientauth
- Save the file.
![]()
- Open the file
server.xml.![]()
- Change the
clientauth="off"attribute toclientauth="on"in theSSLPARAMSsection of theLS id="admin":![]()
<LS id="admin" ip="0.0.0.0" port="8206" security="on" acceptorthreads="1" blocking="no">
<CONNECTIONGROUP id="admin_default" matchingip="default" servername="buster.mcom.com" defaultvs="admin-vs">
<SSLPARAMS servercertnickname="Server-Cert cert-buster" ssl2="off" ssl2ciphers="-rc4,-rc4export,-rc2,-rc2export,-des,-desede3" ssl3="on" ssl3tlsciphers="-fortezza,-fortezza_rc4_128_sha,+rsa_rc4_128_md5,-rsa_rc4_40_md5,+rsa_3des_sha,+rsa_des_sha,-rsa_rc2_40_md5,-fortezza_null,-fips_des_sha,+fips_3des_sha,-rsa_null_md5,-rsa_des_56_sha,-rsa_rc4_56_sha" tls="on" tlsrollback="off" clientauth="off"/>
- Start CMS.
![]()
- Start Netscape Console. You will be prompted for your certificate.
![]()
CMS has a password-quality checker for internal passwords that you can configure to your needs. It stores token passwords in a plain text file, and stores all other passwords in an encrypted password cache file.
CMS comes with a plug-in, called password-quality checker, to monitor the quality of passwords set within the CMS system. All passwords used in CMS are checked by the password-quality checker, which by default checks that the length of a password is at least 8 characters long; there are no checks regarding which characters are valid or invalid. If you use a password that doesn't meet the quality rules, you will get an error message.
Note that CMS enforces password quality on only those passwords that it creates and manages. Passwords you enter for LDAP directory access are not subjected to quality checks. The reason for this is, the password quality is handled by the system that creates and manages the password. In an LDAP directory access, the remote directory that you authenticate to enforces the quality of the password you used because it is created and managed by the directory.
To enable you to customize the quality of passwords, the plug-in for the password-quality checker is included as a sample in the CMS SDK.
Passwords Stored by the Server
CMS stores passwords in two separate files. These passwords are used to bind to servers, or to unlock tokens when you start up the server.
The passwords for any tokens holding the private keys for the subsystem installed in this instance of CMS are stored in the file
password.conflocated in the<server_root>/cert-<instance_id>/configdirectory. This file has read/write permission for the installer only.This file contains the token passwords needed to open the private keys of the subsystem as follows:
- For a Certificate Manager the token password unlocks the private keys for the Certificate Manager's CA signing and SSL server certificates. If the Certificate Manager's OCSP option was enabled during installation, then the password also unlocks the private key for the Certificate Manager's OCSP signing certificate.
![]()
- For a Registration Manager the token password unlocks the private keys for the Registration Manager's signing and SSL server certificates.
![]()
- For a Data Recovery Manager the token password unlocks the private keys for the Data Recovery Manager's storage keys and transport and SSL server certificates.
![]()
- For an Online Certificate Status Manager the token password unlocks the private keys for the Online Certificate Status Manager's signing and SSL server certificates.
![]()
Deleting the password.conf File
You can choose to delete the password.conf file during CMS installation, the default choice is to keep the file. You might choose to delete this file for added security of your token passwords because this file stores the passwords in a plain text file.
If you do delete the
password.conffile, you must start the server instance using the command line. You will be prompted for the token passwords after entering thestart-certcommand. You cannot start the CMS instance from the CMS console. CMS console does not provide the ability to enter this password when thepassword.conffile is absent.Passwords for the internal database and other database related passwords for optional features are stored in the file
pwcache.dblocated in the<server_root>/cert-<instance_id>/configdirectory. The password cache is triple-DES encrypted with a symmetric key, which is generated and stored in the cryptographic module. This file is opened using the single sign-on password, and the passwords stored are used to bind to the various services.In order to make changes to the password cache, CMS ships with a command-line named
PasswordCachelocated in the<server_root>/bin/cert/toolsdirectory. For complete details about this utility, see the Netscape Certificate Management System Command-Line Tools Guide.The list of passwords stored in this file includes the following:
- The bind password used by CMS to access and update the internal database.
![]()
- The bind password used by CMS to access and remove PINs from the authentication directory, if you've configured CMS to remove PINs from the authentication directory.
![]()
- The bind password used by CMS to access and create/modify user entries in the directory used for portal registration, if you've configured CMS for portal enrollment.
![]()
- The bind password used by CMS to access and update the LDAP directory; this is required only if you have configured CMS for publishing certificates and CRLs to an LDAP-compliant directory.
![]()
Starting, Stopping, and Restarting CMS Instances
Each instance of CMS is started, stopped, and restarted separately. This section describes how to start, stop, and restart CMS instances and how to check its current status.
You can start the server from either Netscape Console or from the command line.
Starting From Netscape Console
To start a CMS instance from Netscape Console:
- Log in to Netscape Console (see Logging Into Netscape Console).
![]()
- Select the CMS instance you want to open from the Netscape Console navigation tab and then right-click your mouse selecting the Start Server option from the pop-up menu.
![]()
- Log in to Netscape Console (see Logging Into Netscape Console).
![]()
- Double-click the CMS instance you want to open from the Netscape Console navigation tab, or select the instance and click Open.
![]()
- Go to the Tasks Tab and select Start Server.
![]()
If you chose to delete the
password.conffile during installation, you must start the server instance on the command line; you cannot start the server instance from the CMS console.For more information, see "Passwords Stored by the Server".
Starting From the Command Line
To start a CMS instance from the command line:
- Log in either as the
rootuser ID or with the server's user ID.![]()
- Go to the following directory:
![]()
<server_root>/cert-<instance_id>
- Type the following command:
![]()
You can stop the server from either Netscape Console or from the command line.
With this version of CMS, CMS is enabled for a clean shutdown. During the shutdown process, the subsystem will process any already posted requests to any of its interfaces to completion, but will accept no new requests. There is a setting in the CMS
.cfgfile that allows you to set the absolute time out, the amount of time before the between issuing the shutdown command and actual shutdown. If this time is reached before all processes are complete, the server will shutdown without completing the processes. The default time out setting is 1 minute.Stopping From Netscape Console
To stop a CMS instance from Netscape Console:
- Log in to Netscape Console (see Logging Into Netscape Console).
![]()
- Select the CMS instance you want to stop from the Netscape Console navigation tab and then right-click your mouse selecting the Stop Server option from the pop-up menu.
![]()
- Log in to Netscape Console (see Logging Into Netscape Console).
![]()
- Double-click the CMS instance you want to open from the Netscape Console navigation tab, or select the instance and click Open.
![]()
- Go to the Tasks Tab and select Stop Server.
![]()
Stopping From the Command Line
To stop a CMS instance from the command line:
- Log in either as
rootor with the server's user account.![]()
- Go to the following directory:
![]()
<server_root>/cert-<instance_id>
- Type the following command:
![]()
./stop-cert
You can restart the server from either Netscape Console or from the command line.
Restarting From the CMS Console
To restart a CMS instance from the CMS console:
- Log in to Netscape Console (see Logging Into Netscape Console).
![]()
- Double-click the CMS instance you want to open from the Netscape Console navigation tab, or select the instance and click Open.
![]()
- Go to the Tasks Tab and select Restart Server.
![]()
Restarting From the Command Line
To restart a CMS instance from the command line:
- Log in either as
rootor with the server's user account.![]()
- Go to the following directory:
![]()
<server_root>/cert-<instance_id>
- Type the following command:
![]()
./restart-cert
Subsystem Configuration Overview
Once you install CMS on a host, you are ready to configure any subsystems that will run on that host. You can configure multiple subsystems on a host, or multiple instances of a single subsystem. As part of your deployment planning, you should decide which subsystems will be needed and on which hosts those subsystems will be deployed.
You can configure subsystems in any order, but you may want to plan the order to provide the smoothest setup of your deployment. For example, if you are going to be setting up a hierarchy of Certificate Managers, you should install the root CA first. You might also want to install a Certificate Manager that will develop a trusted relationship with other subsystems first.
Configuring Multiple CMS Instances
When CMS is installed on a host, a single instance of CMS is also created and ready to be configured. You can created more instances of the server on the same machine and then set them up. For instance, you might want to add a Data Recovery Manager on the same host as a CA.
To create another instance of CMS:
- Log in to Netscape Console (see Logging Into Netscape Console).
![]()
- In the navigation tree, select the server group in which you want to create a CMS instance.
![]()
- From the Object menu, choose Create Instance Of, then choose CMS from the pop-up list.
![]()
- Alternatively, you can select the server group and then right-click your mouse choosing Create Instance Of->Certificate Management System.
- The Create Server Instance dialog opens.
- Type a unique name or identifier for the new instance.
![]()
- You can use any combination of letters (
aAtozZ), digits (0to9), an underscore (_), and a hyphen (-); other characters and spaces are not allowed. For example, you can typePilot_root-CAas the instance name, but notPilot root CA.
- Click OK.
![]()
- The instance you created appears in the navigation tree.
- To configure the instance, start the installation wizard by double-clicking the new instance in the navigation tree. See the section in this chapter on configuring the subsystem you want to setup in this instance for complete details.
![]()
Removing an Instance From a System
You can remove a CMS instance from your host. Removing a CMS instance is not the same as uninstalling CMS. For instructions on uninstalling CMS, see Uninstalling CMS.
- Log in to Netscape Console (see Logging Into Netscape Console).
![]()
- Stop the CMS instance.
![]()
- Select the CMS instance you want to remove and choose Remove Server from the Object menu.
![]()
- Alternatively, you can select the CMS instance you want to remove and then right-click your mouse choosing Remove Server from the pop-up menu.
- When prompted, confirm that you want to remove the instance.
![]()
- The selected CMS instance is removed. The corresponding internal database is not removed. If you want to remove it, select the internal database, and repeat steps 2 through 4.
- The Directory Server (configuration directory) and Administration Server binaries are also not removed; you need these to administer the remaining servers installed in the same server group.
The notifications and jobs features use the mail server set up in the CMS instance to send its notification messages. You set up a mail server using the following procedure:
- In the CMS window, select the Configuration tab, and then in the right pane, select the SMTP tab.
![]()
- Identify the mail server by providing the following details:
![]()
- Server name. Type the fully qualified DNS host name of the machine on which your mail server is installed. The format for the host name is as follows:
<machine_name>.<your_domain>.<domain>
- By default, the host name of the mail server is shown as
localhostinstead of the actual host name (for example,mail.example.com).
- Port number. Type the port number on which the mail server is listening for requests.
- Click Save.
![]()
The runtime properties of CMS are governed by a set of configuration parameters. These parameters are stored in a file that is read by the server during startup.
When you install CMS, the installer creates an ASCII file, named
CMS.cfg, and populates it with the appropriate configuration parameters. You can control the way CMS functions by making the appropriate changes in the CMS console, which is the recommended method for making configuration changes. The changes you make in the CMS console are reflected in the configuration file. You can also make changes directly to the configuration file, but unless specifically instructed to do so in this documentation, this is not recommended.Locating the Configuration File
Each instance of CMS has its own configuration file,
CMS.cfg. The file for the subsystem is different depending on your installation choices, and on which subsystem is installed in that instance.The
CMS.cfgfile is located in the following directory:
<server_root>/cert-<instance_id>/config
Editing the Configuration File
To modify the configuration file:
- Stop the CMS instance whose configuration file you want to edit (see Starting, Stopping, and Restarting CMS Instances).
![]()
- The configuration file is stored in the cache when you start CMS. Any changes you make to CMS through the CMS console are changed in the cached version of the file. When you stop or restart the server, the configuration file stored in the cache is written to disk.
- You must stop the server before editing the configuration file because your changes will be overwritten by the cached version when the server is stopped or restarted.
- Go to the following directory:
![]()
<server_root>/cert-<instance_id>/config
- Open the file
CMS.cfgin a text editor.![]()
- Edit the parameters in the file and save your changes.
![]()
- Start CMS (see Starting, Stopping, and Restarting CMS Instances).
![]()
Guidelines for Editing the Configuration File
The following are guidelines for editing the configuration file:
- The format for parameters is as follows:
![]()
- Comment lines begin with the pound
(#)character and are ignored.![]()
- A line beginning with white space is considered a continuation of the previous line.
![]()
- Comment lines, blank lines, unknown parameters, or misspelled parameters are ignored by the server.
![]()
- Subsystem-specific parameters are distinguished by a prefix identifying the subsystem as follows:
![]()
cafor the Certificate Manager![]()
rafor the Registration Manager![]()
krafor the Data Recovery Manager![]()
ocspfor the Online Certificate Status Manager![]()
- The parameter names and their values are strings. The parameter names can be hierarchically structured with
'.'notation with multiple levelsfor example,ca.Policy.rule.RSAKeyRule.maxSize. The entries corresponding to a lower level (such asPolicyin the example) can be requested from the configuration corresponding to its higher level (cain the example).![]()
- The values that need to be localized (such as distinguished names in multibyte format) should be entered in
utf8format.![]()
- The values of some parameters are referenced to other parts of the configuration file. For example, assume that a parameter is defined as
subsystem.id=ca; when this parameter is processed by the server, all the parameters beginning withcawill be used.![]()
- The configuration file supports Unix-style file separator, the forward slash (/). If the backward slash (\) file separator is required, use two backward slashes (\\) instead of one.
![]()
- Authentication parameters:
![]()
- All authentication-specific information, such as names of registered authentication plug-in modules and any configured instances, appears in the Authentication section of the configuration file.
![]()
- Each registered authentication plug-in module is identified by its implementation name and the corresponding Java class.
![]()
- Each configured instance of an authentication module is identified by the name or ID you specified when creating it.
![]()
- You can create multiple instances from an implementation; each instance must have a unique name. To do this, you would copy all of the parameters belonging to the module used to create the instance. Change the name of each of these parameters to the new name for this instance, and then change the value of all the parameters as is appropriate for your needs.
![]()
- The name of an authentication instance must be used in the corresponding enrollment form so that the server is able to determine the authentication method during end-user enrollment.
![]()
- Job Scheduler parameters:
![]()
- All job-specific information, such as registered job modules and configured instances, appears in the Job Scheduler section of the configuration file.
![]()
- Each registered job module is identified by its implementation name and the corresponding Java class.
![]()
- Each job (or configured instance of a job module) is identified by the name specified when the job was created.
![]()
- You can create as many instances of an implementation as you like; each instance must have a unique name. To do this, you would copy all of the parameters belonging to the module used to create the instance. Change the name of each of these parameters to the new name for this instance, and then change the value of all the parameters as is appropriate for your needs.
![]()
- Policy parameters:
![]()
- All policy-specific information, such as registered policy plug-in implementations, configured rules, and ordering, appear in the Policy section of the configuration file.
![]()
- Each registered policy plug-in module is identified by its implementation name and the corresponding Java class.
![]()
- Each configured rule of a policy module is identified by the name specified when the rule was created.
![]()
- You can create multiple rules out of an implementation; each rule must have a unique name. To do this, you would copy all of the parameters belonging to the module used to create the instance. Change the name of each of these parameters to the new name for this instance, and then change the value of all the parameters as is appropriate for your needs.
![]()
Duplicating Configuration From One Instance to Another
If you have deployed a large number of CMS instances that are identicalfor example, multiple Registration Managersand you want all these instances to have the same configuration, you can accomplish this by configuring one of the instances and then replacing the configuration files of the other instances with the one that contains the required configuration.
This section explains how to use the CMS console to configure logs maintained by CMS, and how to monitor the server's activities by viewing log contents.
This section contains the following sub-sections:
- About Logs
![]()
- Configuring Logs in the CMS Console
![]()
- Monitoring Logs
![]()
- Signing Log Files
![]()
- Registering a Log Module
![]()
- Deleting a Log Module
![]()
CMS creates log files that record events related to its activities, such as administration, communications using any of the protocols the server supports, and various other processes employed by the subsystems the server manages. While CMS is running, it keeps a log of information and error messages on all the components it manages.
Log plug-in modules are listeners, which are implemented as Java classes and are registered in the CMS policy framework.
Each instance of Netscape Certificate Management System (CMS) maintains its own log files.
All the log files and rotated log files, except for audit logs (signed or not), are located in the following directory:
<server_root>/cert-<instance_id>/logsAudit logs, signed or not, are located in the following directory:
<server_root>/cert-<instance_id>/logs/signedAuditYou can change the default location for logs by modifying it in the configuration.
The error and access logs are created by Netscape Enterprise Server, which is installed with CMS providing HTTP services. The error log contains the HTTP error messages the server has encountered. The access log lists access activity through the HTTP interface. These logs are not available or configurable from within CMS; they are only configurable from within Enterprise Server. See the Netscape Enterprise Server documentation for information about configuring these logs.
The self-tests log records information obtained during the self-tests run when the server starts up, or when the self-tests are manually run (on demand). The tests can be viewed by opening this log. This log is not configurable through the CMS Console, you must configure it by changing settings in the
CMS.cfgfile. The information about logs in this section does not pertain to this log. See "Self Tests" for more information about self-tests.The following logs are created when the CMS instance is installed, the information about logs in this section does not pertain to these logs:
config_cgi.log. Created by
config_cgicgithat forwards configuration daemon client (Java UI) requests to the configuration daemon.daemon.err. Created by the
start_daemon cgi, captures the standard error of thestart_daemon cgidaemon.out. Created by the
start_daemon cgi, captures the standard output of thestart_daemon cgistart_daemon.log. Created by the
start_daemon cgithat starts the configuration daemon, logs errors of the daemon startupservice.log. created by ntservice.exe that registers CMS as a NT service (Windows specific file).
wizard.log. Created by the Installation wizard that installs and configures the subsystems. Logs errors during this installation and configuration.
This log records information about requests to the server (all HTTP and HTTPS requests) and the responses from the server. Information recorded in this log includes the IP address of the client machine that accessed the server, operations performed (for example, search, add, edit), and the result of the access (for example, the number of entries returned). This log is on by default.
This log records messages specific to the certificate servicemessages such as certificate requests, certificate renewal and revocation requests, and CRL publicationand enables you to detect any unauthorized access or activity. This log is on by default.
This log contains audit records for events that have been set up as recordable events. If the
logSigningattribute is set totrue, the audit log is signed with a log signing certificate belonging to the server. This certificate can be used by auditors to verify that the log has not been tampered with. See "Signed Audit Log".All major components and protocols (or services) of CMS log messages to log files. Table 8-1 lists services that are logged by default. If you want to view messages logged by a specific service, you can customize log settings accordingly. For details, see Monitoring Logs.
Log Levels (Message Categories)
For identification and filtering purposes, events logged by all CMS-supported services are classified into various categories. These are listed in Table 8-2. Each category represents messages that are of the same or a similar nature or that belong to a specific functional area.
In the CMS configuration, each message category corresponds to a specific log level. Log levels are represented by numbers (digits) 1 to 6, each digit indicating the level of logging to be performed by the serverthat is, how detailed the logging should be.
- A higher priority level (a larger digit) means less detail because only events of high priority are logged.
![]()
- A lower priority level (a smaller digit) means greater detail because more kinds of events are recorded in the log file.
![]()
Table 8-2 Classification of Log Entries or Messages
You can use log levels to filter log entries based on the severity of an event. By default, a level 3 (Failure) is set for all services.
The log level is additivethat is, specifying a value of 3 causes levels 4, 5, and 6 to be logged. Log data can be voluminous, especially at lower (more verbose) logging levels. Make sure that the host machine has sufficient disk space for all the log files. It is also important to define your logging level, log rotation, and server-backup policies appropriately so that all the log files are backed up and the host system doesn't get overloaded; otherwise, you may lose information.
Buffered Versus Unbuffered Logging
CMS supports buffered logging for all types of logs. You can choose to configure the server for either buffered or unbuffered logging.
If you configure for buffered logging, the server creates buffers for the corresponding logs, and it holds the messages in these buffers for as long as possible. The server flushes out the messages to the log files only when either of the following conditions occurs:
- The buffer gets fullthe buffer gets full when the buffer size is equal to or greater than the value specified by the
bufferSizeconfiguration parameter. The default value for this parameter is 512 KB.![]()
- The flush interval for the buffer is reachedthe flush interval is reached when the time interval since the last buffer flush is equal to or greater than the value specified by the
flushIntervalconfiguration parameter. The default value for this parameter is 5 seconds.![]()
- When current logs are read from CMS consolethe server retrieves the latest log when it is queried for current logs.
![]()
If you configure the server for unbuffered logging, the server flushes out messages as they are generated to the log files. Because the server performs an I/O operation (writing to the log file) each time a message is generated, configuring the server for unbuffered logging decreases performance.
Log files are rotated when either of the following occur:
- The size limit for the corresponding file is reachedthe size of the corresponding log file is equal to or greater than the value specified by the
maxFileSizeconfiguration parameter. The default value for this parameter is 100 KB.![]()
- The age limit for the corresponding file is reachedthe corresponding log file is equal to or older than the interval specified by the
rolloverIntervalconfiguration parameter. The default value for this parameter is 2592000 seconds (every hour).![]()
When a log file is rotated, the old file is named using the name of the file with an appended time stamp. The appended time stamp is an integer that indicates the date and time the corresponding active log file was rotated. The date and time have the forms YYYYMMDD (Year, Month, Day) and
HHmmSS(Hour, Minute, Second), in that order.Log files, especially the audit log file, contain critical information. So it is good practice to periodically archive rotated log files to some archive media. You can archive log files by copying the entire
logdirectory to your archive media.CMS does not provide any tool or utility for archiving log files. Use the tools or utilities that your operating system provides for archiving.
CMS does, however, provide a command-line utility, called
signtool, that allows you to sign log files before archiving them. This gives you a means of tamper detection. For details, see Signing Log Files.Note that signing log files is an alternative to the signed audit logs feature. Signed audit logs allows you to create audit logs that are automatically signed, whereas this process describes how to manually sign archived logs. See "Signed Audit Log" for details about signed audit logs.
By default, rotated log files are not deleted.
Configuring Logs in the CMS Console
This procedure describes how to configure system, transaction, and audit logs.
To configure logs for a CMS instance:
- Log in to the CMS console (see Logging Into the CMS Console).
![]()
- In the navigation tree, select Logs.
![]()
- On the right pane, the Log Event Listener Management tab appears. It lists the currently configured listeners.
- Either create a new log instance, delete an existing instance, or modify an existing instance:
![]()
- To create a new log instance:
- Click Add in the Log Event Listener Management tab.
![]()
- The Select Log Event Listener Plug-in Implementation window appears. It lists registered log modules.
- Select a plug-in module.
![]()
- Click Next.
![]()
- The Log Event Listener Editor window opens.
- Continue to step 4.
![]()
- To delete a log instance:
- Select a listener that you want to delete in the Log Event Listener list.
![]()
- Click Delete
![]()
- Skip to step 5.
![]()
- To modify an existing log instance:
- Select a listener that you want to modify in the Log Event Listener list.
![]()
- Click Edit/View.
![]()
- The Log Event Listener Editor window opens.
- Continue to step 4.
![]()
- Make changes to the following fields in the Log Event Listener Editor window:
![]()
- Log Event Listener ID. Type a unique name that will help you identify the listener; be sure to note the following:
- Use any combination of letters (
aAtozZ), digits (0 to 9), an underscore (_), and a hyphen (-);![]()
- Do not use other characters or spaces.
![]()
- type. Select
transactionto create a listener that records audit logs. For error and system logs, selectsystem.
- enabled. Select to enable; deselect to disable. Only enabled logs actually record events.
- level. From the drop-down list, select a log level. The choices are
Debug,Information,Warning,Failure,Misconfiguration,Catastrophe, andSecurity. The default selection isFailure. For more information, see Log Levels (Message Categories).
- fileName. Type the full path, including the filename, to the file to write messages. (Make sure that the server has read/write permission to the file.)
- bufferSize. Type the buffer size in kilobytes (KB) for the log. The default size is 512 KB. For more information, see Buffered Versus Unbuffered Logging. Once the buffer reaches this size, the contents of the buffer are flushed out and copied to the log file.
- flushInterval. Type the interval, in seconds, to flush the buffer to the file. The default interval is 5 seconds. The
flushIntervalis the amount of time before the contents of the buffer are flushed out and added to the log file.
- maxFileSize. Type the file size in kilobytes (KB) for the error log. The default size is 100 KB. The
maxFileSizedetermines how large a log file can become before it is rotated. Once it reaches this size, the file is copied to a rotated file, and the log file is started anew. For more information, see Log File Rotation.
- rolloverInterval. From the drop-down list, select the frequency at which the server should rotate the active error log file. The available choices are Hourly, Daily, Weekly, Monthly, and Yearly. The default selection is Monthly. For more information, see Log File Rotation.
- expirationTime. Type, in seconds, the age limit for deleting the rotated log files. The default value is 0 seconds, which indicates that the rotated log files should not be deleted. If you provide a value, the rotated log will be deleted from your system after that time has elapsed. This is no longer supported. Logs will not be deleted, you cannot set a time for the automatic deletion of logs.
- The signed audit log has these additional settings:
- logSigning. Set to true to enable signed logging; set to false to disable signed logging. When you enable this parameter, you must also provide a value for the
signedAuditCertNicknameparameter. When this feature is enabled, this log can only be viewed by an auditor. See "Signed Audit Log" for more information about signed audit logs.
- signedAuditCertNickname. The nickname of the certificate used to sign audit logs. The private key for this certificate must be accessible to the subsystem in order for it to sign the log.
- events. Specifies which events will be logged to the audit log. Lists each event separated by a comma with no spaces. You can remove events from the list. See Table 8-3 for a complete list of auditable logging events.
- Click OK.
![]()
- You are returned to the Log Event Listener Management tab.
- Click Refresh.
![]()
Configuring Logs in the CMS.cfg File
To modify the configuration settings for logs:
- Stop the CMS instance.
![]()
- Open the
CMS.cfgfile located in the directory<server_root>/cert-<instance>/config![]()
- To create a new log, you copy all of the entries for either the system or transactions log. These are the parameters that begin with log.instance.Transactions or
log.instance.System. Paste all entries at the bottom of the logging section and change the name of this instance by changing the word "Transactions" or "System" in each parameter to the new name.![]()
- To configure a log instance, modify the parameters associated with that log. These parameters begin with
log.instanceand include the following parameters:![]()
- bufferSize. Specify the buffer size in kilobytes (KB) for the log. The default size is 512 KB. For more information, see Buffered Versus Unbuffered Logging. Once the buffer reaches this size, the contents of the buffer are flushed out and copied to the log file.
- enable. Specify
trueto enable;falseto disable. Only enabled logs actually record events.
- expirationTime. Specify, in seconds, the age limit for deleting the rotated log files. The default value is 0 seconds, which indicates that the rotated log files should not be deleted. If you provide a value, the rotated log will be deleted from your system after that time has elapsed. This is no longer supported. Logs will not be deleted, you cannot set a time for the automatic deletion of logs.
- fileName. Specify the full path, including the filename, to the file to write messages. (Make sure that the server has read/write permission to the file.)
- flushInterval. Specify the interval, in seconds, to flush the buffer to the file. The default interval is 5 seconds. The
flushIntervalis the amount of time before the contents of the buffer are flushed out and added to the log file.
- level. Specify a log level. The choices are
0for Debug,1for Information,2for Warning,3for Failure,4for Misconfiguration,5for Catastrophe, and6for Security. The default selection is1. For more information, see Log Levels (Message Categories).
- maxFileSize. Specify the file size in kilobytes (KB) for the error log. The default size is 100 KB. The
maxFileSizedetermines how large a log file can become before it is rotated. Once it reaches this size, the file is copied to a rotated file, and the log file is started anew. For more information, see Log File Rotation.
- register. If this variable is set to
false(the default value), the self tests messages will only be logged to the log file specified byselftests.container.logger.fileName. If this variable is set totrue, then the self tests messages will be written to BOTH the log file specified byselftests.container.logger.fileNameas well as to the log file specified bylog.instance.Transactions.fileName.
- rolloverInterval. Specify the frequency at which the server should rotate the active error log file. The available choices are Hourly, Daily, Weekly, Monthly, and Yearly. The default selection is Monthly. For more information, see Log File Rotation.
- type. Set to
transactionorsystem.
- Save the file.
![]()
- Start the CMS instance.
![]()
When you have problems with CMS that require troubleshooting, you may find it helpful to check the error or informational messages that the server has logged. Also, by examining the log files you can monitor many aspects of the server's operation. You can view certain log files in the CMS console. You can also view log files by opening them in the file system. See "About Logs" for information on the location of logs and the log files available.
To view the contents of an active or rotated system log file:
- Log in to the CMS console (see Logging Into the CMS Console).
![]()
- Select the Status tab.
![]()
- In the navigation tree, under Logs, select the log you want to view.
![]()
- In the Display Options section, specify your viewing preferences:
![]()
- Entries. Type the maximum number of entries to be displayed. When this limit is reached, CMS returns any entries it has located that match the search request. If you enter zero (
0), no messages are returned. If you leave the field blank, the server returns every matching entry (no limit) regardless of the number found.
- Source. Select the CMS component (or service) for which log messages are to be displayed from the drop-down list.If you choose All, messages logged by all components that log to this file are displayed. For more information, see Services That Are Logged.
- Level. Select a message category that represents the log level for filtering messages. For more information on log levels, see Log Levels (Message Categories).
- Filename. Select the log file you want to view. Choose Current to view the currently active system log file.
- Click Refresh.
![]()
- The table displays the system log entries. The entries are in reverse chronological order, with the most current entry placed at the top. Use the scroll arrows on the right edge of the panel to scroll through the log entries.
- For each entry you see the following details:
- Source. Indicates the CMS component or resource that logged the message.
- Level. Indicates the severity of the corresponding entry, see Table 8-2 on page 277 for more information.
- Date. Indicates the date on which the entry was logged.
- Time. Indicates the time at which the entry was logged.
- Details. Provides a brief description of the log.
- To view an entry in its entirety, either double-click it or select the entry and click View.
![]()
CMS allows you to digitally sign log files before you archive them or distribute them for audit purposes. This feature enables you to check whether the log files have been tampered with since being signed.
Note that this is an alternative to the signed audit logs feature. Signed audit logs allows you to create audit logs that are automatically signed, whereas this process describes how to manually sign archived logs. See "Signed Audit Log" for details about signed audit logs.
For signing log files, you use a command-line utility called Netscape Signing Tool (
signtool). For details about this utility, check this site:http://www.mozilla.org/projects/security/pki/nss/tools/The utility uses information in the certificate, key, and security module databases of CMS.
When you are ready with all this information, follow the procedure below to sign the log directories:
- Go to the CMS instance in which the CA whose key pair you want to use for signing is installed.
![]()
- Type the following command with the appropriate information:
![]()
signtool -d <secdb_dir> -k <cert_nickname> -Z <output> <input>
where:
You can create new log modules using the CMS SDK. If you do create a log module, you need to register it before it is available for use.
You can register new log plug-in modules using the CMS console. Registering a new module involves specifying the name of the module and the full name of the Java class that implements the log interface.
Before registering a plug-in module, be sure to put the Java class for the module in the
classesdirectory (the implementation must be on the class path).To register a log plug-in module with a CMS instance:
- Log in to the CMS console (see Logging Into the CMS Console).
![]()
- Select the Configuration tab.
![]()
- In the navigation tree, select Logs, and then in the right pane, select the Log Event Listener Plug-in Registration tab.
![]()
- Click Register.
![]()
- The Register Log Event Listener Plug-in Implementation window appears.
- Specify information as appropriate:
![]()
- Plugin name. Type a name for the plug-in module.
- Class name. Type the full name of the class for this modulethat is, the path to the implementing Java class. If this class is part of a package, be sure to include the package name. For example, if you are registering a class named
customLogand if this class is in a package namedcom.customplugins, typecom.customplugins.customLog.
- Click OK.
![]()
- You are returned to the Log Event Listener Plug-in Registration tab.
- To view the updated configuration, click Refresh.
![]()
You can delete unwanted log plug-in modules using the CMS console. Before deleting a module, be sure to delete all the listeners that are based on this module; see Log File Rotation.
- Log in to the CMS console (see Logging Into the CMS Console).
![]()
- Select the Configuration tab.
![]()
- In the navigation tree, select Logs, and then in the right pane, select the Log Event Listener Plug-in Registration tab.
![]()
- In the Plug-in Name list, select the module you want to delete and click Delete.
![]()
- When prompted, confirm the delete action.
![]()
The signed audit log is a feature that creates a log recording system events; the events that are recorded are selectable from a list of events. This feature, when enabled, records all system events and produces a verbose set of messages about this activity; be careful when using this feature to provide enough space in your file system for this log. The signed audit log feature is disabled by default.
You can also set this audit log up as a signed audit log. You enable this by setting the
logSigningparameter to enable and providing the nickname of the certificate that will be used to sign this log.When this log is setup as a signed audit log, only a user with auditor privileges can access and view the log. Auditors can use the
AuditVerifytool to verify that signed audit logs have not been tampered with.When you first set the server up, if you have not created a dedicated certificate for log signing, but you want to turn on the auditing feature anyway, you can use the singing certificate for that subsystem to sign the logs. To do this, specify
caSigningCert cert-<cms instance name>as the value in thesignedAuditCertNicknameparameter for a Certificate Manager, specify the appropriate signing certificate for other subsystems.You can also configure which events are recorded in the log by adding or deleting the event type form the value of the events parameter. Table 8-3 lists the events that are loggable events. To add an event, add the logging event to the list; to delete an event, remove it from the list. Log events are separated by commas with no spaces.
Table 8-3 Signed-Audit Log Events
- Set up the certificate profiles
caAuditCertandraAuditCert. See "Setting Up Certificate Profiles" for information about setting up certificate profiles. See Chapter 11 "Certificate Profiles" for general information about certificate profiles.![]()
- Approve the
caAuditCertandraAuditCertcertificate profiles by approving them in the agent services interface, thus enabling them.![]()
- If the request for this certificate is received in the end-entity interface of a Certificate Manager, enable the
caAuditCertprofile in that Certificate Manager.
- If the request for this certificate is received in the end-entity interface of a Registration Manager, enable the
raAuditCertprofile in that Registration Manager and enable theraAuditCertprofile in that Certified Manager that processes the requests of that Registration Manager.
- Use the Certificate Setup Wizard to obtain a certificate request for the private keys and certificates that will be used to sign the log files. When running the certificate wizard, specify that the request is of type Other, and request that the output be a certificate request in PKCS#10 format. See "Certificate Setup Wizard" for information about using the Certificate Setup Wizard to generate requests.
![]()
- Submit the PKCS#10 request generated in the previous step to the profile enrollment for auditor certificates in the end-entity interface of the Certificate Manager that will issue the certificate.
![]()
- Set up the signed audit logit is disabled by defaultby setting it up in Netscape Console. Follow the procedure in the section "Configuring Logs in the CMS Console". Specify the nickname of the log you received in the previous step as the value of the
signedAuditCertNicknameparameter and specify the events that will be logged in the events parameter.![]()
- Assign auditor users, if you have not done so, by creating the user and assigning them to the auditor group. Members of the auditor group are the only users who can view and verify the signed audit log. See "Setting up Administrators, Agents, and Auditors" for details about setting up auditors.
![]()
- Auditors can view signed audit logs by viewing them from the IT environment.
![]()
- Auditors can verify logs by using the
AuditVerifytool. See the CMS Command-Line Tools Guide for details about using this tool.![]()
There are events that could cause the audit logging function to fail. In other words, events cannot be written to the log. For example, when the file system containing the audit log file is full or when the file permissions for the log file is accidentally changed. If audit logging fails, CMS will shut down in the following manner:
- Servlets are disabled and will not processes new requests.
![]()
- All pending and new requests are killed.
![]()
- The CMS subsystem is shut down.
![]()
When this happens, CMS administrator(s) and CMS auditor(s) should work together with the Operating System administrator to resolve the disk space or file permission issue(s). When the IT problem is resolved,