Technical Notes |
|
This technical note provides instructions on how to request a signed certificate from a Certificate Authority (CA) and how to install the certificate after it is received.
Note: This technical note should be used only if you are using Jakarta Tomcat as your web server for Reflection for the Web. (If you accept the defaults in a Reflection for the Web automated installation, Jakarta Tomcat is installed as your web server.) If you have integrated Tomcat into IIS, or if you are using a different web server, these steps do not apply. Instead, follow the documentation that is provided with your web server on how to import a CA signed certificate.
You will need a server certificate (also known as a web server certificate, a site certificate, or an SSL certificate) for the server on which Tomcat is installed. This enables clients to communicate with the Tomcat web server using HTTPS. If you are not using HTTPS, you do not need this certificate. If your organization already has a server certificate for the server on which Tomcat resides, or if you have an internal CA, you can bypass the process of registering with a Certificate Authority, and you may skip to the section on "Importing the Key Pair."
Note: For information about using an OpenSSL certificate with Reflection for the Web, see Technical Note 1864.
Depending on the CA, the registration process can take a few weeks. The following are selected links to the web sites of well-known CAs. (You are not limited to using the CAs listed on this page, but you should select one that is included in your browser's list of CAs.)
Note: Entrust is not included in some Apple Macintosh's trusted certificate store.
Use one of two methods to obtain a certificate signed by a CA:
Use the utility provided in the Administrative WebStation to generate the Certificate Signing Request (CSR). This process generates a key pair. Follow these steps to generate a CSR:
C:\Program Files\ReflectionServer\ReflectionData\certificatesThis returns you to the Certificates tab. Notice that there is now a link for "View and process pending certificate signing requests." If you choose, you can click this link to see the file name in which the CSR is stored. (This is the *.txt file you named while completing the form in Step 2.)
To send this information to the CA, locate the *.txt file in which the CSR is stored, open it in Notepad, and copy the entire contents of it, including the beginning and end lines, into the form that the CA supplies. In some cases, the CA may ask you to forward the file, instead.
The CA will send you a signed certificate, usually in the form of a *.cer or *.der file. Place the file in the folder used by Reflection for the Web to process certificate files. In a default Windows installation, the location is
C:\Program Files\ReflectionServer\ReflectionData\certificatesReflection for the Web can work with files in the Base64 and DER formats.
Implementing the signed certificate is a two-phase process. First, you must process the signed certificate on the Administrative WebStation (AWS) Certificates tab. This process creates a keystore (*.pfx) file that contains both the certificate you received from the CA and the private key that you generated when you created the CSR. Then, you must use the Certificate Wizard to import the certificate to Tomcat.
Note: In Reflection for the Web, the Certificate Wizard requires that Java 1.4.x or higher be installed. If you installed Reflection for the Web using the Windows automated installer, the correct Java version is automatically installed. If you installed Reflection for the Web manually, you must install the Java version required for your version of Reflection. Technical Note 1699 outlines the steps for installing the Java SDK.
Follow these steps to process the certificate for Tomcat on the AWS Certificates tab:
On this page, you can view the list of pending requests. Reflection for the Web automatically matches up the certificate with the correct request.
C:\Program Files\ReflectionServer\ReflectionData\certificatesFollow these steps to import the key pair for Tomcat using the Certificate Wizard:
In Windows, click Start > Programs > Attachmate (or WRQ) Reflection for the Web > Utilities > Certificate Wizard.
In UNIX, follow the steps below.
Note: This command must be run from the console or from a graphical user interface, such as Reflection X.
java -cp /usr/local/ReflectionServer/utilities/KeyToolsPro_jce1-2-1_1of2_signed.jar:/usr/local/ReflectionServer/utilities/CertWizard.jar runNote: On some systems, you may need to remove "run" from the command.
Note: Before you get the screen described above, you will be prompted to manually stop the Tomcat servlet runner. (To do this, you must stop Reflection Server from Windows Services.)
The Tomcat self-signed certificate has now been replaced with a certificate signed by a Certificate Authority.
If you choose to use the second method for obtaining a certificate, you must contact the CA to generate the key pair. Please note that this method is not as secure as when you generate the CSR because the CA has to send you the private key.
The CA will send you a key pair (private key and signed certificate). Place the file in the folder used by Reflection for the Web to process certificate files. In a default Windows installation, the location is
C:\Program Files\ReflectionServer\ReflectionData\certificatesFollow the steps below to import the key pair (certificate and private key) generated by the CA.
The Tomcat self-signed certificate has now been replaced with a certificate signed by a Certificate Authority.
To test that the new certificate is being used, follow these steps:
This section describes some common mistakes you may encounter when implementing a signed certificate.
A common mistake is to send a CSR to the CA, get a file back in response, and then try to import that file as a key pair.
If this happens in the Certificate Wizard (for importing the Tomcat Certificate), you get this error message:
An error occurred while importing the certificate:Failed to open the keystore C:\Program Files\ReflectionServer\ReflectionDate\Certificates\<filename>When using the CSR method to obtain a certificate, you must process the signed certificate in the Administrative WebStation. This step matches the private key that Reflection for the Web stored with the certificate that came back from the CA. If you forget this step, then your attempt to import the key pair will fail, because the *.cer (or *.der) file you are attempting to import does not contain a key pair. It is lacking the private key.
To avoid this error, make sure you follow all the steps described in the You Generate the Key Pair section.
Another common mistake is to get the wrong kind of certificate from the CA. For example, if you get a Code Signing Certificate, and then try to install it as a Server Certificate, it won't work. Code signing certificate files sometimes have a *.spc extension.
Sometimes when you order a certificate from a CA, they will send you a number of files with different types of certificates in them. You may have to sort through the files to find the right one. Typically, the CA will enclose documentation explaining what has been sent to you. A *.cer or *.der file usually contains a server certificate.