Quantcast
Channel: Questions in topic: "universal-forwarder"
Viewing all articles
Browse latest Browse all 1551

Windows scripted input using output from splunk openssl command?

$
0
0
Does anyone have a nice windows scripted input that will output the local certificate end date? ie. something like inputs.conf [script://.\bin\ssl_check.bat] disabled = false index = ssl_check interval = -1 sourcetype = ssl_check ssl_check.bat "C:\program files\SplunkUniversalForwarder\bin\splunk" cmd openssl x509 -enddate -noout -in "C:\program files\SplunkUniversalForwarder\etc\auth\ca.pem" My problem is that the windows openssl opens its own little window and doesn't output to stdout. As such there isn't any text for the input to grab. ![alt text][1] edit: i've tried numerous x509 parameters but nothing seens to want to output a text version of the certificate to a file. All the -out or -text options only output to the spawned console which can't be grabbed. We need this to verify remediation work. [1]: /storage/temp/127203-splunk-openssl-console-output.png

Viewing all articles
Browse latest Browse all 1551

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>