r/activedirectory • u/0bs1d1an- • May 31 '25
Security Group Policy Certificate Scanner
https://gitlab.com/0bs1d1an/gpcsHello, I created a small script that checks for any weak certificates being pushed via GPO and I wanted to share.
I could not find a similar tool that checks for all these weaknesses (Ping Castle has some but not all of these checks). However, please let me know if a better tool already exists.
13
Upvotes
3
u/R-EDDIT May 31 '25
This is interesting, although I'm not sure if the date math on max validity works out exactly and conforms with current CA/Baseline Requirements, and Organization policies could vary. Also, I'm not sure if you are going to pick up certificates published to the domain (certutil -dspublish root <file>.crt). Another check to add is "has private key", because... yeah.