In order to complete certificate enrollment, the Web site for the CA must be configured to use HTTPS authentication.
This happens if your web server is not configured to use secure socket layer (SSL) for the CA Web Enrollment pages.
To resolve this issue, you must install an appropriate certificate on the web server hosting the CA Web Enrollment pages. Then, you must configure the Site Bindings for the web site to add the https port 443 binding.
The following example will assume that you have an Enterprise CA from which to issue certificates. Further, the assumption is that you have a Certification Authority Web Enrollment pages installed, either on that CA or on another computer in the domain. This example will walk through the steps necessary to do the following:
- Configure an appropriate certificate template for SSL certificates.
- Obtain a certificate for IIS using the certificate template
- Configure the HTTPS on the Default Web Site
- Connect to the HTTPS location for certificate enrollment
- Connect to the Enterprise CA with the appropriate credentials and open the Certification Authority console.
- Expand the certification authority so that you can see Certificate Templates.
- Right-click Certificate Templates and then click Manage. If you don’t see these options, then run the following command: certtmpl.msc to open the Certificate Templates console.
- In the details pane of the Certificate Templates console, right-click the Web Server template and then clickDuplicate Template. If you are prompted to select a template version, select 2003 and then click OK.
- In the General tab, under Template display name, type a name that you want to use for the template. For example, SSL Certificates.
- On the Security tab you must ensure the computer account has the ability to enroll for the template. To do so, click Add.
- In Select Users, Computers, Service Accounts, or Groups, type the name of the user or group that you want to use for enrollment. Click Check Names, and then click OK.
- Ensure that the user account or group that you want to use for enrollment is selected and then select theAllow checkbox that corresponds to the Enroll permission.
- Click Add.
- Click Object Types, select Computers, and then click OK.
- Enter the name of the computer hosting the CA Web Enrollment pages. Click Check Names, and then click OK.
- Ensure that the computer account hosting the CA Web Enrollment pages is selected and then select theAllow checkbox that corresponds to Enroll permission. Click OK.
- On the Subject Name tab select Build from this Active Directory information. Set the Subject name format toCommon name. Under Include this information in alternate subject name, select the DNS name checkbox and clear the User principal name (UPN) checkbox. (Observation: for the certificate to appear in th Certificate Web Enrollment, it will be necessary to click and choose Supply in the request, instead of Build from this Active Directory information)
- On Cryptography tab and ensure that the template is set to use a Minimum key size of 1024 bits or higher; 2048bits or higher is preferred. Click OK.
- Close the Certificate Templates console and return to the Certificate Authority console.
- In the console tree of the Certification Authority console, right-click Certificate Templates, click New, and then click Certificate Template to Issue.
- In the Enable Certificate Templates dialog box click the new certificate template that you just configured and then click OK.
- On the IIS server hosting the CA Web Enrollment pages, open an MMC console. To do so, you can open a command prompt, the run dialog box, or Windows PowerShell, type mmc and then press ENTER.
- In the new MMC console (Console1) click File, and then click Add/Remove Snap-in.
- From the list of Available snap-ins, select Certificates and then click Add.
- Select Computer account and then click Next.
- In Select Computer the Local computer is selected by default. Click Finish and then click OK.
- Expand Certificates (Local Computer) and then right-click Personal. Click All Tasks, and then click Request New Certificate.
- On the Certificate Enrollment wizard, click Next.
- On the Select Certificate Enrollment Policy page, ensure that Active Directory Enrollment Policy is selected and then click Next.
- On Certificate Enrollment, click Enroll. Click Finish.
- On the IIS server hosting the CA Web Enrollment pages, open the Internet Information Services (IIS) Manager.
- Expand the server and Sites nodes until you can see Default Web Site.
- Click Default Web Site.
- On the Actions pane, click Bindings.
- In Site Bindings, click Add.
- In Add Site Binding, set Type to https.
- Set SSL certificate to the certificate that you issued to the server. You can confirm you have the correct certificate by clicking View. The certificate’s purpose should be Ensures the identity of a remote computer. To further verify, you can click the Details tab of the certificate. Select Enhanced Key Usage and ensure that it reads Server Authentication (22.214.171.124.126.96.36.199.1). Click OK.
- On Add Site Binding, click OK. On Site Bindings, click Close.