A step by step guide to install and configure SSL certificates in IIS server
The following items describe the recommended hardware, software, network infrastructure, skills and knowledge, and service packs that you will need:
- Windows 2000 Server, Advanced Server, or Professional, with Internet Information Services (IIS) version 5.0 and Microsoft Certificate Server version 2.0 installed and configured.
- Windows Server 2003 Standard Edition, Windows Server 2003 Enterprise Edition, Windows Server 2003 Datacenter Edition, or Windows Server 2003 Web Edition-based computer with Internet Information Services (IIS) 6.0 and Certificate Services installed and configured.
If the computer that is hosting Certificate Server is not the same computer that has IIS, you need a valid network or Internet connection to the server that is hosting Certificate Server.
Create a certificate request
First, the Web server must make a certificate request. To do this, follow these steps:
- Start the Internet Service Manager (ISM), which loads the Internet Information Server snap-in for the Microsoft Management Console (MMC). To do this, clickÂ Start, point toPrograms, point toÂ Administrative Tools, and then clickÂ Internet Service Manager orÂ Internet Information Services (IIS) Manager.
- Double-click the server name so that you see all of the Web sites. In IIS 6.0, expandWeb Sites.
- Right-click the Web site on which you want to install the certificate, and then clickProperties.
- Click theÂ Directory Security tab, and then clickÂ Server Certificate underÂ Secure Communications to start the Web Server Certificate Wizard.
- In IIS 6.0, clickÂ Next. If you are running IIS 5.0, go to step 6.
- SelectÂ Create a new certificate and clickÂ Next.
- SelectÂ Prepare the request now, but send it later and clickÂ Next.
- Type a name for the certificate. You may want to match the certificate name to the name of the Web site. Now, select a bit length; the higher the bit length, the stronger the certificate encryption. SelectÂ Server Gated Cryptography if your users may be coming from countries with encryption restrictions.
- Type your organization name and the organizational unit (for example, MyWeb and Development Dept). ClickÂ Next.
- Type either the fully qualified domain name (FQDN) or the server name as the common name. If you are creating a certificate that will be used over the Internet, it is preferable to use a FQDN (for example, www.MyWeb.com). ClickÂ Next.
- Enter your location information, and then clickÂ Next.
- Type the path and file name to save the certificate information to, and clickÂ Next to continue.
Note If you type anything other than the default location and file name, be sure to note the name and location you choose, because you will have to access this file in later steps.
- Verify the information that you have typed, and then clickÂ Next to complete the process and create the certificate request.
Submit a certificate request
The certificate request that you just created needs to be submitted to a Certificate Authority (CA). This may be your own server with Certificate Server 2.0 installed on it or an online CA such as VeriSign. Contact the certificate provider of your choice and determine the best level of certificate for your needs. There are different methods of submitting your request. Contact the Certificate Authority of your choice to request and receive your certificate. You can create your own certificate with Certificate Server 2.0, but your clients must implicitly trust you as the Certificate Authority. The steps below assume that you are using Certificate Server 2.0 as the certificate provider.
Note The IIS Certificate Wizard will only recognize the Default Web Server template. When you select an Online Enterprise CA, the Authority will not be listed unless the CA is using the Default Web Server template.
- Open a browser and browse to http://YourWebServerName/CertSrv/.
- In IIS 5.0, selectÂ Request a Certificate and clickÂ Next. In IIS 6.0, clickÂ Request a certificate.
- In IIS 5.0, selectÂ Advanced Request and clickÂ Next. In IIS 6.0, clickÂ advanced certificate request.
- In IIS 5.0, selectÂ Submit a Certificate Request using a Base64 and clickÂ Next. In IIS 6.0, clickÂ Submit a certificate request by using a base-64-encoded CMC or PKCS #10 file, or submit a renewal request by using a base-64-encoded PKCS #7 file.
- In Microsoft Notepad, open the request document that you created in the “Create a certificate request” section. In IIS 6.0, you can also clickÂ Browse for a file to insert.
- Copy the contents of the document. The contents should resemble the following:
-----BEGIN NEW CERTIFICATE REQUEST----- MIICcjCCAhwCAQAwYjETMBEGA1UEAxMKcm9ic3NlcnZlcjELMAkGA1UECxMCTVMx CzAJBgNVBAoTAk1TMREwDwYDVQQHEwhCZWxsZXZ1ZTERMA8GA1UECBMIV2FzaGl0 b24xCzAJBgNVBAYTAlVTMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALYK4sYDNQ7h LmSfL0qpIvUfY7Ddw7fNCvDp3rM7z4QqoLhA2c8TkyamqWTBsV0WRHIidf/J6mU4 wN4wrUzJTLUCAwEAAaCCAVMwGgYKKwYBBAGCNw0CAzEMFgo1LjAuMjE5NS4yMDUG CisGAQQBgjcCAQ4xJzAlMA4GA1UdDwEB/wQEAwIE8DATBgNVHSUEDDAKBggrBgEF BQcDATCB/QYKKwYBBAGCNw0CAjGB7jCB6wIBAR5aAE0AaQBjAHIAbwBzAG8AZgB0 ACAAUgBTAEEAIABTAEMAaABhAG4AbgBlAGwAIABDAHIAeQBwAHQAbwBnAHIAYQBw AGgAaQBjACAAUAByAG8AdgBpAGQAZQByA4GJAGKa0jzBn8fkxScrWsdnU2eUJOMU K5Ms87Q+fjP1/pWN3PJnH7x8MBc5isFCjww6YnIjD8c3OfYfjkmWc048ZuGoH7Zo D6YNfv/SfAvQmr90eGmKOFFiTD+hl1hM08gu2oxFU7mCvfTQ/2IbXP7KYFGEqaJ6 wn0Z5yLOByPqblQZAAAAAAAAAAAwDQYJKoZIhvcNAQEFBQADQQCgRCWkaXlY2nVa tbn6p5miPwWfrbViYo0B62wkuH0f7J0nSGcxMnn/6Q/iLEIsgHqFhox5PWCzIV0J tXKPWrBL -----END NEW CERTIFICATE REQUEST-------
Note If you save the document with the default name and location, it is located at C:\Certreq.txt.
Note Be sure to copy all of the content just as shown.
- Paste the contents of the document into the Web form’sÂ Base64 Encoded Certificate Request text box.
- UnderÂ Certificate Template, selectÂ Web Server orÂ User, and then clickÂ Submit.
- IfÂ Certificate Server is set toÂ Always Issue the Certificate, you can access the certificate immediately. To do this, follow these steps:
- ClickÂ Download CA Certificate (do not clickÂ Download CA Certificate pathorÂ Download certificate chain).
- When you are prompted, selectÂ Save this file to disk and save the certificate to your desktop or another location that you will remember. You may now go directly to the “Install the certificate and set up an SSL Web site” section.
Issue and download a certificate
To issue a certificate in Certificate Server, follow these steps:
- Open the CA MMC snap-in. To do this, clickÂ Start, point toÂ Programs, point toAdministrative Tools, and then clickÂ Certificate Authority.
- In IIS 5.0, expandÂ Certificate Authority and click theÂ Pending Requests folder. Your pending certificate requests appear in the right pane. In IIS 6.0, expand the server name.
- Right-click the pending certificate request that you just submitted, selectÂ All Tasks, and then clickÂ Issue.
Note After you selectÂ Issue, the certificate is no longer displayed in this window and folder. It now resides in the Issued Certificate folder.
- After you have issued (and authorized) the certificate, you can return to the Certificate Servers Web interface to select and download the certificate. To do this, follow these steps:
- Browse to http://YourWebServerName/CertSrv/.
- On the default page, selectÂ Check on a pending certificate and clickÂ Next. In IIS 6.0, clickÂ View the status of a pending certificate request.
- Select your pending certificate, then clickÂ Next to go to the download page.
- On the download page, clickÂ Download CA Certificate (do not clickÂ Download CA Certificate path orÂ Download certificate chain).
- When you are prompted, selectÂ Save this file to disk and save the certificate to your desktop or another location that you will remember.
Install the certificate and set up an SSL Web site
To install the certificate, follow these steps:
- Open the Internet Services Manager and expand the server name so that you can view the Web sites.
- Right-click the Web site for which you created the certificate request and clickProperties.
- Click theÂ Directory Security tab. UnderÂ Secure Communications, clickÂ Server Certificate. This starts the Certificate Installation Wizard. ClickÂ Next to continue.
- SelectÂ Process the pending request and install the certificate and clickÂ Next.
- Type the location of the certificate that you downloaded in the “Issue and download a certificate” section, then clickÂ Next. The Wizard displays the Certificate Summary. Verify that the information is correct, then clickÂ Next to continue.
- ClickÂ Finish to complete the process.
Configure and test the certificate
To configure and test the certificate, follow these steps:
- On theÂ Directory Security tab, underÂ Secure Communications, note that there are now three available options. To set the Web site to require secure connections, clickEdit. TheÂ Secure Communications dialog box appears.
- SelectÂ Require Secure Channel (SSL) and clickÂ OK.
- ClickÂ Apply and thenÂ OK to close the property sheet.
- Browse to the site and verify that it works. To do this, follow these steps:
- Access the site through HTTP by typingÂ http://localhost/Postinfo.htmlÂ in the browser. You receive an error message that resembles the following:HTTP 403.4 – Forbidden: SSL required.
- Try to browse to the same Web page using a secured connection (HTTPS) by typingÂ https://localhost/postinfo.htmlÂ in the browser. You may receive a security alert that states that the certificate is not from a trusted root CA. ClickYes to continue to the Web page. If the page appears, you have successfully installed your certificate.