Active DirectoryMicrosoft TechnologiesWindows Server

STEP-BY-STEP GUIDE TO MIGRATE ACTIVE DIRECTORY CERTIFICATE SERVICE FROM WINDOWS SERVER 2003 TO WINDOWS SERVER 2012 R2

Microsoft has already announced that windows server 2003 / windows server 2003 R2 versions support is coming to end in 14th July 2015 (http://support2.microsoft.com/lifecycle/search/default.aspx?sort=PN&alpha=Microsoft+Windows+Server+2003&Filter=FilterNO). It’s no wonder that some organizations still uses windows server 2003 versions in production environment.

If you still not plan for migration from legacy windows server versions, well time has come!!

This guide will explain how we can migrate AD CS from windows server 2003 to windows server 2012 R2.

In this demonstration I am using following setup.

Server Name

Operating System

Server Roles

canitpro-casrv.canitpro.local

Windows Server 2003 R2 Enterprise x86

AD CS ( Enterprise Certificate Authority )

CANITPRO-DC2K12.canitpro.local

Windows Server 2012 R2 x64

Backup windows server 2003 certificate authority database and its configuration

•    Log in to Windows 2003 Server as member of local administrator group
•    Go to Start > Administrative Tools > Certificate Authority

adcs1

•    Right Click on Server Node > All Tasks > Backup CA

adcs2

•    Then it will open the “Certification Authority Backup Wizard” and click “Next” to continue

adcs3

•    In next window click on check boxes to select options as highlighted and click on “Brows” to provide the backup file path location where it will save the backup file. Then click on “Next” to continue

adcs4

•    Then it will ask to provide a password to protect private key and CA certificate file. Once provided the password click on next to continue

adcs5

•    In next window it will provide the confirmation and click on “Finish” to complete the process

Backup CA Registry Settings

•    Click Start > Run and then type regedit and click “Ok”

adcs6

•    Then expand the key in following path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CertSvc

•    Right click on “Configuration” key and click on “Export”

adcs7

•    In next window select the path you need to save the backup file and provide a name for it. Then click on save to complete the backup

adcs8

Now we have the backup of the CA and move these files to the new windows 2012 R2 server.

adcs9

 

Uninstall CA Service from windows server 2003

Now we have the backup files ready and before configure certificate services in new windows server 2012 r2, we can uninstall the CA services from windows 2003 server. To do that need to follow following steps.

•    Click on Start > Control Panel > Add or Remove Programs

adcs10

•    Then click on “Add/Remove Windows Components” button

adcs11

•    In next window remove the tick in “Certificate Services” and click on next to continue

adcs12

•    Once its completed the process it will give the confirmation and click on “Finish”

adcs13

With it we done with windows server 2003 CA services and next step to get the windows server 2012 CA services install and configure.

Install windows server 2012 R2 Certificate Services

•    Log in to windows server 2012 as Domain Administrator or member of local administrator group

•    Go to Server Manager > Add roles and features

adcs14

•    It will open up “Add roles and feature” wizard and click on next to continue

adcs15

•    Then next window select “Role-based or Feature-based installation” and click next to continue

adcs16

•    From the server selections keep the default selection and click on next to continue

adcs17

•    In next window click on tick box to select “Active Directory Certificate Services” and it will pop up with window to acknowledge about  required features need to be added. Click on add features to add them

adcs18

adcs19

•    Then in features section will let it run with default. Click next to continue

adcs20

•    In next window, it will give brief description about AD CS. Click next to continue

adcs21

•    Then it will give option to select roles services. I have selected Certificate Authority and Certification Authority Web Enrollment. Click next to continue

adcs22

•    Since Certification Authority Web Enrollment selected it will required IIS. So next window it will give brief description about IIS

adcs23

•    Then in next window it gives option to add IIS role services. I will leave it default and click next to continue

adcs24

•    Next window will give confirmation about service install and click on “Install” to start the installation process

adcs25

•    Once installation completes you can close the wizard.

Configure AD CS

In this step will look in to configuration and restoring the backup we created.

•    Log in to server as Enterprise Administrator
•    Go to Server Manager > AD CS

adcs26

•    In right hand panel it will show message as following screenshot and click on “More”

adcs27

•    It will open up window and click on “Configure Active Directory Certificate Service ……”

adcs28

•    It will open role configuration wizard, it gives option to change the credential, in here I already log in as Enterprise administrator so I will leave the default and click next to continue

adcs29

•    In next window it asking which service you like to configure. Select “Certification Authority”,  “Certification Authority Web Enrollment” options and click next to continue

adcs30

•    It will be Enterprise CA so in next window select the Enterprise CA as the setup type and click next to continue

adcs31

•    Next window select “Root CA” as the CA type and click next to continue

adcs32

•    The next option is very important on the configuration. If its new installation we will only need to create new private key. But since it’s a  migration process we already made a backup of private key. So in here select the options as highlighted in screenshot. Then click on next to continue

adcs33

•    In next window click on “Import” button

adcs34

•    In here it will give option to select the key we backup during the backup process from windows 2003 server. Brows and select the key from the backup we made and provide the password we used for protection. Then click ok

adcs35

•    Then it will import the key successfully and in window select the imported certificate and click next to continue

adcs36

•    Next window we can define certificate database path. In here I will leave it default and click next to continue

adcs37

•    Then in next window it will provide the configuration confirmation and click on configure to proceed with the process

adcs38

•    Once its completed click on close to exit from the configuration wizard

Restore CA Backup

Now it’s comes to the most important part of the process which is to restore the CA backup we made from windows server 2003.

•    Go To Server Manager > Tools > Certification Authority

adcs39

•    Then right click on server node > All Tasks > Restore CA

adcs40

•    Then it will ask if it’s okay to stop the certificate service in order to proceed. Click ok

adcs41

•    It will open up Certification Authority Restore Wizard, click next to continue

adcs42

•    In next window brows the folder where we stored backup and select it. Then also select the options as I did in below. Later click next to continue

adcs43

•    Next window give option to enter the password we used to protect private key during the backup process. Once its enter click next to continue

adcs44

•    In next window click “Finish” to complete the import process

adcs45

•    Once its completed system will ask if it’s okay to start the certificate service again. Please proceed with it to bring service back online

Restore Registry info

During the CA backup process we also backup registry key. It’s time to restore it. To do it open the folder which contains the backup reg key. Then double click on the key.
Then click yes to proceed with registry key restore.

adcs46

Once completed it will give confirmation about the restore.

adcs47

Reissue Certificate Templates

We have done with the migration process and now it’s time to reissue the certificates. I had template setup in windows 2003 environment called “PC Certificate” which will issue the certificates to the domain computers. Let’s see how I can reissue them.

•    Open the Certification Authority Snap-in
•    Right click on Certificate Templates Folder > New > Certificate Template to Reissue

adcs48

•    From the certificate templates list click on the appropriate certificate template and click ok

adcs49

Test the CA

In here I already had certificate template setup for the PC and set it to auto enroll. For the testing purposes I have setup windows 8 pc called demo1 and added it to canitpro.local domain. Once it’s loaded first time in server I open certification authority snap in and once I expanded the “Issued Certificate” section I can clearly see the new certificate it issued for the PC.

adcs50

So this confirms the migration is successful.
 

Related posts
Cyber SecurityMicrosoft Entra IDMicrosoft Technologies

Microsoft Entra lifecycle workflows Part 02 - How to synchronize value for employeeHireDate attribute from on-premises Active Directory ?

In my previous blog post, I explained how we can automate JML (Joiners/Movers/Leavers) process by…
Read more
Azure servicesMicrosoft Entra IDMicrosoft Technologies

Step-by-Step Guide : Automate JML(Joiners/Movers/Leavers) process with Microsoft Entra lifecycle workflows

JML (Joiners/Movers/Leavers) process of an organization has a major impact on its security and…
Read more
Cyber SecurityMicrosoft DefenderMicrosoft Technologies

Microsoft Defender for Identity Part 02 – Create Directory Service Account

In Part 01 of Microsoft Defender for Identity blog series, I have explained about Microsoft Defender…
Read more
Newsletter
Become a Trendsetter

Sign up and get the best of RebelAdmin, tailored for you.

12 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *