<?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: Not able to get Correct Cert working on SH in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421209#M15014</link>
    <description>&lt;P&gt;Hi xpac,&lt;/P&gt;

&lt;P&gt;Yes - I did check splunkd logs for both warnings and errors - nothing obvious.&lt;/P&gt;

&lt;P&gt;Have also tried looking for cert, privatekey and the cert name - nothing comes up suggesting errors.&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 23:54:21 GMT</pubDate>
    <dc:creator>Kozanic</dc:creator>
    <dc:date>2018-05-29T23:54:21Z</dc:date>
    <item>
      <title>Not able to get Correct Cert working on SH</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421207#M15012</link>
      <description>&lt;P&gt;We have generated an SSL Cert using internal CA server, configured to work for a number of our servers including 3 SHs.&lt;/P&gt;

&lt;P&gt;We have created an App that pushes out web.conf file with stanza for the following items:&lt;BR /&gt;
[settings]&lt;BR /&gt;
privKeyPath = etc/auth/healthCerts/HealthSearcheadPrivateKey.key&lt;BR /&gt;
serverCert = etc/auth/healthCerts/searchheadcertcombined.pem&lt;BR /&gt;
sslVersions = tls1.2&lt;/P&gt;

&lt;P&gt;I have confirmed that correct files are available and splunk user has access to the files, I have confirmed in btool that the above settings are in affect, yet on one of our servers, it is still using the default self-signed Cert for some reason.&lt;/P&gt;

&lt;P&gt;The above works perfectly on the other 2 SHs, just one that it doesn't.&lt;/P&gt;

&lt;P&gt;Have checked /etc/system/local - but there are no entries for web.conf, only in default.&lt;/P&gt;

&lt;P&gt;I have restarted the Splunk service on the SH a number of times - but still using the default cert.&lt;/P&gt;

&lt;P&gt;Not sure what I'm missing or what else I can check - but appreciate any suggestions people might have. &lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 04:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421207#M15012</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2018-05-28T04:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to get Correct Cert working on SH</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421208#M15013</link>
      <description>&lt;P&gt;Did you check splunkd.log for erorrs/warnings, or infos about cert stuff?&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 08:26:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421208#M15013</guid>
      <dc:creator>xpac</dc:creator>
      <dc:date>2018-05-28T08:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to get Correct Cert working on SH</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421209#M15014</link>
      <description>&lt;P&gt;Hi xpac,&lt;/P&gt;

&lt;P&gt;Yes - I did check splunkd logs for both warnings and errors - nothing obvious.&lt;/P&gt;

&lt;P&gt;Have also tried looking for cert, privatekey and the cert name - nothing comes up suggesting errors.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 23:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421209#M15014</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2018-05-29T23:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to get Correct Cert working on SH</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421210#M15015</link>
      <description>&lt;P&gt;btool never lies and this usually means either:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;the file is not accessible by the Splunk user&lt;/LI&gt;
&lt;LI&gt;web.conf not in the right location - $SPLUNK_HOME/etc/apps//[default|local]/web.conf&lt;/LI&gt;
&lt;LI&gt;configuration file precedence - &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/Admin/Wheretofindtheconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/Admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;perhaps check file md5 checksum - maybe corrupted file?&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;What path does it point to when using:&lt;BR /&gt;
&lt;CODE&gt;splunk cmd btool web list settings --debug&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 03:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421210#M15015</guid>
      <dc:creator>ptang_splunk</dc:creator>
      <dc:date>2018-05-30T03:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to get Correct Cert working on SH</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421211#M15016</link>
      <description>&lt;P&gt;Sorry, but this is not entirely correct. See the docs on &lt;CODE&gt;btool&lt;/CODE&gt; &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Usebtooltotroubleshootconfigurations"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Troubleshooting/Usebtooltotroubleshootconfigurations&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Btool displays merged on-disk configurations. That is, btool shows you the merged settings in the .conf files. It does not necessarily show you what Splunk software is currently using. So for example if you edit a .conf file and do not restart (and the edit requires a restart), btool reports the newly edited settings rather than the settings that are currently being used. To view current in-memory configurations, query the REST endpoint /services/properties/.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or use this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; splunk show config web
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 03:27:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421211#M15016</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-05-30T03:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to get Correct Cert working on SH</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421212#M15017</link>
      <description>&lt;P&gt;Hi ptang&lt;/P&gt;

&lt;P&gt;Running btool gives me the following outputs  (only included those relevant):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/etc/apps/config_SH_webconf/local/web.conf             privKeyPath = etc/auth/healthCerts/HealthSearcheadPrivateKey.key
/opt/splunk/etc/apps/config_SH_webconf/local/web.conf             serverCert = etc/auth/healthCerts/searchheadcertcombined.pem
/opt/splunk/etc/apps/config_SH_webconf/local/web.conf             sslVersions = tls1.2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Path and directory listing below match the above output:&lt;/P&gt;

&lt;P&gt;-bash-4.2$ ls -la /opt/splunk/etc/auth/healthCerts/&lt;BR /&gt;
total 44&lt;BR /&gt;
drwxr-xr-x. 2 splunk splunk 4096 Apr 24 11:15 .&lt;BR /&gt;
drwx------. 8 splunk splunk 4096 May 28 12:05 ..&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 1704 Apr 24 11:15 HealthSearcheadPrivateKey.key&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 6261 Apr 24 11:15 searchheadcertcombined.pem&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 2894 Apr 24 11:15 searchheadcert.pem&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk  631 Apr 24 11:15 splunkCertConfig.conf&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 1435 Apr 24 11:15 splunksec.csr&lt;BR /&gt;
-rw-r--r--. 1 splunk splunk 8843 Apr 24 11:15 splunkweb.pem&lt;/P&gt;

&lt;P&gt;MuS, Thanks for the extra info - I agree with your thought on btool so ran your command as well - just to compare:&lt;/P&gt;

&lt;P&gt;relevant entries:&lt;/P&gt;

&lt;P&gt;privKeyPath=etc/auth/healthCerts/HealthSearcheadPrivateKey.key&lt;BR /&gt;
serverCert=etc/auth/healthCerts/searchheadcertcombined.pem&lt;BR /&gt;
sslVersions=tls1.2&lt;/P&gt;

&lt;P&gt;From this - I can only assume that things are configured correctly - yet, it's not using this cert.&lt;BR /&gt;
Any other thoughts on why not?&lt;/P&gt;</description>
      <pubDate>Wed, 30 May 2018 05:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Not-able-to-get-Correct-Cert-working-on-SH/m-p/421212#M15017</guid>
      <dc:creator>Kozanic</dc:creator>
      <dc:date>2018-05-30T05:42:18Z</dc:date>
    </item>
  </channel>
</rss>

