Prepare an IIS certificate for use with webApp.secure™
First, export the IIS certificate AND private key to a pfx file:
- Start the Internet Information Service
- Display the properties of the Web site.
- Click the Direct Security tab.
- Click View Certificate button.
The Certificate is displayed.
- Click the Details tab.
- Click the Copy to File... button.
The Certificate Export Wizard starts.
- Click the Next button.
The Export Private Key page appears.
- Select Yes, export the private key, and click the Next button.
The Export File Format page appears.
- Select Personal Information Exchange - PKCS #12 (PFX)
- Select Include all certificates in the certification path if possible
IMPORTANT: ensure all other check boxes are NOT CHECKED,
especially the one labeled "Delete the private key if the export is successful" -
if the private key is deleted from this server, SSL operations on this server will cease.
- Click the Next button.
Password page appears.
- Enter the password (if necessary).
- Click the Next button.
File to Export page appears.
- Enter the file name.
- Click the Next button.
Completing the Certificate Export Wizard page appears.
- Click the Finish button.
The certificate is exported to the file specified, and "The export was successful" message appears.
Next, run the following OpenSSL commands from a command-line to extract the private key and certificate file
from the pfx file created above (download openssl.exe here):
-
Extract the private key file from the pfx file:
C:\> openssl pkcs12 -in filename.pfx -nocerts -out key.pem
-
Extract the certificate file from the pfx file:
C:\> openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
-
Remove the passphrase from the private key:
C:\> openssl rsa -in key.pem -out server.key
Lastly, update the webApp.secure SSL configuration to reflect the full path and filenames of the
certificate and private key created in the previous step:
- Go to "Edit Properties" -> "SSL" tab
-
Enter the full path and file name of the certificate from step 2 above into the "Certificate File" field.
-
Enter the full path and file name of the private key from step 3 above into the "Certificate Key File" field.
-
Restart webApp.secure to load the new certificate and key files.