<?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 Changing default certificate in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292498#M8949</link>
    <description>&lt;P&gt;I am trying to get my own CA cert for my instance of Splunk web.&lt;BR /&gt;
I followed this:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Security/Getthird-partycertificatesforSplunkWeb"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Security/Getthird-partycertificatesforSplunkWeb&lt;/A&gt;&lt;BR /&gt;
this gives me 4 files in my home dir.&lt;BR /&gt;
pk.pem    : private key,&lt;BR /&gt;
mycert.pem :   My cert as given by CA&lt;BR /&gt;
chain.pem     : CA Root + intermediary&lt;BR /&gt;
fullchain.pem:        I made it as mycert.pem  + chain.pem&lt;/P&gt;

&lt;P&gt;I verify with openssl than chain.pem and mycert.pen returns ok.&lt;/P&gt;

&lt;P&gt;then i went to &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Security/SecureSplunkWebusingasignedcertificate"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Security/SecureSplunkWebusingasignedcertificate&lt;/A&gt;&lt;BR /&gt;
"mySplunkWebCertificate.pem" it does not say if that's just mycert or the fullchain.&lt;BR /&gt;
which one should it be?&lt;BR /&gt;
why are we asked to copy these files in auth/splunkweb while web.conf does not use them?&lt;BR /&gt;
my web.conf looks like this:&lt;BR /&gt;
[settings]&lt;BR /&gt;
enableSplunkWebSSL = 1&lt;BR /&gt;
httpport = 443&lt;BR /&gt;
privKeyPath = [/home/foo/certs/pk.pem]&lt;BR /&gt;
serverCert = [/home/foo/certs/fullchain.pem]&lt;/P&gt;

&lt;P&gt;(read [ ] as &amp;lt;&amp;gt; )&lt;BR /&gt;
when I restart splunk it stays stuck on &lt;BR /&gt;
Waiting for web server at &lt;A href="https://127.0.0.1:443"&gt;https://127.0.0.1:443&lt;/A&gt;  to be available.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2017 15:29:28 GMT</pubDate>
    <dc:creator>pdevosceazure</dc:creator>
    <dc:date>2017-02-09T15:29:28Z</dc:date>
    <item>
      <title>Changing default certificate</title>
      <link>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292498#M8949</link>
      <description>&lt;P&gt;I am trying to get my own CA cert for my instance of Splunk web.&lt;BR /&gt;
I followed this:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Security/Getthird-partycertificatesforSplunkWeb"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Security/Getthird-partycertificatesforSplunkWeb&lt;/A&gt;&lt;BR /&gt;
this gives me 4 files in my home dir.&lt;BR /&gt;
pk.pem    : private key,&lt;BR /&gt;
mycert.pem :   My cert as given by CA&lt;BR /&gt;
chain.pem     : CA Root + intermediary&lt;BR /&gt;
fullchain.pem:        I made it as mycert.pem  + chain.pem&lt;/P&gt;

&lt;P&gt;I verify with openssl than chain.pem and mycert.pen returns ok.&lt;/P&gt;

&lt;P&gt;then i went to &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.2/Security/SecureSplunkWebusingasignedcertificate"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.2/Security/SecureSplunkWebusingasignedcertificate&lt;/A&gt;&lt;BR /&gt;
"mySplunkWebCertificate.pem" it does not say if that's just mycert or the fullchain.&lt;BR /&gt;
which one should it be?&lt;BR /&gt;
why are we asked to copy these files in auth/splunkweb while web.conf does not use them?&lt;BR /&gt;
my web.conf looks like this:&lt;BR /&gt;
[settings]&lt;BR /&gt;
enableSplunkWebSSL = 1&lt;BR /&gt;
httpport = 443&lt;BR /&gt;
privKeyPath = [/home/foo/certs/pk.pem]&lt;BR /&gt;
serverCert = [/home/foo/certs/fullchain.pem]&lt;/P&gt;

&lt;P&gt;(read [ ] as &amp;lt;&amp;gt; )&lt;BR /&gt;
when I restart splunk it stays stuck on &lt;BR /&gt;
Waiting for web server at &lt;A href="https://127.0.0.1:443"&gt;https://127.0.0.1:443&lt;/A&gt;  to be available.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 15:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292498#M8949</guid>
      <dc:creator>pdevosceazure</dc:creator>
      <dc:date>2017-02-09T15:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changing default certificate</title>
      <link>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292499#M8950</link>
      <description>&lt;P&gt;Are you configuring this on 6.5 or later? The  attributes for earlier versions are slightly different, so if you are by any chance working in an earlier version, the attributes above will not work.&lt;/P&gt;

&lt;P&gt;For serverCert, I would change the value to your mycert.pem file.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 21:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292499#M8950</guid>
      <dc:creator>jworthington_sp</dc:creator>
      <dc:date>2017-02-09T21:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing default certificate</title>
      <link>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292500#M8951</link>
      <description>&lt;P&gt;Yes I am on 6.5 but if I use mycert how does splunk know where the chain certificates are?&lt;BR /&gt;
actually i tried all of them none work&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 21:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292500#M8951</guid>
      <dc:creator>pdevosceazure</dc:creator>
      <dc:date>2017-02-09T21:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing default certificate</title>
      <link>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292501#M8952</link>
      <description>&lt;P&gt;Doh, I'm sorry, you are right. For CA-signed certificates you do need the chain. They need to be in the following order:&lt;/P&gt;

&lt;P&gt;[ server certificate]&lt;BR /&gt;
[ intermediate certificate]&lt;BR /&gt;
[ root certificate (if required) ]&lt;/P&gt;

&lt;P&gt;so maybe the issue is the order in the chain?&lt;/P&gt;

&lt;P&gt;I am thinking that if you have &lt;BR /&gt;
"chain.pem : CA Root + intermediary&lt;BR /&gt;
fullchain.pem: I made it as mycert.pem + chain.pem"&lt;/P&gt;

&lt;P&gt;Then I think this should give you an end result of &lt;BR /&gt;
[ server certificate]&lt;BR /&gt;
[ root certificate (if required) ]&lt;BR /&gt;
[ intermediate certificate]&lt;/P&gt;

&lt;P&gt;So you might try troubleshooting by changing that order to the first example see if it helps. It seems odd that your certs would check out okay but not work, but SplunkWeb cert configs can be surprisingly touchy. (Oh, and also make sure you are using the version of OpenSSL provided with Splunk!)&lt;/P&gt;

&lt;P&gt;Hope this is a little more helpful.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
jen&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 21:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292501#M8952</guid>
      <dc:creator>jworthington_sp</dc:creator>
      <dc:date>2017-02-09T21:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changing default certificate</title>
      <link>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292502#M8953</link>
      <description>&lt;P&gt;Could not get it working. However replacing cert.pem and privkey.pem directly in /opt/splunk/etc/auth/splunkweb with my fullchain.pem and my private key, renamed as original work OK.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Feb 2017 21:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Changing-default-certificate/m-p/292502#M8953</guid>
      <dc:creator>pdevosceazure</dc:creator>
      <dc:date>2017-02-12T21:13:18Z</dc:date>
    </item>
  </channel>
</rss>

