Active Directory Certificate Services (AD CS): Error: "In order to complete certificate enrollment, the Web site for the CA must be configured to use HTTPS authentication"
After you install Certification Authority Web Enrollment pages, clients may see a warning message indicating that HTTPS must be used.
Error
In order to complete certificate enrollment, the Web site for the CA must be configured to use HTTPS authentication.
Cause
This happens if your web server is not configured to use secure socket layer (SSL) for the CA Web Enrollment pages.
Resolution
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.
Implementing SSL on a Web site in the domain with an Enterprise CA
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
Note
- If you have the CA Web Enrollment pages installed on a different computer, you will also need to trust that computer for delegation.
- To create or duplicate existing certificate templates, users only need the Create Child permission for the CN= Certificate Templates,CN=Public Key Services,CN=Services,CN=Configuration,DC=ForestRoot and CN=OID, CN=Public Key Services,CN=Services,CN=Configuration,DC= ForestRoot containers.
- You can review other permission settings at Implement Role-Based Administration
Configure an appropriate certificate template for SSL certificates
- 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 click Duplicate 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 the Allow 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 the Allow 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 to Common 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; 2048 bits 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.
Obtain a certificate for IIS using the certificate template
- 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.
Configure HTTPS on the Default Web Site
- 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 (1.3.6.1.5.5.7.3.1). Click OK.
- On Add Site Binding, click OK. On Site Bindings, click Close.
Connect to the HTTPS location for certificate web enrollment
Instead of using the former http://servername/certsrv location, you must connect to https://servername/certsrv to request a certificate.
Additional Resources
See the following resources for more information on using CA Web Enrollment pages and HTTPS on Internet Information Server
- How to Set Up SSL on IIS7
- How to implement SSL in IIS (KB 299875)
Note
To comment on this content or ask questions about the information presented here, please use our Feedback guidance.