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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...