Installing a Private Certificate on an IIS Server
This topic describes how to install a private certificate on an IIS server.
The installation procedure in this topic is for your reference only as the commands executed and configuration file modified during the installation may vary depending on OS types and server configurations.
Prerequisites
- The certificate has been issued.
- You have downloaded the private certificate in the format that is supported by IIS. For details, see Downloading a Certificate.
- You have used a system-generated CSR to apply for the certificate.
Constraints
- Before installing the certificate, enable port 443 on the server where the private certificate is installed and add port 443 to the security group. Otherwise, HTTPS cannot be enabled after the installation.
- A root CA must be added to the trusted client CA list so that all server certificates issued by the root CA can be trusted by the client. For details, see Trusting a Private Root CA.
- If a domain name maps to multiple servers, deploy the certificate on each server.
- A private certificate can only be installed on the server that maps to the domain name associated with the certificate. Otherwise, the web browser will display a message indicating that the domain name is insecure.
Procedure
To install a private certificate on an IIS server, perform the following steps:
Step 1: Obtaining Files → Step 2: Configuring IIS → Step 3: Verifying the Result
Step 1: Obtaining Files
Decompress the downloaded certificate file on your local PC.
You will obtain certificate file server.pfx and password file keystorePass.txt.
Step 2: Configuring IIS
- Install IIS as instructed by IIS guides.
- Open the IIS management console, double-click Server Certificates.
Figure 1 Double-clicking Server Certificates
- In the displayed dialog box, click Import.
Figure 2 Import
- Import the server.pfx certificate file. Then click OK.
In the Password box, enter the password provided in the keystorePass.txt file.
Figure 3 Importing a PFX certificate file
- Right-click the target site (the default site is used as an example). Choose Edit Bindings from the shortcut menu.
Figure 4 Choosing Edit Bindings
- In the dialog box that is displayed, click Add. Then enter the following information.
Figure 5 Binding a website
- Type: Select https.
- Port: Retain the default port 443.
- SSL certificate: Select the certificate imported in 4.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.