Security

How to check certificates?

Timrit
New Member

I am new in Splunk and I currently need to check "Valid to:" date from our corporation hundreds of certificates in our shared folder.
But unfortunately I am not lucky enough to get .cer files work with the app. It reads only my .PEM files.
My all other .cer files are just hang in there without any timestamps.
Am I missing something here, or what can I do?

Tags (1)
0 Karma
1 Solution

damann
Communicator

Im not sure if this will work for you, but you can try the following if your certificates are x509 encoded:

$SPLUNK_HOME/bin/splunk cmd openssl x509 -enddate -noout -in file.cer

make sure your $SPLUNK_HOME ist set correctly or navigate manually into your bin folder.
Replace file.cer with your certificate you want to check.

Please let me know if this works for you.

View solution in original post

0 Karma

Timrit
New Member

Yep, that did the trick... Super thanks...
Some reason I need to restart the service every time I made any changes in folder to get Splunk find new files, but that´s not an issue....

0 Karma

damann
Communicator

Im not sure if this will work for you, but you can try the following if your certificates are x509 encoded:

$SPLUNK_HOME/bin/splunk cmd openssl x509 -enddate -noout -in file.cer

make sure your $SPLUNK_HOME ist set correctly or navigate manually into your bin folder.
Replace file.cer with your certificate you want to check.

Please let me know if this works for you.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...