cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post

THWACK Tuesday Tips :: How to Monitor Changes to Local Certificates

Community Manager
FEATURED EPISODE: How to Monitor Changes to Local Certificates
Video Link : 1334
December 24, 2019

Local certificates provide a multitude of security benefits. From encrypting emails and allowing easier authentication, to securing connections between web browsers and your web servers, they're a necessary part of any network. Learn how to monitor changes to local certificates with SolarWinds® Server Configuration Monitor.

For other videos, be sure to check out the Triple-T Hub.


If you have any questions, don't hesitate to comment below!

2 Comments
Level 8

Hi Kevin,

Where can I find the text of that Powershell script?  I like to try it out, can you provide a link or the text?

Thanks

Community Manager
Community Manager

I wrote about this script (and others) on this Product Blog: Manage and Monitor PowerShell Scripts

But here is the script if you need it immediately.

$AllCertificates = Get-ChildItem -Path Cert:\LocalMachine\My -Recurse

# Create an empty list to keep the results

$CertificateList = @()

ForEach ( $Certificate in $AllCertificates )

{

    # Check to see if this is a "folder" or a "certificate"

    if ( -not ( $Certificate.PSIsContainer ) )

    {

        # Certificates are *not* containers (folders)

        # Get the important details and add it to the $CertificateList

        $CertificateList += $Certificate | Select-Object -Property FriendlyName, Issuer, Subject, Thumbprint, NotBefore, NotAfter

    }

}

$CertificateList | Sort-Object -Property FriendlyName

About the Author
Kevin's first computer was the family TI-99/4A. He's learned computing the best way possible: by fixing his own broken machines. He was a SolarWinds customer for nearly 10 years before joining the company. He's worked the range of IT jobs: from the 3-person consultancy to the international law firm. Along the way, he's become a SolarWinds advocate and evangelist of monitoring glory. His passions include shooting archery, blacksmithing, playing D&D, and helping IT professionals leave at a reasonable time each and every day.