Security

Why am I unable to configure SSL for Splunk Web?

nicocin
Path Finder

Hello

I've tried to configure SSL for Web access, but it's not working:

12-01-2016 11:18:39.867 +0100 ERROR SSLCommon - Can't read key file D:\splunk\etc\auth\splunkweb\splunk.key errno=185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch.
12-01-2016 11:18:39.867 +0100 ERROR HTTPServer - SSL context could not be created - error in cert or password is wrong
12-01-2016 11:18:39.867 +0100 ERROR HTTPServer - SSL will not be enabled

I've used this guide:
http://docs.splunk.com/Documentation/Splunk/6.2.0/Security/Getthird-partycertificatesforSplunkWeb
http://docs.splunk.com/Documentation/Splunk/6.2.0/Security/SecureSplunkWebusingasignedcertificate

My web.conf:

[settings]
SSOMode = permissive
trustedIP = ::1,127.0.0.1,10.120.12.32
remoteUser = X-Forwarded-User
tools.proxy.on = False
updateCheckerBaseURL = 0
enableSplunkWebSSL = 1
tools.sessions.timeout = 720
enable_insecure_login = True
httpport = 8000
privKeyPath = D:\splunk\etc\auth\splunkweb\splunk.key
caCertPath = D:\splunk\etc\auth\splunkweb\splunk.pem

Key and certificate matching together. Key has no password.

The file splunk.pem contains server, subordinate ca and root ca certificate (as described in the guide).

Whats wrong? I've done it exactly as described in the guide...

0 Karma

Tetonka
Engager

You can use these keys to validate the integrity of your private key, CSR, and pem.
The STDIN values should all match.

openssl rsa -noout -modulus -in splunk.key | openssl md5
(stdin)= ca1cc4ca1dbe1a6cfda25eb5c2703fb1

openssl req -noout -modulus -in Your-splunk.csr | openssl md5
(stdin)= ca1cc4ca1dbe1a6cfda25eb5c2703fb1

openssl x509 -noout -modulus -in splunk.pem | openssl md5
(stdin)= ca1cc4ca1dbe1a6cfda25eb5c2703fb1

The incorrect value should illustrate which ssl component has a problem.

HTHs

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...