This article describes how to uninstall and then reinstall the Certificate Authority (CA) role in Windows Server 2012 Essentials.
Original KB number: 2795825
Uninstall the CA server role
-
In Server Manager, click Manage, and then click Remove Roles and Features.
-
On the Before You Begin page, click Next.
-
On the Select destination server page, select the server in the server pool, and then click Next.
-
On the Remove server roles page, expand Active Directory Certificate Services, clear the Certification Authority Web Enrollment check box, and then click Next.
-
On the Remove features page, click Next.
-
On the Confirm removal selections page, verify the information, and then click Remove.
-
Click Close after the removal is complete.
-
Repeat steps 1 through 3.
-
On the Remove server roles page, click to clear the Active Directory Certificate Services check box.
[!NOTE] When you are prompted to remove Remote Server Administration Tools, click Remove Features, and then click Next.
-
On the Remove features page, click Next.
-
On the Confirm removal selections page, verify the information, and then click Remove.
-
After the removal is complete, click Close, and then restart the server.
Reinstall the CA server role
-
In Server Manager, click Manage, and then click Add Roles and Features.
-
On the Before you begin page, click Next.
-
On the Select installation type page, click Role-based or feature-based installation, and then click Next.
-
On the Select destination server page, select the server in the server pool, and then click Next.
-
On the Select server roles page, click the Active Directory Certificate Services role.
-
When you are prompted to install Remote Server Administration Tools, click Add Features, and then click Next.
-
On the Select features page, click Next.
-
On the Active Directory Certificate Services page, click Next.
-
On the Select role services page, select Certification Authority and Certification Authority Web Enrollment, and then click Next.
-
On the Confirm installation selections page, verify the information, and then click Install.
-
Wait for the installation to finish. After the installation is complete, click the Configure Active Directory Certificate Services on the destination server link.
-
On the Credentials page, click Next.
[!NOTE] You can change the credentials if it is necessary.
-
On the Role Services page, select Certification Authority and Certification Authority Web Enrollment, and then click Next.
-
On the Setup Type page, click Enterprise CA, and then click Next.
-
On the CA Type page, click Root CA, and then click Next.
-
On the Private Key page, click Use existing private key, click Select a certificate and use its associated private key, and then click Next.
-
On the Existing Certificate page, select the <Server_Name>-CA certificate, and then click Next.
[!NOTE] <Server_Name> is the name of the destination server.
-
On the CA Database page, accept the default locations, and then click Next.
-
On the Confirmation page, confirm your selections, and then click Configure.
-
When configuration is complete, click Close.
Verify the installation
- In Server Manager, click Tools, and then click Certification Authority.
- Right-click the name of the CA, and then click Properties.
- In the Properties dialog box, click the Extensions tab.
- In the list that is displayed, click
http://<ServerDNSName>/CertEnroll/<CaName><CRLNameSuffix><DeltaCRLAllowed>.crl. - Make sure that the following options are selected:
- Include in CRLs. Clients use this to find Delta CRL locations.
- Include in the CDP extension of issued certificates.
- Click OK to save your changes.
- When you are prompted to restart Active Directory Certificate Services, click Yes.
- Close the Certification Authority console.
Add a certificate template to the CA
- In Server Manager, click Tools, and then click Certification Authority.
- Double-click the name of the CA to expand the item.
- Right-Click Certificate Templates, click New, and then click Certificate Template to Issue.
- In the list, click Windows Server Solutions Computer Certificate Template, and then click OK.
- Close the Certification Authority console.
Add the server and clients to the Dashboard
- Open a Command Prompt window as an administrator.
- Type cd "\Program Files\Windows Server\Bin", and press the Enter key.
- Type WssPowerShell.exe, and then press the Enter key.
- Type Add-WssLocalMachineCert, and then press the Enter key.
- Reboot the server.
- Re-run the connector installation on all client computers.
Bind the certificate to the Internet Information Services (IIS) websites
- Open IIS Manager.
- Choose all the websites that use the old machine certificates, and then replace them by using the new certificates.
Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
