CERTIFICATE INSTALLATION FOR MICROSOFT FOREFRONT THREAT MANAGEMENT GATEWAY (TMG)

Intro: This guide can be used to install a certificate on Forefront Threat Management Gateway (TMG)

Please make sure you have completed the following before attempting to install your certificate:

STEP 1 – CREATE CSR
STEP 2 – INSTALL SSL AND INTERMEDIATE 

Please follow these instructions to install your SSL certificate for Microsoft TMG.

STEP 3 – EXPORT THE CERTIFICATE

In order to import your certificate to a Forefront Threat Management Gateway (TMG) server, the certificate and private key must first be exported from the server where it was first installed.

The certificate and private key must then be imported to the Forefront Threat Management Gateway (TMG) server into the personal certificate store.

The certificate and private key can be backed up by exporting the certificate to a PFX file, as described in the steps below:

  1. Click Start, and then click Run.
  2. Type in mmc and click OK.
  3. From the File menu, choose Add/Remove Snap-in.
  4. In the new window that appears, click Add.
  5. Select Certificates and then click Add.
  6. Choose the Computer account option and click Next.
  7. Select Local Computer and then click Finish.
  8. Click Close, and then click OK. You should see the snap-in for Certificates (Local Computer) in the console.
  9. Expand the Certificates (Local Computer) tree in the left preview panel.
  10. Expand the Personal folder in the left preview panel and click on the Certificates folder.
  11. Right-click on the certificate you wish to backup. Select All Tasks > Export.
  12. The Certificate Import Wizard appears. Click Next.
  13. Select Yes, export the private key and click Next.
  14. Select Personal Information Exchange as the format you want to use. Check the box to Include all certificates in the certification pathDo not check the box to Delete the private key. Click Next.
  15. Enter a password for the private key and confirm. Remember this password as you will need it to import the certificate. Click Next.
  16. Supply a file name to save your PFX file and click Next.
  17. Click Finish to complete the Certificate Export Wizard.
  18. You should see a dialog box indicating the export was successful. Click OK.

STEP 4 – IMPORT THE CERTIFICATE 
A certificate and private key saved in PKCS #12 (.PFX) format can be imported to a Microsoft web server by following the steps below:

  1. Click Start, and then click Run.
  2. Type in mmc and click OK.
  3. From the File menu, choose Add/Remove Snap-in.
  4. In the new window that appears, click Add.
  5. Select Certificates and then click Add.
  6. Choose the Computer account option and click Next.
  7. Select Local Computer and then click Finish.
  8. Click Close, and then click OK. You should see the snap-in for Certificates (Local Computer) in the console.
  9. Expand the Certificates (Local Computer) tree in the left preview panel.
  1. Expand the Personal folder in the left preview panel and click on the Certificates folder.
  2. Right-click the Personal folder and select All Tasks > Import.
  3. The Certificate Import Wizard appears. Click Next.
  4. Browse to the location of your PFX file and click Next.
  5. Enter the password for the private key. Select Mark this key as exportable and click Next.
  6. Select Automatically select the certificate store based on the type of certificate and click Next.
  7. Click Finish to complete the Certificate Import Wizard.
  1. You should see a dialog box indicating the import was successful. Click OK.

 

STEP 5 – ENABLE CERTIFICATE ON YOUR FOREFRONT TMG SERVER

 

  1. Select ‘Firewall Policy’.

 

2. On the right hand side, Select the ‘Toolbox’ tab then expand the ‘Web Listener’ folder. Right click on the Web Listener you wish to bind the certificate to and select Properties.

3. Select ‘Certificates’ tab, Select ‘Select Certificates’.

4. Select the certificate from the list, once selected verify at the bottom under ‘Certificate Installation Details’ that there is no issues with the certificate and then click on ‘Select’.

The certificate is now correctly installed in Microsoft Forefront TMG.

 

5. The TMG Server might have to be restarted for changes to be updated.

 

Last updated: January 3, 2018