Solved

ADCA Windows 2012 R2 and removing old certificates

Posted on 2016-10-20
5
69 Views
Last Modified: 2016-10-27
We have a large internal PKI environment with an offline root and 2 sub CA's which services our 10K users and 15K devices. I use the certutil command every two weeks to remove failed request, revoked certs etc.. but what really needs to be done is clear the DB of all the expired certs. I am nervous about using the certutil command to do this since I do not want to remove a 'valid none expired certificate"
0
Comment
Question by:compdigit44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 8

Expert Comment

by:Leo
ID: 41853244
Run this command on your cert server and see if it helps you

Get-ExchangeCertificate | fl issuer,IsSelfSigned,NotAfter,thumbprint

Have you tried using this command to delete certs?

certutil –deleterow certs <today’s date in mm/dd/yyyy format>

Take a backup before deleting all expired Certs :-)
0
 
LVL 20

Author Comment

by:compdigit44
ID: 41854674
The first command does not apply to me since the server do not host Exchange

What I am trying to verify is when running the certutil command for a time period will it delete certs that are both expired and not expired if they fall in the time range?
0
 
LVL 20

Author Comment

by:compdigit44
ID: 41855432
When I check do I certutil -deleterow ? It states the cert syntax will only delete expired certificates. I am taking a backup of my CA and will post how I make out

CertUtil ScreenShot
0
 
LVL 20

Accepted Solution

by:
compdigit44 earned 0 total points
ID: 41855661
So far using the certutil -deletrow <date> Cert command is only removing the expired certifcates as expected. I hope this helps anyone else in the future
0
 
LVL 20

Author Closing Comment

by:compdigit44
ID: 41861866
Want to post my findings to help others in the future
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains the steps required to use the default Photos screensaver to display branding/corporate images
Had a business requirement to store the mobile number in an environmental variable. This is just a quick article on how this was done.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question