Alerting

PKI and Splunk

itsmevic
Communicator

Hey there fellow Splunkers, can Splunk be used to help manage PKI? If so, in what ways?

Tags (2)
0 Karma
1 Solution

adonio
Ultra Champion

bring the PKI software data to splunk
alert on expiring keys
automate keys replacement if you wish ...
seen it done many times

View solution in original post

0 Karma

itsmevic
Communicator

Is there a way to pull this data without PKI software implemented? For example, through a log source which might indicate when a certificate is about to expire?

0 Karma

efavreau
Motivator

Yes. All certs can be interpreted as a series of properties (expiration is one cert property). Common command line tools can query the certs store/wallet/etc. on a daily schedule, and then send that output to a log source (syslog, windows event log, etc.), where Splunk is already picking up the logs.

1) query for gaps between number of certs expected in a day and number received. If the number is off, either a system isn't reporting in, or it's decommissioned, etc.. Splunk alert on it will help you before it's too late. This will make sure your process doesn't accidentally miss a host that was offline for a while.

2) create Splunk reports/dashboards on cert properties for what you need

Lost still? Here's a couple additional pointers for querying certs. This and a few minutes in a search engine should get you going:
https://stackoverflow.com/questions/21297853/how-to-determine-ssl-cert-expiration-date-from-a-pem-en...
https://devblogs.microsoft.com/scripting/use-powershell-to-find-certificates-that-are-about-to-expir...

###

If this reply helps you, an upvote would be appreciated.
0 Karma

adonio
Ultra Champion

bring the PKI software data to splunk
alert on expiring keys
automate keys replacement if you wish ...
seen it done many times

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...