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

Tetonka
Explorer

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

Get Updates on the Splunk Community!

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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