Failed to renew RootCA , Certificate #0(expired)

WCalvinW 21 Reputation points
2020-11-11T01:33:44.927+00:00

there have 2 CA certificates in the RootCA store :
38760-exchangecapture1111.jpg

Certificate #0 (expired)

Certificate #1

My certificate #1 almost to expired 11/11/2020 and When I try to renew the expiring cert, the following error show:

A certificate in the chain for CA certificate 0 for mtahk-XXX-CA has expired. A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file. 0x800b0101 (-2146762495).

Seems the Certificate #0 doesn't allow me to renew the RootCA cert, Can I remove it , what should I do now ? please help,

thanks !

Calvin

Windows Server Security
Windows Server Security
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
1,842 questions
0 comments No comments
{count} votes

Accepted answer
  1. Hannah Xiong 6,276 Reputation points
    2020-11-11T08:04:58.027+00:00

    Hello Calvin,

    Thank you so much for your kindly reply.

    To use the command certutil -renewCert to renew CA certificate, it will generate a new key pair. If new key pair is generated many things in the CA cert are changed. For example new public key will produce different Subject Key Identifier (the hash of public key).

    In my test, Certificate #1 was renewed via the command, which generate a new key pair. Certificate #2 was renewed without choosing to generate a new key pair. So the Certificate #1 has different Subject Key Identifier from Certificate #0. While Certificate #2 has the same Subject Key Identifier as Certificate #1.

    For example:

    38985-11.png

    39014-12.png

    39006-13.png

    38877-14.png

    As for Renewal with existing key pair or Renewal with new key pair, we could refer to:

    Root CA certificate renewal
    https://www.sysadmins.lv/blog-en/root-ca-certificate-renewal.aspx

    As per my research, there shouldn't be anything to worry about when the old one expires, as the new cert is valid and distributed. Anything new will come from that one and all the certs signed by the old one will be expiring at the same point or before anyway.

    We should not remove existing (even expired) CA certificates. Even there are multiple valid CA certs only the most recent CA certificate is used for certificate signing.

    As for our issue, it seems to be a little special and maybe so urgent. We really hope the issue could be resolved as soon as possible. Looking forward to the good news.

    Besides, have we checked PKI view to make sure everything is OK?

    38998-111.png

    Anyway, I sincerely hope our issue could be resolved soon and everything works fine later.

    Thank you so much for your understanding and support.

    Best regards,
    Hannah Xiong

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Hannah Xiong 6,276 Reputation points
    2020-11-11T05:40:09.773+00:00

    Hello,

    Thank you so much for posting here.

    According to the below article, we cannot renew a certificate that has already expired.

    "You cannot renew a certificate that has already expired. If you try to renew a certificate that has expired, the certification authority (CA) will reject the request, and you will see an error message similar to "Error Verifying Request Signature or Signing Certificate. A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file." This message will also be displayed in the Failed Requests node of the issuing CA. If your certificate has already expired, you must request a new certificate instead of renewing the existing certificate."

    https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc725583(v=ws.11)?redirectedfrom=MSDN

    As for our issue, when we renew CA certificate, we choose to renew it with existing key pair, right?

    we try to remove expired CA certificate from Active Directory to check whether it could solve the problem.

    On the CA server (or where CA management tools are installed) run PKIView.msc console. Right-click on Enterprise PKI node, and select Manage AD Containers. Switch to Certification Authorities tab and remove expired CA certificate. Then, switch to AIA tab and remove expired CA certificate (if there is this expired certificate). After next group policy refresh, expired certificate should be removed from clients.

    Similar case for your reference: https://social.technet.microsoft.com/Forums/ie/en-US/48958ec4-330e-43df-9ecf-6d23a6c05b7b/how-to-remove-an-expired-certificate-from-a-rootca?forum=winserversecurity

    For any question, please feel free to contact us.

    Best regards,
    Hannah Xiong

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. WCalvinW 21 Reputation points
    2020-11-11T06:36:34.513+00:00

    Thanks for your reply and suggest.

    I've tried both suggested option and still no luck, the expired certificate #0 still there and i still cannot renew certificate #1.


  3. WCalvinW 21 Reputation points
    2020-11-11T06:41:30.22+00:00

    as the deadline is near ( cert will expired on 11.11.2020 17:38) and now our side is (11.11.2020. 14:38), I would like to ask can i build an another Enterprise CA server in another windows server and disable the existing CA Server from domain ? any impact will occur ?

    Calvin

    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.