<?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: Why am I getting heavy forwarder error &amp;quot;TcpInputConfig - SSL server certificate not found, or password is wrong...&amp;quot;? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-heavy-forwarder-error-quot-TcpInputConfig-SSL/m-p/237632#M46155</link>
    <description>&lt;P&gt;The error "ERROR SSLCommon - Can't read key file /opt/splunk/etc/certs/cert.pem errno=151441516 error:0906D06C:PEM routines:PEM_read_bio:no start line." can be caused if you mistakenly swap the certificate path with the root CA path in the .conf file.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 20:33:19 GMT</pubDate>
    <dc:creator>jbrodsky_splunk</dc:creator>
    <dc:date>2020-09-29T20:33:19Z</dc:date>
    <item>
      <title>Why am I getting heavy forwarder error "TcpInputConfig - SSL server certificate not found, or password is wrong..."?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-heavy-forwarder-error-quot-TcpInputConfig-SSL/m-p/237629#M46152</link>
      <description>&lt;P&gt;I need to send data from a security appliance to a Splunk Heavy Forwarder on a listening port using TCP-TLS. Getting the errors below everytime in opt/splunk/var/log/splunk/splunkd.log that Splunk is started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;ERROR    SSLCommon - Can't read key file    /opt/splunk/etc/certs/cert.pem    errno=151441516 error:0906D06C:PEM    routines:PEM_read_bio:no start line.
ERROR    TcpInputConfig - SSL server    certificate not found, or password is    wrong - SSL ports will not be opened
ERROR    TcpInputConfig - SSL context not    found. Will not open raw (SSL) IPv4    port 17814
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here are the steps I followed:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Generated CSR file on my Heavy Forwarder and sent to my certificate provider to have it signed.&lt;/LI&gt;
&lt;LI&gt;Received *.cer back from my certificate provider.&lt;/LI&gt;
&lt;LI&gt;Ran following command to convert &lt;CODE&gt;*.cer&lt;/CODE&gt; into &lt;CODE&gt;*.pem&lt;/CODE&gt;:  &lt;CODE&gt;openssl x509 -inform pem -in certificate.cer -outform der -out certificate.pem&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Copied cert.pem &amp;amp; InternalRootCA.pem to /opt/splunk/etc/certs&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Here is my inputs.conf&lt;/P&gt;

&lt;P&gt;[SSL]&lt;BR /&gt;
rootCA = $SPLUNK_HOME/etc/certs/InternalRootCA.pem&lt;BR /&gt;
serverCert = $SPLUNK_HOME/etc/certs/cert.pem&lt;BR /&gt;
password = ***************&lt;BR /&gt;
requireClientCert = false&lt;BR /&gt;
[tcp-ssl://17814]&lt;BR /&gt;
sourcetype = syslog&lt;BR /&gt;
index = **&lt;BR /&gt;
Restart Splunk &amp;amp; I get errors:&lt;/P&gt;

&lt;P&gt;ERROR    SSLCommon - Can't read key file    /opt/splunk/etc/certs/cert.pem    errno=151441516 error:0906D06C:PEM    routines:PEM_read_bio:no start line.&lt;BR /&gt;
ERROR    TcpInputConfig - SSL server    certificate not found, or password is    wrong - SSL ports will not be opened&lt;BR /&gt;
ERROR    TcpInputConfig - SSL context not    found. Will not open raw (SSL) IPv4    port 17814&lt;BR /&gt;
The cert folder only includes the two files&lt;BR /&gt;
InternalRootCA.pem&lt;BR /&gt;
cert.pem&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:28:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-heavy-forwarder-error-quot-TcpInputConfig-SSL/m-p/237629#M46152</guid>
      <dc:creator>briangmadden</dc:creator>
      <dc:date>2020-09-29T08:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting heavy forwarder error "TcpInputConfig - SSL server certificate not found, or password is wrong..."?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-heavy-forwarder-error-quot-TcpInputConfig-SSL/m-p/237630#M46153</link>
      <description>&lt;P&gt;Have you checked the file permissions on those certificate files?  IE does the user Splunk runs as have permissions to read them? You can check the file contents with openssl and verify the keys etc with commands found here as well &lt;A href="https://www.sslshopper.com/article-most-common-openssl-commands.html"&gt;https://www.sslshopper.com/article-most-common-openssl-commands.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 15:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-heavy-forwarder-error-quot-TcpInputConfig-SSL/m-p/237630#M46153</guid>
      <dc:creator>jplumsdaine22</dc:creator>
      <dc:date>2016-01-20T15:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting heavy forwarder error "TcpInputConfig - SSL server certificate not found, or password is wrong..."?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-heavy-forwarder-error-quot-TcpInputConfig-SSL/m-p/237631#M46154</link>
      <description>&lt;P&gt;I modified all the directory and file permissions to make splunk the owner.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 22:17:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-heavy-forwarder-error-quot-TcpInputConfig-SSL/m-p/237631#M46154</guid>
      <dc:creator>briangmadden</dc:creator>
      <dc:date>2016-01-20T22:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting heavy forwarder error "TcpInputConfig - SSL server certificate not found, or password is wrong..."?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-heavy-forwarder-error-quot-TcpInputConfig-SSL/m-p/237632#M46155</link>
      <description>&lt;P&gt;The error "ERROR SSLCommon - Can't read key file /opt/splunk/etc/certs/cert.pem errno=151441516 error:0906D06C:PEM routines:PEM_read_bio:no start line." can be caused if you mistakenly swap the certificate path with the root CA path in the .conf file.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:33:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-heavy-forwarder-error-quot-TcpInputConfig-SSL/m-p/237632#M46155</guid>
      <dc:creator>jbrodsky_splunk</dc:creator>
      <dc:date>2020-09-29T20:33:19Z</dc:date>
    </item>
  </channel>
</rss>

