You can install an SSL certificate on an Internet Information Services (IIS) server. This way, web services that run on the server is accessible over HTTPS. This topic describes how to install a certificate on an IIS server. In the example in this topic, a certificate is installed on an IIS 8 server that runs Windows Server 2012 R2.
Prerequisites
The certificate that you want to install is issued.Background information
The GUI that you use to import a certificate or bind a certificate to a website may vary based on the version of your IIS server or the version of the Windows operating system that the server runs. This topic provides an example on how to install a certificate on an IIS 8 server that runs Windows Server 2012 R2. If issues occur when you install a certificate, contact your account manager.Step 1: Download the certificate to the IIS server
- Connect to the server that runs Windows Server 2012 R2. If you use an ECS instance, you can use multiple methods to connect to the ECS instance. For more information about the methods, see Connection methods.
- Download the certificate to the server. Note You can download the certificate to a computer and upload the downloaded certificate to the server.
- If the certificate file that you extract is in the PEM format, convert the certificate file and your private key file that is generated when you manually create the CSR file to generate a PFX certificate. For more information about how to convert certificate formats, see Convert the format of a certificate.
Step 2: Import the certificate
- Connect to the server and press Win+R to open the Run dialog box.
- Enter mmc and click OK. The Microsoft Management Console (MMC) appears.
- Add a certificate snap-in to your computer.
- In the top menu bar of the MMC, choose
.
- In the Add or Remove Snap-ins dialog box, select Certificates from the Available snap-ins section and click Add.
- In the Certificates snap-in dialog box, select Computer account and click Next.
- In the Select Computer dialog box, select Local computer: (the computer this console is running on) and click Finish.
- In the Add or Remove Snap-ins dialog box, click OK.
- In the top menu bar of the MMC, choose
- In the left-side navigation pane of the MMC, choose Personal and choose .
. Then, right-click
- Complete the certificate import wizard by following the on-screen instructions.
Step 3: Bind the certificate to a website
- Open IIS Manager.
- In the Connections navigation pane, expand the server, click Sites, and then click the domain name that you want to use.
- In the Actions pane, click Bindings.
- In the Site Bindings dialog box, click Add.
- In the Add Site Binding dialog box, configure the parameters for the website and click OK.
Configure the following parameters:
- Type: Select https.
- IP address: Select the IP address of the server. Important If the certificate fails to be installed on the server because of the selected IP address, clear the IP address and try again.
- Port: Retain the default value 443. Note If you specify another port, such as 8443, the users who want to access the website must enter the port number and the domain name in the https://Domain name:Port number format in the address bar of a browser. For example, if you specify port 8443, the users must enter
https://domain_name:8443
in the address bar to access the website. If you use the default port 443, the users need to only enterhttps://domain_name
in the address bar of a browser to access the website. - Host name: Enter the domain name of the website.
- SSL certificate: Select the name of the certificate that you import.
If multiple certificates are imported, click Select. In the Select Certificate dialog box, search for the certificate that you want to bind by domain name.
After you configure the parameters, you can view the added binding of the https type in the Site Bindings dialog box. - In the Site Bindings dialog box, click Close.
Step 4: Verify that the certificate is installed on the IIS server
Open a browser on your computer. In the address bar, enter a domain name that is bound to the certificate to check whether the certificate is installed on the IIS server.
If you receive a response and the
icon appears at the start position of the address bar, an HTTPS connection is established, and the certificate is installed. 

