<?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: splunk installation is failing to generate cert.pem in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405406#M5445</link>
    <description>&lt;P&gt;I know this is old but while setting up a lab to do some clustering I ran into this issue after making some of the "appropriate settings". To get around this for the sake of getting the lab stood up I just removed that part of the line in the:&lt;/P&gt;

&lt;P&gt;splunk_dir/etc/system/local/web.conf (have to copy this from /default or you can hand type everything out)&lt;/P&gt;

&lt;P&gt;for the privKeyPath and serverCert, I basically removed the $SPLUNK_HOME part so that it was just&lt;/P&gt;

&lt;P&gt;etc/auth/splunkweb/privkey.pem&lt;BR /&gt;
etc/auth/splunkweb/cert.pem&lt;/P&gt;

&lt;P&gt;(running a cmaster, dserver and fwdr on one server, an indexer cluster on one server, and search heads on another)&lt;BR /&gt;
Would I do this for a single install or enterprise installation - heck no. This is only for personal labbing.&lt;/P&gt;

&lt;P&gt;In your case:&lt;BR /&gt;
File causing error and where you should fix - /home/suk/opt/splunk/etc/system/default/&lt;STRONG&gt;web.conf&lt;/STRONG&gt; &lt;BR /&gt;
copy that to &lt;BR /&gt;
/home/suk/opt/splunk/etc/system/&lt;STRONG&gt;local&lt;/STRONG&gt;/&lt;/P&gt;

&lt;P&gt;imagine in that web.conf file you have&lt;BR /&gt;
privKeyPath = &lt;STRONG&gt;$SPLUNK_HOME&lt;/STRONG&gt;/etc/auth/splunkweb/privkey.pe,&lt;BR /&gt;
serverCert = &lt;STRONG&gt;$SPLUNK_HOME&lt;/STRONG&gt;/etc/auth/splunkweb/cert.pem&lt;/P&gt;

&lt;P&gt;you would want (if you are just trying to get it to work)&lt;BR /&gt;
privKeyPath = etc/auth/splunkweb/privkey.pem&lt;BR /&gt;
serverCert = etc/auth/splunkweb/cert.pem&lt;/P&gt;

&lt;P&gt;Previous comment is right, you want to install in the /opt/splunk - for me I wanted to "mock up" the lab environment for cluster admin so... &lt;/P&gt;</description>
    <pubDate>Sat, 07 Sep 2019 06:54:10 GMT</pubDate>
    <dc:creator>fearofcasanova</dc:creator>
    <dc:date>2019-09-07T06:54:10Z</dc:date>
    <item>
      <title>Why is my splunk installation failing to generate cert.pem?</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405402#M5441</link>
      <description>&lt;P&gt;splunk installation is failing to generate cert.pem&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;./splunk start
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Splunk&amp;gt; Now with more code!&lt;/P&gt;
&lt;P&gt;Checking prerequisites...&lt;BR /&gt;Checking http port [8000]: open&lt;BR /&gt;Checking mgmt port [8089]: open&lt;BR /&gt;Checking appserver port [127.0.0.1:8065]: open&lt;BR /&gt;Checking kvstore port [8191]: open&lt;BR /&gt;Checking configuration... Done.&lt;BR /&gt;Checking critical directories... Done&lt;BR /&gt;Checking indexes...&lt;BR /&gt;Validated: _audit _internal _introspection _telemetry _thefishbucket history main summary&lt;BR /&gt;Done&lt;BR /&gt;Checking filesystem compatibility... Done&lt;BR /&gt;Checking conf files for problems...&lt;BR /&gt;Done&lt;BR /&gt;Checking default conf files for edits...&lt;BR /&gt;Validating installed files against hashes from '/home/suk/opt/splunk/splunk-7.2.1-be11b2c46e23-linux-2.6-x86_64-manifest'&lt;BR /&gt;All installed files intact.&lt;BR /&gt;Done&lt;BR /&gt;All preliminary checks passed.&lt;/P&gt;
&lt;P&gt;Starting splunk server daemon (splunkd)...&lt;BR /&gt;Generating a 2048 bit RSA private key&lt;BR /&gt;...............................................+++++&lt;BR /&gt;........+++++&lt;/P&gt;
&lt;H2&gt;writing new private key to 'privKeySecure.pem'&lt;/H2&gt;
&lt;P&gt;Signature ok&lt;BR /&gt;subject=/CN=localhost.localdomain/O=SplunkUser&lt;BR /&gt;/home/suk/opt/splunk/$SPLUNK_HOME/etc/auth/splunkweb/cert.pem: No such file or directory&lt;BR /&gt;Command failed (ret=1), exiting.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:31:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405402#M5441</guid>
      <dc:creator>sukeerthij</dc:creator>
      <dc:date>2022-10-20T14:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: splunk installation is failing to generate cert.pem</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405403#M5442</link>
      <description>&lt;P&gt;HI&lt;/P&gt;

&lt;P&gt;Is it owned by the same user/group as the splunkd process? Have you used "chown -R" for your splunk home to be sure?&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 14:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405403#M5442</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2018-11-28T14:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: splunk installation is failing to generate cert.pem</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405404#M5443</link>
      <description>&lt;P&gt;Any luck with that?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 09:37:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405404#M5443</guid>
      <dc:creator>dkeck</dc:creator>
      <dc:date>2018-12-06T09:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: splunk installation is failing to generate cert.pem</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405405#M5444</link>
      <description>&lt;P&gt;Hey, &lt;/P&gt;

&lt;P&gt;do you execute everything in context of user &lt;CODE&gt;suk&lt;/CODE&gt;?  Usually you have a seperate user and you kind of want to install splunk in &lt;CODE&gt;/opt/splunk&lt;/CODE&gt;. To do this automagically (and also set &lt;CODE&gt;SPLUNK_HOME&lt;/CODE&gt;) you can install splunk using your package manager (DEB/RPM):&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.2.1/SearchTutorial/InstallSplunk#Install_the_Splunk_Enterprise_RPM"&gt;http://docs.splunk.com/Documentation/Splunk/7.2.1/SearchTutorial/InstallSplunk#Install_the_Splunk_Enterprise_RPM&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;To your problem: This directory seems broken:&lt;BR /&gt;
&lt;CODE&gt;/home/suk/opt/splunk/$SPLUNK_HOME/etc/auth/splunkweb/&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;It should be: &lt;CODE&gt;$SPLUNK_HOME/etc/auth/splunkweb/&lt;/CODE&gt; with &lt;CODE&gt;$SPLUNK_HOME&lt;/CODE&gt; being set.&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;/home/suk/opt/splunk/etc/auth/splunkweb/&lt;/CODE&gt; as absolute path.&lt;/P&gt;

&lt;P&gt;What does &lt;CODE&gt;echo "$SPLUNK_HOME"&lt;/CODE&gt;print?&lt;/P&gt;

&lt;P&gt;Cheerz,&lt;BR /&gt;
Björn&lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2018 10:53:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405405#M5444</guid>
      <dc:creator>bjoernjensen</dc:creator>
      <dc:date>2018-12-06T10:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: splunk installation is failing to generate cert.pem</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405406#M5445</link>
      <description>&lt;P&gt;I know this is old but while setting up a lab to do some clustering I ran into this issue after making some of the "appropriate settings". To get around this for the sake of getting the lab stood up I just removed that part of the line in the:&lt;/P&gt;

&lt;P&gt;splunk_dir/etc/system/local/web.conf (have to copy this from /default or you can hand type everything out)&lt;/P&gt;

&lt;P&gt;for the privKeyPath and serverCert, I basically removed the $SPLUNK_HOME part so that it was just&lt;/P&gt;

&lt;P&gt;etc/auth/splunkweb/privkey.pem&lt;BR /&gt;
etc/auth/splunkweb/cert.pem&lt;/P&gt;

&lt;P&gt;(running a cmaster, dserver and fwdr on one server, an indexer cluster on one server, and search heads on another)&lt;BR /&gt;
Would I do this for a single install or enterprise installation - heck no. This is only for personal labbing.&lt;/P&gt;

&lt;P&gt;In your case:&lt;BR /&gt;
File causing error and where you should fix - /home/suk/opt/splunk/etc/system/default/&lt;STRONG&gt;web.conf&lt;/STRONG&gt; &lt;BR /&gt;
copy that to &lt;BR /&gt;
/home/suk/opt/splunk/etc/system/&lt;STRONG&gt;local&lt;/STRONG&gt;/&lt;/P&gt;

&lt;P&gt;imagine in that web.conf file you have&lt;BR /&gt;
privKeyPath = &lt;STRONG&gt;$SPLUNK_HOME&lt;/STRONG&gt;/etc/auth/splunkweb/privkey.pe,&lt;BR /&gt;
serverCert = &lt;STRONG&gt;$SPLUNK_HOME&lt;/STRONG&gt;/etc/auth/splunkweb/cert.pem&lt;/P&gt;

&lt;P&gt;you would want (if you are just trying to get it to work)&lt;BR /&gt;
privKeyPath = etc/auth/splunkweb/privkey.pem&lt;BR /&gt;
serverCert = etc/auth/splunkweb/cert.pem&lt;/P&gt;

&lt;P&gt;Previous comment is right, you want to install in the /opt/splunk - for me I wanted to "mock up" the lab environment for cluster admin so... &lt;/P&gt;</description>
      <pubDate>Sat, 07 Sep 2019 06:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/405406#M5445</guid>
      <dc:creator>fearofcasanova</dc:creator>
      <dc:date>2019-09-07T06:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: splunk installation is failing to generate cert.pem</title>
      <link>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/617854#M12017</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203384"&gt;@fearofcasanova&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the answer, this worked like a charm and now my splunkweb is up and running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:24:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Why-is-my-splunk-installation-failing-to-generate-cert-pem/m-p/617854#M12017</guid>
      <dc:creator>im_bharath</dc:creator>
      <dc:date>2022-10-20T14:24:38Z</dc:date>
    </item>
  </channel>
</rss>

