Migrate Active Directory Certificate Service From Windows Server 2012 R2 Datacenter to Windows Server 2022 Standard

Andreas 1,331 Reputation points
2022-02-22T08:28:22.52+00:00

Hi,

We have today one CA server, and that role is installed on the domain controller :(, its running windows server 2012 r2 datacenter.
Its used for user, computer and nps certificate, mainly used for Wifi and VPN.

We have installed a new virtual machine that is windows server 2022 standard and we would like to move the CA role over to this machine.

The new machine will not have the same IP or hostname, guess that should not be a problem ?

I have looked at some guides, for example

https://techcommunity.microsoft.com/t5/itops-talk-blog/step-by-step-migrating-the-active-directory-certificate-service/ba-p/697674
https://www.petenetlive.com/KB/Article/0001473

One thing here is that both of them uninstall the old CA, what I would like to do is to stop the CA service, and if the migration fails, then roll back to start the service again. Is that possible, or would that cause problems ? If I see the new CA server is running fine, I will offcourse uninstall the CA role on the old server.

I guess I could also do a snapshot, but since the CA role is on the domain controller, I would not like to revert back, or restore any backup.

Is there any known issues importing the private key from old CA - windows server 2012 r2 to CA - windows server 2022 ?
Is there any known issues importing the database or registry key from old CA - windows server 2012 r2 to CA - windows server 2022 ?
Is the Windows Server 2012 R2 CA database is compatible with Windows Server 2022 CA ?

I also see that we need to Reissue Certificate Templates, does this mean that every machine will need to get new certificates ? Please explain a bit around this

On other thing, the CA certificate .....The Signature hash algorithm say sha256, but the thumbprint algorithm say sha1 will this be an issue ?

Comments?

Thanks for any reply, have not done a CA migration before so any comments are good :)

/R
Andy

Windows for business | Windows Server | Devices and deployment | Configure application groups
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 44,766 Reputation points
    2022-02-22T15:01:18.403+00:00

    Hello @Andreas

    There is no special known issues when migrating from 2012R2 to 2022 Certification Authority, but I can recommend the next forum discussion where one of the community experts have related the most common points of failure in similar situations:

    https://learn.microsoft.com/en-us/answers/questions/608203/move-from-dc-2012r2-to-2022-and-move-ca-role.html

    About the roll back option, it should not be a problem, since the database, certificate that you are exporting are going to be the same. Although, if you reissue new Certificate Templates in the new CA and want to roll back you should again reissue Templates from the old one, in order for the roll back to work.

    About Reissuing the certificate templates it is just related to the server specific information, while the clients will still use the "public" part of the certificate already shared.

    Hope this helps with your query,

    --
    --If the reply is helpful, please Upvote and Accept as answer-

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Andreas 1,331 Reputation points
    2022-02-22T19:42:22.037+00:00

    Hi @Limitless Technology

    Thanks for reply, and good information.

    I configured a test environment and did a copy and everything seems ok, except one thing and that's reissue certificate templates.
    I thought that the templates I had published on the old CA server would be copied over, but I cannot see them. Do I manually need to create new ones ?

    Old server:
    176886-image.png

    New server:
    176887-image.png

    If Yes I need to manually create new ones then I guess I will have to cross check the old settings with the new.... or am I missing something here ?
    Hmmm... read something about these custom templates are distributed from AD, so since I have created a new test domain on my lab, and only exported and imported the CA role/database I guess I will not have these custom templates, am I correct ? Then when I will do this in production I will have these custome templates since I am "on" the domain ?

    /R
    Andy

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.