Getting Data In

secure splunk web with signed certificate

MAShawky
Explorer

I generate Key & csr files from my splunk machine
then got the signed certificate from .pem & root , sub certificates , i put them in on single file in order

-----BEGIN CERTIFICATE-----
... (certificate for your server)...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
... (the intermediate certificate)...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
... (the root certificate for the CA)...
-----END CERTIFICATE-----

also configured web.conf to be like below

[settings]
enableSplunkWebSSL = true
privKeyPath = C:\Program Files\Splunk\etc\auth\mycerts\mySplunkWebPrivateKey.key
serverCert = C:\Program Files\Splunk\etc\auth\mycerts\mySplunkWebCert.pem

but after trying to restart splunk service
am waiting much time in starting web server process more than 10 min and i have to revert back my configuration to can access splunk GUI again
anyone can help ?

Tags (1)
0 Karma

hardikJsheth
Motivator

Can you confirm that you have put all the certificates in your .pem file?

Also can you check what error are you getting in Splunkd.log when you start your Splunk with this configurations?

0 Karma

inventsekar
Ultra Champion

Are you having the intermediate certificate?!?!

Troubleshoot your Splunk Web authentication
If you are unable to verify your certificate configuration, you can use the web_service.log in $SPLUNK_HOME/var/log/splunk to view and troubleshoot any errors that occur upon restart.

Look for SSL configuration warnings. For example, if you provide an incorrect path to the server certificate declared in serverCert, Splunk Web fails to start and the following error appears:

2010-12-21 16:25:02,804 ERROR [4d11455df3182e6710] root:442 - [Errno 2] No such file or directory: '/opt/splunk/share/splunk/mycerts/mySplunkWebCertificate.pem'
Note: If the private key is provided in privKeyPath is password protected, no error is provided but your browser won't load Splunk Web.

https://docs.splunk.com/Documentation/Splunk/7.0.0/Security/TroubleshootyourSplunkWebauthentication

0 Karma

MAShawky
Explorer

no warning in this file related to the certificate

0 Karma

inventsekar
Ultra Champion

Are you having the intermediate certificate?!?!

0 Karma

MAShawky
Explorer

yes I have ca-root & ca-subcertificate & webserver certificate

0 Karma

koshyk
Super Champion

when you start Splunk, did it show error or just showing Splunk web starting?

Ensure,

privKeyPath
caCertPath
serverCert

are all reflected in btool output of web.conf

0 Karma

MAShawky
Explorer

which path can i write in CAcert as i have only one .pem file ?

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 ...