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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...