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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...