Solved

ADCA Windows 2012 R2 and removing old certificates

Posted on 2016-10-20
5
35 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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Do you have users whose passwords are expiring and they are constantly calling you?  Well I sure did and needed a way to put an end to this.  We have a lot of remote users which would not be notified that their passwords were expiring since they wer…
Synchronize a new Active Directory domain with an existing Office 365 tenant
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…
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 …

810 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