Splunk Search

Encryption on the port 9997

damucka
Builder

Hello,

I have the following inputs.conf on my indexer:

[default]
host = mo-7ee963859.zone1.mo.sap.corp

[monitor:///var/log/messages]
sourcetype = syslog


#[splunktcp://9997]
#disabled = 0

######### SSL Configuration
[splunktcp-ssl://9997]

[SSL]
serverCert = $SPLUNK_HOME/etc/auth/server.pem
password = $1$ydTZu0KhCtct
rootCA = $SPLUNK_HOME/etc/auth/cacert.pem
#requireClientCert = false

When I restart splunk with the above, the port 9997 is not active / splunk does not listen on it (netstat -an | grep 9997). When I uncomment the "unencrypted version" in the above config and restart, the port 9997 pops up in the netstat list.

Can you please help?

Kind Regards,
Kamil

Tags (1)
0 Karma
1 Solution

harsmarvania57
Ultra Champion

As per inputs.conf spec file rootCA = $SPLUNK_HOME/etc/auth/cacert.pem is deprecated, do you have sslRootCAPath in server.conf ?

rootCA = <path>
* This setting is DEPRECATED.
* Do not use this setting. Use 'server.conf/[sslConfig]/sslRootCAPath' instead.
* Used only if 'sslRootCAPath' is unset.

password must be your certificate key password and first time you need to provide in plain text and after that when you restart splunk will automatically encrypt it.

View solution in original post

0 Karma

harsmarvania57
Ultra Champion

As per inputs.conf spec file rootCA = $SPLUNK_HOME/etc/auth/cacert.pem is deprecated, do you have sslRootCAPath in server.conf ?

rootCA = <path>
* This setting is DEPRECATED.
* Do not use this setting. Use 'server.conf/[sslConfig]/sslRootCAPath' instead.
* Used only if 'sslRootCAPath' is unset.

password must be your certificate key password and first time you need to provide in plain text and after that when you restart splunk will automatically encrypt it.

0 Karma

damucka
Builder

@harsmarvania57

Thank you.
It was my misunderstanding, I thought I can set my own password.
It helped.

Kind Regards,
Kamil

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Free Professional Services for .conf26 Attendees

This year at .conf26, we are doing something a little different. We are bringing the best minds from ...

Defend at Machine Speed: Your Guide to Security Sessions at .conf26

Splunk .conf26   With threats moving at machine speed and attack surfaces expanding across hybrid ...

Where Innovation Takes Flight: The Splunk4Aviation Flight Sim Lands at .conf26

If you hear someone at .conf26 shouting "gear down, GEAR DOWN" across the show floor, you have found us.  The ...