Security

Port issue with splunkd SSL

irsysintegratio
Path Finder

Hello,

We want to enable Splunkd SSL, so we put
enableSplunkdSSL = true
to server.conf.
We generated a certificate using the FQDN as the CN of the certificate.

Then in our AddOn, we use splunk.getLocalServerInfo() to get the url:port. The problem is that splunk.getLocalServerInfo() always returns https://127.0.0.1:8089, even if we changed MgmtHostPort in web.conf. As a result, we always get an error:
SSLError: hostname '127.0.0.1' doesn't match xxxxxx, where xxxxxx is the CN we set for the certificate.

So how shall this work? Shall we use 127.0.0.1 as the CN to create a cert? Or we shall not call getLocalServerInfo()?

Thanks!

0 Karma
1 Solution

irsysintegratio
Path Finder

Ok, answering my own question. One way to contribute. 🙂

Need to set the following env var:
SPLUNKD_URI
to the FQDN of your machine. Then it will work.

View solution in original post

0 Karma

irsysintegratio
Path Finder

Ok, answering my own question. One way to contribute. 🙂

Need to set the following env var:
SPLUNKD_URI
to the FQDN of your machine. Then it will work.

0 Karma
Get Updates on the Splunk Community!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

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

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...