The first step in automating SSL certificate install is importing the certificate and recording the thumbprint.
Procedure
- Add the certificate snap-in to MMC by performing the steps below.
In order to add certificates to the Windows certificate store, you must first add the certificate snap-in to the Microsoft Management Console (MMC). Before you begin, verify that the MMC and certificate snap-in are available on the Windows guest operating system.
- On the desktop, click Start and type mmc.exe
- In the MMC window, select File > Add/Remove Snap-in.
- In the Add or Remove Snap-ins window, select Certificates and click Add.
- In the Certificates snap-in window, select Computer account, click Next, select local computer, and click Finish.
- In the Add or Remove snap-in window, click OK.
- Import a certificate for the HTML Access Agent into the Windows Certificate Store by performing the steps below.
To replace a default HTML Access Agent certificate with a CA-signed certificate, you must import the CA-signed certificate into the Windows local computer certificate store. Before you begin, verify that the HTML Access Agent is installed, the CA-signed certificate was copied to the desktop, and the certificate snap-in was added to MMC (see Step 1 above).
- In the MMC window, expand the Certificates (Local Computer) node and select the Personal folder.
- In the Actions pane, select More Actions > All Tasks > Import.
- In the Certificate Import wizard, click Next and browse to the location where the certificate is stored.
- Select the certificate file and click Open.
To display your certificate file type, you can select its file format from the File name drop-down menu.
- Type the password for the private key that is included in the certificate file.
- Select Mark this key as exportable.
- Select Include all extendable properties.
- Click Next and click Finish.
The new certificate appears in the Certificates (Local Computer) > Personal > Certificates folder.
- Verify that the new certificate contains a private key.
1. In the Certificates (Local Computer) > Personal > Certificates folder, double-click the new certificate.
2. In the General tab of the Certificate Information dialog box, verify that the following statement appears: 'You have a private key that corresponds to this certificate'.
- Import root and intermediate certificates for the HTML Access Agent.
If the root certificate and intermediate certificates in the certificate chain are not imported with the SSL certificate that you imported for the HTML Access Agent, you must import these certificates into the Windows local computer certificate store.
- In the MMC console, expand the Certificates (Local Computer) node and go to the Trusted Root Certification Authorities > Certificates folder.
- If your root certificate is in this folder, and there are no intermediate certificates in your certificate chain, skip this procedure.
- If your root certificate is not in this folder, proceed to step b.
- Right-click the Trusted Root Certification Authorities > Certificates folder and click All Tasks > Import.
- In the Certificate Import wizard, click Next and browse to the location where the root CA certificate is stored.
- Select the root CA certificate file and click Open.
- Click Next, click Next, and click Finish.
- If your server certificate was signed by an intermediate CA, import all intermediate certificates in the certificate chain into the Windows local computer certificate store.
1. Go to the Certificates (Local Computer) > Intermediate Certification Authorities > Certificates folder.
2. Repeat steps c through f for each intermediate certificate that must be imported.
- In the MMC console, expand the Certificates (Local Computer) node and go to the Trusted Root Certification Authorities > Certificates folder.
- In the certificate MMC window, navigate to the Certificates (Local Computer) > Personal > Certificates folder.
- Double-click the CA-signed certificate that you imported into the Windows certificate store.
- In the Certificates dialog box, click the Details tab, scroll down, and select the Thumbprint icon.
- Copy the selected thumbprint to a text file.
For example:
31 2a 32 50 1a 0b 34 b1 65 46 13 a8 0a 5e f7 43 6e a9 2c 3e
Note: When you copy the thumbprint, do not to include the leading space. If you inadvertently paste the leading space with the thumbprint into the registry key (in Step 7), the certificate might not be configured successfully. This problem can occur even though the leading space is not displayed in the registry value text box.