Solved

ADCA Windows 2012 R2 and removing old certificates

Posted on 2016-10-20
5
17 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
  • 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 19

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 19

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 19

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 19

Author Closing Comment

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

Join & Write a Comment

Starting in Windows Server 2008, Microsoft introduced the Group Policy Central Store. This automatically replicating location allows IT administrators to have the latest and greatest Group Policy (GP) configuration settings available. Let’s expl…
Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

760 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now