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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...