Migrating 2012R2 CA to 2019

Akin 61 Reputation points
2021-04-13T11:48:43.453+00:00

I am migrating 2012R2 CA to 2019. I use the option to use an existing key. However, the new CA is asking me to send a certificate request to the root CA. I will like to reuse the old cert without issuing a new one. The private key is store on an HSM and I can find the cert and key.

87348-1.jpg

87375-3.jpg87349-2.jpg

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

Accepted answer
  1. Vadims Podāns 9,186 Reputation points MVP
    2021-04-14T13:44:28.037+00:00

    It doesn't matter where the key is stored. Private key alone is not sufficient to migrate CA, you need to have a certificate as well. Make sure if certificate is installed in Local Machine\Personal store (certlm.msc), then make sure that private key is associated with certificate. You can force key association using certutil:

    certutil -csp "SafeNet Key Storage Provider" -repairstore my "<CertSerialNumber>"
    

    where <CertSerialNumber> is the cert's serial number. If the command succeeds, then you will see a key icon on top of certificate icon in certificate manager.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Vadims Podāns 9,186 Reputation points MVP
    2021-04-13T18:27:35.653+00:00

    You selected wrong option on a first image. It selects only private key without certificate and installer needs to get a certificate through request. You need to select "Select a certificate and use its associated private key" instead.

    0 comments No comments

  2. Anonymous
    2021-04-14T03:18:58.14+00:00

    Hello @Akin ,

    Thank you for posting here.

    With this being a migration, select Use existing private key and Select a certificate and use its associated private key and click next to continue.

    87460-ex1.png

    For more information about CA migration, we can refer to the link below.

    Step-By-Step: Migrating The Active Directory Certificate Service From Windows Server 2008 R2 to 2019
    https://techcommunity.microsoft.com/t5/itops-talk-blog/step-by-step-migrating-the-active-directory-certificate-service/ba-p/697674

    Hope the information above is helpful.

    Should you have any question or concern, please feel free to let us know.

    Best Regards,
    Daisy Zhou

    0 comments No comments

  3. Akin 61 Reputation points
    2021-04-14T12:42:14.613+00:00

    Even if the private key is stored on HSM?

    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.