<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: When enabling sslVerifyServerName for kvstore, the KVStore will not start? in Security</title>
    <link>https://community.splunk.com/t5/Security/When-enabling-sslVerifyServerName-for-kvstore-the-KVStore-will/m-p/642620#M16957</link>
    <description>&lt;P&gt;In the meantime, I've also enabled verbose logging for the KVstore. This however, does nog provide much more help. The mongo logfile now contains many lines saying:&lt;BR /&gt;Session from &amp;lt;ipadress&amp;gt; encountered a network error during SourceMessage: SocketException: sslv3 alert bad certificate&lt;/P&gt;&lt;P&gt;Running a curl-command from the host to the KVstore shows a valid SSL-chain:&lt;BR /&gt;curl -v --cacert etc/auth/customcerts/splunk_ca.pem &lt;A href="https://localhost:8191" target="_blank"&gt;https://localhost:8191&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 08:01:38 GMT</pubDate>
    <dc:creator>HumanPrinter</dc:creator>
    <dc:date>2023-05-09T08:01:38Z</dc:date>
    <item>
      <title>When enabling sslVerifyServerName for kvstore, the KVStore will not start?</title>
      <link>https://community.splunk.com/t5/Security/When-enabling-sslVerifyServerName-for-kvstore-the-KVStore-will/m-p/641985#M16953</link>
      <description>&lt;P&gt;We are trying to implement the guidelines for enabling TLS Hostname verification (&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Security/EnableTLSCertHostnameValidation" target="_blank" rel="noopener"&gt;Configure TLS certificate host name validation - Splunk Documentation&lt;/A&gt;). This is working for most stanzas, but we are facing an issue with enabling the 'sslVerifyServerName' setting for kvstore.&lt;/P&gt;&lt;P&gt;We already had custom certificates in place for all inter-Splunk communications. We are starting to enable the aditional verify-settings and in that process we started with the Deployment Server/SH Deployer.&lt;/P&gt;&lt;P&gt;On that machine we created a server.conf with the following content:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[sslConfig]
serverCert = /opt/splunk/etc/auth/customcerts/azsplunkdep1d.management.dev_chained.pem
sslPassword = [REDACTED]
sslRootCAPath = /opt/splunk/etc/auth/customcerts/splunk_ca.pem
sslVerifyServerCert = true
sslVerifyServerName = true
cliVerifyServerName = true

[kvstore]
serverCert = /opt/splunk/etc/auth/customcerts/azsplunkdep1d.management.dev_chained.pem
sslPassword = [REDACTED]
sslVerifyServerCert = true
sslVerifyServerName = true

[search_state]
sslVerifyServerCert = true
sslVerifyServerName = true

[pythonSslClientConfig]
sslVerifyServerCert = true
sslVerifyServerName = true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The server certificate is valid and contains the hostname and domainname of the server (CN=&amp;lt;host&amp;gt;.&amp;lt;domain&amp;gt;)&lt;/P&gt;&lt;P&gt;If we start Splunk, the following lines appear in splunkd.log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR KVStoreConfigurationProvider [45937 KVStoreConfigurationThread] - Failed to start mongod on first attempt reason=Failed to receive response from kvstore error=, service not ready after waiting for timeout=304029ms
ERROR KVStoreConfigurationProvider [45937 KVStoreConfigurationThread] - Could not start mongo instance. Initialization failed.
ERROR KVStoreBulletinBoardManager [45937 KVStoreConfigurationThread] - KV Store changed status to failed. Failed to start KV Store process. See mongod.log and splunkd.log for details..
ERROR KVStoreBulletinBoardManager [45937 KVStoreConfigurationThread] - Failed to start KV Store process. See mongod.log and splunkd.log for details.
INFO  MongodRunner [45938 MongodLogThread] - mongod exited normally (exit code 0, status: PID 45939 exited with code 0).&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Mongo log only contains logging saying it received a signal 15 (Terminated) and that it will shutdown accordingly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we remove (or disable) the 'sslVerifyServerName' setting under the kvstore-stanza, everything works fine. Is there anything we missed in this setup? What additional steps of checks are required to enable TLS Hostname verification for the KVStore?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;BR /&gt;Oscar&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 07:37:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/When-enabling-sslVerifyServerName-for-kvstore-the-KVStore-will/m-p/641985#M16953</guid>
      <dc:creator>HumanPrinter</dc:creator>
      <dc:date>2023-05-09T07:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: When enabling sslVerifyServerName for kvstore, the KVStore will not start?</title>
      <link>https://community.splunk.com/t5/Security/When-enabling-sslVerifyServerName-for-kvstore-the-KVStore-will/m-p/642620#M16957</link>
      <description>&lt;P&gt;In the meantime, I've also enabled verbose logging for the KVstore. This however, does nog provide much more help. The mongo logfile now contains many lines saying:&lt;BR /&gt;Session from &amp;lt;ipadress&amp;gt; encountered a network error during SourceMessage: SocketException: sslv3 alert bad certificate&lt;/P&gt;&lt;P&gt;Running a curl-command from the host to the KVstore shows a valid SSL-chain:&lt;BR /&gt;curl -v --cacert etc/auth/customcerts/splunk_ca.pem &lt;A href="https://localhost:8191" target="_blank"&gt;https://localhost:8191&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 08:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/When-enabling-sslVerifyServerName-for-kvstore-the-KVStore-will/m-p/642620#M16957</guid>
      <dc:creator>HumanPrinter</dc:creator>
      <dc:date>2023-05-09T08:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: When enabling sslVerifyServerName for kvstore, the KVStore will not start?</title>
      <link>https://community.splunk.com/t5/Security/When-enabling-sslVerifyServerName-for-kvstore-the-KVStore-will/m-p/666321#M17346</link>
      <description>&lt;P&gt;Check this server.conf setting that you may be&amp;nbsp;&amp;nbsp;missing:&lt;/P&gt;&lt;P&gt;goes under sslOptions&lt;/P&gt;&lt;PRE&gt;sslCommonNameToCheck = &amp;lt;commonName1&amp;gt;, &amp;lt;commonName2&amp;gt;, ...
* If set, and 'sslVerifyServerCert' is set to "true",
  splunkd limits most outbound HTTPS connections to hosts which
  use a certificate with one of the listed common names.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 10:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/When-enabling-sslVerifyServerName-for-kvstore-the-KVStore-will/m-p/666321#M17346</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2023-10-26T10:15:07Z</dc:date>
    </item>
  </channel>
</rss>

