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

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

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!

Cloud Platform & Enterprise: Classic Dashboard Export Feature Deprecation

As of Splunk Cloud Platform 9.3.2408 and Splunk Enterprise 9.4, classic dashboard export features are now ...

Explore the Latest Educational Offerings from Splunk (November Releases)

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

New This Month in Splunk Observability Cloud - Metrics Usage Analytics, Enhanced K8s ...

The latest enhancements across the Splunk Observability portfolio deliver greater flexibility, better data and ...