All Apps and Add-ons

SSL Private Certificate is not Working for search head?

sarvesh_11
Communicator

Hi Splunkers,

I used below link for the generating the key, CSR and finally configuring the certificate in Search head.

https://docs.splunk.com/Documentation/Splunk/7.2.7/Security/Getthird-partycertificatesforSplunkWeb

https://docs.splunk.com/Documentation/Splunk/7.2.7/Security/SecureSplunkWebusingasignedcertificate

While i submitted the csr to the signing authority, i get the server certificate and CA Certificate, i converted both of them in .pem and gave the path in web.conf on search head.
But when in start splunk services, now the web services are not getting started.
On checking ServerCertificate i found SAN (Subject Alternate Name) was missing in Server Certificate. i'm suspecting while generating the CSR, might be the DNS entries did not get mention in csr.

If yes, how shall i proceed?

1 Solution

jkat54
SplunkTrust
SplunkTrust

Does the modulus of the key, match the cert, match the CSR?

 openssl x509 some.pem -noout -modulus | openssl md5

 openssl rsa some.key -noout -modulus | openssl md5

openssl req some.csr -noout -modulus | openssl md5

If not, something went wrong with your process.

View solution in original post

jkat54
SplunkTrust
SplunkTrust

Does the modulus of the key, match the cert, match the CSR?

 openssl x509 some.pem -noout -modulus | openssl md5

 openssl rsa some.key -noout -modulus | openssl md5

openssl req some.csr -noout -modulus | openssl md5

If not, something went wrong with your process.

sarvesh_11
Communicator

Hey @jkat54
The modulus of the 3 is same.

I just want to know, when we get the server certificate from the third party, then SAN should be mentioned in the field or not?

jkat54
SplunkTrust
SplunkTrust

Can you try this method and let us know if it works?

https://geekflare.com/san-ssl-certificate/

0 Karma

sarvesh_11
Communicator

Thanks @jkat54

jkat54
SplunkTrust
SplunkTrust

You're welcome @sarvesh_11

0 Karma

jkat54
SplunkTrust
SplunkTrust

Please share your web.conf settings.

0 Karma

sarvesh_11
Communicator

Hi @jkat54
[settings]
enableSplunkWebSSL = true

privKeyPath = /opt/splunk/etc/auth/mycerts/myServerPrivateKey.key
serverCert = /opt/splunk/etc/auth/mycerts/myservercert.pem

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...