In-Place Upgrade of a Certification Authority from Windows Server 2012 SP2 or 2012 R2 to Windows Server 2016

At the latest with the end of product support by the manufacturer (Microsoft) , the question arises whether to bring the certification authority to an up-to-date operating system by migrating it to another server , or to perform an in-place upgrade. The latter process is described below.

Instead of an in-place upgrade, it is strongly recommended to migrate the certification authority to another server with a current operating system. See article "Migration of an Active Directory integrated certification authority (Enterprise Certification Authority) to another server ".

If a hardware security module (HSM) is used, it must be clarified with the manufacturer of the HSM whether its key storage provider (KSP) supports the new operating system before the in-place upgrade is performed. In addition to updating the key storage provider, it may also be necessary to update the firmware of the hardware security module.

Downgrading a Windows edition, e.g. from Windows Server Datacenter to Windows Server Standard, is not supported.

Preparatory work

Implementation of the upgrade

Do you know TameMyCerts? TameMyCerts is an add-on for the Microsoft certification authority (Active Directory Certificate Services). It extends the function of the certification authority and enables the application of rule sets to realize the secure automation of certificate issuance. TameMyCerts is unique in the Microsoft ecosystem, has already proven itself in countless companies around the world and is available under a free license. It can be downloaded via GitHub and used free of charge. Professional maintenance is also offered.

After the data medium for the new operating system has been inserted, the installation can be started.

Usually, server systems do not have an Internet connection anyway, so the option to download updates can be deselected here. However, please note that in this case the server will start up again without security updates. This will result in the remote desktop connection from a current client no longer working, since the update for the security vulnerability CVE-2018-0886 has not yet been installed.

Windows Server 2016 Setup, "Get important updates": "Download and install updates (recommended)" selected

In the next dialog the product key must be entered. Please note that the license key must match the Windows edition. If the old operating system was a Standard Edition, the new system must also be a Standard Edition.

Windows Server 2016 Setup, "Product key": empty "Enter Product key" field

Since certification authorities are usually installed with a graphical interface, the "Desktop Experience" option should be selected in the next dialog.

Windows Server 2016 Setup, "Select Image": "Windows Server 2016 Standard (Desktop Experience)" selected

In the next dialog the license conditions are accepted in order to continue.

Windows Server 2016 Setup, "Applicable notices and license terms" with the "Decline" and "Accept" buttons

In the next dialog, it is essential to select the "Keep personal files and apps" option so that the certification authority installation is retained. If only the option "Nothing" can be selected here, either the operating system language or the operating system edition does not match.

Windows Server 2016 Setup, "Choose what to keep": "Keep personal files and apps" selected

Windows Server 2016 explicitly states that in-place upgrades are not recommended. If you want to continue, you have to confirm this notice.

Windows Server 2016 Setup, "What needs your attention": notice "Windows Server upgrades are not recommended" with a "Confirm" button

The last dialog displays a summary of the selected options and then starts the installation.

Windows Server 2016 Setup, "Ready to install": Windows Server 2016 Standard (Desktop Experience), Keep personal files and apps

This is followed by the installation of the new operating system. The server will reboot several times before it can be used again with the new operating system.

Windows Server 2016 Setup, "Installing Windows Server 2016": 0% complete

Problem solving

No possibility to keep apps and files during upgrade

Downgrading the Windows editions is not supported. In this case, only the "Nothing" option is available in the "Choose what to keep" dialog. It must not be continued under any circumstances, otherwise a new installation of the operating system will take place and all existing data will be deleted.

Windows Server 2016 Setup, "Choose what to keep": "Keep personal files and apps" unavailable, "Nothing" selected

Certification authority service does not start after in-place upgrade

When you log on for the first time after the in-place upgrade, you will notice that the certification authority service has not started and cannot be started.

The service cannot be started, either because it is disabled or because it has not enabled devices associated with it. 
0x422 (WIN32: 1058 ERROR_SERVICE_DISABLED) 

Error dialog "Microsoft Active Directory Certificate Services": The service cannot be started ... 0x422 (WIN32: 1058 ERROR_SERVICE_DISABLED)

This is a known, albeit curious problem and can be solved by restarting the server once.

Remote desktop connection no longer possible after in-place upgrade

Most likely, remote desktop connection to the server will not be possible after the in-place upgrade. For the reason and solution see article "Remote desktop connection no longer possible after in-place upgrade of Windows Server operating system ".

Post-installation tasks

  • Activate Windows, if required. After the upgrade, the server may still need to be connected to a KMS server, or the operating system may need to be activated.
  • Install current Windows updates. The server starts without security updates, so they must be installed immediately.
  • If you have upgraded from a certification authority that was running on Windows Server 2008 R2 or older, you may want to adjust the serial number generation for issued certificates to the new standard. For more information, see the article "How is the serial number of a certificate formed? ".
  • Perform a functional test for the certification authority. See article "Perform functional test for a certification authority ".
  • Create current backup. See article "Create a backup of a certification authority ".

External sources