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!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...