You can use the certutil program to install the root CA certificate on Apache HTTP Server.
Change directories to the location of the Apache HTTP Server configuration file.
The following example is applicable for changing directories using the C shell when the Apache HTTP Server configuration file is in the default location of /etc/apache/:
# /etc/apache/ |
Change to the cert directory.
Set the proper environment by issuing the following command:
# setenv LD_LIBRARY_PATH PolicyAgent-base/SUNWam/agents/apache/lib:PolicyAgent-base/SUNWam/ agents/lib:/usr/lib/mps |
(Conditional) If you have not already created the necessary certificate database, create that database now by issuing the following command:
# PolicyAgent-base/SUNWam/agents/apache/cert/certutil -N -d . |
Install root CA certificate by issuing the following command:
# PolicyAgent-base/SUNWam/agents/apache/cert/certutil -A -n cert-name -t "C,C,C" -d cert-dir -i cert-file |
The name for this root CA certificate
The directory where the certificate and key stores are located
The base-64 encoded root CA certificate file.
For more information on the cetrutil utility enter cetrutil -H for Help.
To verify that the certificate is properly installed, in the command line, issue the following command:
# PolicyAgent-base/SUNWam/agents/apache/cert/certutil -L -d .
The root CA certificate is then listed in the output of the certutil -L command as illustrated in the following code example:
Certificate Name Trust Attrubutes cert-name C,C,C p Valid peer P Trusted peer (implies c) c Valid CA T Trusted CA to issue client certs (implies c) C Trusted CA to certs(only server certs for ssl) (implies c) u User cert w Send warning |
Restart Apache HTTP Server.