Renew private key root ca

matteu31 532 Reputation points
2020-10-30T08:27:21.86+00:00

Hello

I need to migrate ca from sha1 to sha2 on new server with different name and from csp to ksp and i would like to know what will happen to my certificate when i will renew private key of my root ca ?
Do they will valid or do i need to renew all my certificates ?
I find microsoft documentation to migrate sha1 to sha2 on new server name and from csp to ksp.

Thank you.

Windows for business | Windows Server | Devices and deployment | Configure application groups

Answer accepted by question author
Vadims Podāns 9,266 Reputation points MVP
2020-10-30T15:06:31.767+00:00

Based on your original question, you have a root CA which uses SHA1 signing algorithm and the key is stored in legacy CSP. In order to move to SHA2 you need to migrate private key from legacy CSP to modern (em? it's 13yr old, lol) KSP and move CA to another server with new host name.

Well, the referenced article is not quite correct. CA certificate renewal is necessary only for intermediate CAs. You don't need to do that on root CA. Only thing you need is to:

  1. migrate key from CSP to KSP: Migrating a Certification Authority Key from a Cryptographic Service Provider (CSP) to a Key Storage Provider (KSP)
  2. Configure CA to sign certificates with SHA2: certutil -setreg ca\csp\CNGHashAlgorithm sha256 and restart CA service
  3. Migrate CA to another server: Active Directory Certificate Services Migration Guide for Windows Server 2012 R2

and clients won't notice any changes if you do everything correctly.

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. matteu31 532 Reputation points
    2020-10-30T18:52:05.893+00:00

    Perfect.

    Thank you

    Was this answer helpful?

    0 comments No comments

  2. matteu31 532 Reputation points
    2020-10-30T10:27:06.137+00:00

    hello,

    i see it in the documentation :
    https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/migrating-your-certification-authority-hashing-algorithm-from/ba-p/400300

    renew private key to migrate from sha1 to sha2.

    i would like to understand what hapened on existing certificate...

    Was this answer helpful?

    0 comments No comments

Your answer

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