Export or back up an SSL certificate for Web Security Apps.
When you export or back up an SSL certificate, the system copies the private key into an encrypted file. The private key was created on the server when the Certificate Signing Request (CSR) was generated.
- Open the Microsoft Management Console: Click Start > Programs > Windows NT 4.0 Option Pack > Microsoft Internet Information Server > Internet Service Manager.
- Right-click the website containing the certificate and click Properties.
- Click the Directory Security tab.
- In the Secure Communications section, click Edit.
- Click Key Manager.
- Select the key to export.
- On the menu bar, click Key > Export Key > Backup File.
- A message warns you about placing sensitive information in a file on your hard drive. Click OK.
- Specify the name of the file that will hold the exported key. Click Save.
- Create a Microsoft Management Console (MMC) Snap-in for managing certificates.
- Open the Certificates (Local Computer) snap-in you added, and click Personal > Certificates.
- Right-click on the desired certificate and click All Tasks > Export. The Certificate Export Wizard opens.
- Select Yes, export the private key.
- Click Next.
- In the Export File Format window, ensure the option for Personal Information Exchange – PKCS#12 (.pfx) is selected.
- Select Include all certificates in the certificate path if possible. If you do not this option, your server may not recognize the issuer of the certificate, which may result in security warnings for your clients.
- De-select Require Strong Encryption.
This may cause a password prompt every time an application attempts to access the private key or it may cause IIS to fail.
- Click Next.
- Enter and confirm a password to protect the PFX file and click Next.
- Choose a file name and location for the export file.
Do not include an extension in your file name; the wizard automatically adds the PFX extension for you.
- Click Next.
- Read the summary and verify that the information is correct. Take note where you saved the file and ensure that the information is correct.
- Click Finish.
- Locate the private key and certificate files. The following directives in the httpd.conf point to the location of the key and certificate files:
SSLCertificateFile … /path/to/mycertfile.crt
SSLCACertificateFile … /path/to/intermediate.crt
SSLCertificateKeyFile … /path/to/mykeyfile.keyDepending on the version of Apache, the directive may be SSLCACertificateFile or SSLCertificateChainFile and the configuration file may be httpd.conf or ssl.conf file.
- Copy the .key file, both .crt files (one is the server certificate and the other is the intermediate CA certificate), and the httpd.conf file onto a CD.
.key – private key
.crt – server certificate
.crt – intermediate CA certificate
httpd.conf – Web server configuration file
- Locate the alias directory within the iPlanet directory.
- Locate the files: https < server_name > cert7.db and https key3.db.
- Copy the files to a CD.
- Type "ikeyman" on a command line on UNIX or start the Key Management utility in the IBM Websphere Server folder.
- On the main menu, click Key Database File > Open.
- In the Open dialog box, type your key database name or click the key.kdb file if you are using the default. Click OK.
- In the Password Prompt dialog box, type your password and click OK.
- Select Personal Certificates in the Key Database content frame and then click the Export/Import button on the label.
- In the Export/Import Key window, select Export Key.
- Select the key database file type.
- Type the file name or browse and select the location and file name, and then click OK.
- In the Password Prompt dialog box, type the password, and then click OK.
- In the Select from Key Label list, select the correct label name and click OK.
- Navigate to the SSL Directory where the SSL Keystore is kept. This can be a hidden directory; for example: /root/.keystore
- Make a copy of the keystore file in this directory. The keystore file contains your private and public keys.