<?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: How to get tcp-ssl input for Splunk 6.0 to work in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124733#M25689</link>
    <description>&lt;P&gt;SSL still not work, but found ERRORs in /opt/splunk/var/log/splunk/splunkd.log&lt;/P&gt;

&lt;P&gt;splunkd.log: ERROR SSLCommon - Can't read CA list&lt;BR /&gt;
splunkd.log: ERROR TcpInputConfig - SSL server certificate not found, or password is wrong - SSL ports will not be opened&lt;BR /&gt;
splunkd.log: ERROR TcpInputConfig - SSL context not found. Will not open raw (SSL) IPv4 port 6514&lt;/P&gt;

&lt;P&gt;It seems that I used the plaintext like "abc123" for password, and changed to like "$1$jC3aVtsP5w==" after startup&lt;BR /&gt;
Maybe that's the cause of the TCP-SSL problem.&lt;/P&gt;

&lt;P&gt;[SSL]&lt;BR /&gt;
serverCert = /root/cert.pem&lt;BR /&gt;
rootCA = /root/ca.pem&lt;BR /&gt;
password = $1$jC3aVtsP5w==&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2014 22:19:58 GMT</pubDate>
    <dc:creator>ricktao</dc:creator>
    <dc:date>2014-04-09T22:19:58Z</dc:date>
    <item>
      <title>How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124731#M25687</link>
      <description>&lt;P&gt;I have installed Splunk 6.0 (Free version) on Linux x64 system.&lt;BR /&gt;
I can collect syslog inputs on UDP port 514. But I tried to add "tcp-ssl", it didn't work.&lt;BR /&gt;
Here are my contents in /opt/splunk/etc/apps/launcher/local/inputs.conf file:&lt;/P&gt;

&lt;P&gt;[udp://514]&lt;BR /&gt;
connection_host = ip&lt;BR /&gt;
source = SyslogTest&lt;BR /&gt;
sourcetype = syslog&lt;/P&gt;

&lt;P&gt;[tcp-ssl:10514]&lt;BR /&gt;
source = SyslogSslTest&lt;BR /&gt;
sourcetype = syslog&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;[SSL]&lt;BR /&gt;
serverCert = /root/splunk/cert.pem&lt;BR /&gt;
rootCA = /root/splunk/ca.pem&lt;BR /&gt;
password = $1$jC3aVtsP5w==&lt;/P&gt;

&lt;P&gt;I did "/opt/splunk/bin/splunk btool check --debug", I didn't see anything wrong.&lt;BR /&gt;
I did "/opt/splunk/bin/splunk start" to run "OK". Even the web interface shown tcp inputs.&lt;BR /&gt;
But if I did "netstat -a | grep 514", I didn't see any my SSL port 10514 open.&lt;/P&gt;

&lt;P&gt;Please advice any tips to run "syslog over ssl/tls" or debug the problem. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2014 19:01:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124731#M25687</guid>
      <dc:creator>ricktao</dc:creator>
      <dc:date>2014-04-08T19:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124732#M25688</link>
      <description>&lt;P&gt;Something probably didn't get picked up if the netstat didn't produce anything.   I would try enabling the same stanza with standard TCP to ensure functionality, then convert it to SSL.  Here is a thread on the topic also in answers:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/51707/how-to-configure-my-splunk-app-to-get-data-over-ssl" target="test_blank"&gt;http://answers.splunk.com/answers/51707/how-to-configure-my-splunk-app-to-get-data-over-ssl&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/48955/tlsssl-syslog-splunk-support" target="test_blank"&gt;http://answers.splunk.com/answers/48955/tlsssl-syslog-splunk-support&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 16:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124732#M25688</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2014-04-09T16:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124733#M25689</link>
      <description>&lt;P&gt;SSL still not work, but found ERRORs in /opt/splunk/var/log/splunk/splunkd.log&lt;/P&gt;

&lt;P&gt;splunkd.log: ERROR SSLCommon - Can't read CA list&lt;BR /&gt;
splunkd.log: ERROR TcpInputConfig - SSL server certificate not found, or password is wrong - SSL ports will not be opened&lt;BR /&gt;
splunkd.log: ERROR TcpInputConfig - SSL context not found. Will not open raw (SSL) IPv4 port 6514&lt;/P&gt;

&lt;P&gt;It seems that I used the plaintext like "abc123" for password, and changed to like "$1$jC3aVtsP5w==" after startup&lt;BR /&gt;
Maybe that's the cause of the TCP-SSL problem.&lt;/P&gt;

&lt;P&gt;[SSL]&lt;BR /&gt;
serverCert = /root/cert.pem&lt;BR /&gt;
rootCA = /root/ca.pem&lt;BR /&gt;
password = $1$jC3aVtsP5w==&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 22:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124733#M25689</guid>
      <dc:creator>ricktao</dc:creator>
      <dc:date>2014-04-09T22:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124734#M25690</link>
      <description>&lt;P&gt;I followed the following URL to create the cert, not sure where it get wrong:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Security/Howtoself-signcertificates"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Security/Howtoself-signcertificates&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 22:22:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124734#M25690</guid>
      <dc:creator>ricktao</dc:creator>
      <dc:date>2014-04-09T22:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124735#M25691</link>
      <description>&lt;P&gt;Now I finally found the answer in the following website:&lt;/P&gt;

&lt;P&gt;Use the Splunk provided tools to generate CA, and Server Certificates.&lt;/P&gt;

&lt;P&gt;AND you have use $SPLUNK_HOME instead of /opt/splunk/..&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/answers/7164/how-do-i-set-up-ssl-forwarding-with-new-self-signed-certificates-and-authentication"&gt;http://answers.splunk.com/answers/7164/how-do-i-set-up-ssl-forwarding-with-new-self-signed-certificates-and-authentication&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 23:15:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124735#M25691</guid>
      <dc:creator>ricktao</dc:creator>
      <dc:date>2014-04-09T23:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124736#M25692</link>
      <description>&lt;P&gt;After checking splunkd.log and a little troubleshooting, I was able to get the tcp-ssl port to listen and receive ssl encrypted traffic from a third party device.  I used the following steps:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Generate certs:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mkdir /opt/splunk/etc/certs
export OPENSSL_CONF=/opt/splunk/openssl/openssl.cnf
/opt/splunk/bin/genRootCA.sh -d /opt/splunk/etc/certs

/opt/splunk/bin/genSignedServerCert.sh -d /opt/splunk/etc/certs -n splunk -c splunk -p
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;**Note:  It will ask you to enter a password&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;In inputs.conf, I used the following:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcp-ssl://6514]
Sourcetype = &amp;lt;your source type here&amp;gt;

[SSL]
rootCA = $SPLUNK_HOME/etc/certs/cacert.pem
serverCERT = $SPLUNK_HOME/etc/certs/splunk.pem
password = &amp;lt;The password that was used in the genSignedServerCert&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You may want to use netstat -an | grep :6514 to make sure the port is listening after a restart.  If not, check /opt/splunk/var/log/splunkd/splunkd.log again for errors.  Hope that helps!&lt;/P&gt;</description>
      <pubDate>Sat, 20 Aug 2016 20:42:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124736#M25692</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2016-08-20T20:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124737#M25693</link>
      <description>&lt;P&gt;Note:  Splunk seems to have deprecated the password parameter.  It is now:  sslPassword.&lt;/P&gt;

&lt;P&gt;Also note:  You may need to replace $SPLUNK_HOME with /opt/splunk or whatever your path may be...&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Pro-tips:&lt;/STRONG&gt;&lt;BR /&gt;
 - Check the port status with netstat -an | grep :6514  (following our above example)&lt;BR /&gt;
 - You may also want to use this command for troubleshooting:  /opt/splunk/bin/splunk btool check --debug&lt;BR /&gt;
 - If you are still having issues with the port opening, try to retype the sslPassword and save the file.  If you mistype the password, this will not work.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2017 02:16:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124737#M25693</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2017-06-10T02:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124738#M25694</link>
      <description>&lt;P&gt;Wow... what should be a simple feat is really a moving target.  It appears the process has been changed again in Splunk 6.5.0+&lt;/P&gt;

&lt;P&gt;Here is what you need to do now:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Generate certs:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; mkdir /opt/splunk/etc/certs
 export OPENSSL_CONF=/opt/splunk/openssl/openssl.cnf
 /opt/splunk/bin/genRootCA.sh -d /opt/splunk/etc/certs

 /opt/splunk/bin/genSignedServerCert.sh -d /opt/splunk/etc/certs -n splunk -c splunk -p
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;$SPLUNK_HOME/etc/apps//local/inputs.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcp-ssl://6514]
disabled = false
sourcetype = &amp;lt;optional&amp;gt;
index = &amp;lt;optional&amp;gt;
source = &amp;lt;optional&amp;gt;

[SSL]
serverCert = /opt/splunk/etc/certs/splunk.pem
sslPassword = &amp;lt;The password that was used in the genSignedServerCert&amp;gt;
requireClientCert = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;$SPLUNK_HOME/etc/system/local/server.conf:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sslConfig]
sslRootCAPath = /opt/splunk/etc/certs/cacert.pem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Restart Splunk:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/bin/splunk restart splunkd
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Verify the port is open:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;netstat -an | grep :6514
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 22 Jun 2017 19:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124738#M25694</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2017-06-22T19:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124739#M25695</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Here is how to do this in Windows:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;NOTE:  sslRootCAPath is ignored in Windows.  Instead use: caCertFile   (Thank you Splunk support....)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Create the certs:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;mkdir c:\progra~1\Splunk\etc\certs
C:\progra~1\Splunk\bin\splunk.exe cmd cmd.exe /c c:\progra~1\Splunk\bin\genRootCA.bat -d c:\progra~1\Splunk\etc\certs
C:\progra~1\Splunk\bin\splunk.exe cmd python c:\progra~1\Splunk\bin\genSignedServerCert.py -d c:\progra~1\Splunk\etc\certs -n splunk -c splunk -p
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Add the following to:  c:\Program Files\Splunk\etc\system\local\server.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[sslConfig]
caCertFile = c:\progra~1\Splunk\etc\certs\cacert.pem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Add the following to:  c:\Program Files\Splunk\etc\apps\your_app_here\local\inputs.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcp-ssl://6514]
disabled = false
sourcetype = &amp;lt;optional&amp;gt;
index = &amp;lt;optional&amp;gt;
source = &amp;lt;optional&amp;gt;

[SSL]
sslPassword = &amp;lt;The password that was used in the genSignedServerCert&amp;gt;
requireClientCert = false
serverCert = c:\progra~1\Splunk\etc\certs\splunk.pem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Restart Splunk:&lt;/STRONG&gt;&lt;BR /&gt;
c:\progra~1\Splunk\bin\splunk.exe restart&lt;/P&gt;

&lt;P&gt;Now verify the port is open using:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;netstat -an | findstr :6514
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:47:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124739#M25695</guid>
      <dc:creator>TonyLeeVT</dc:creator>
      <dc:date>2020-09-29T16:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get tcp-ssl input for Splunk 6.0 to work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124740#M25696</link>
      <description>&lt;P&gt;This worked flawlessly for me in 7.3.1! Thanks for posting. I did see this while going through the process:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;C:\Windows\system32&amp;gt;C:\progra~1\Splunk\bin\splunk.exe cmd python c:\progra~1\Splunk\bin\genSignedServerCert.py -d c:\progra~1\Splunk\etc\certs -n splunk -c splunk -p
**NOTE: This script is deprecated.  Instead, use "splunk createssl server-cert"**
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Does anyone know if the commands are the same for "splunk createssl server-cert"?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 13:58:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-tcp-ssl-input-for-Splunk-6-0-to-work/m-p/124740#M25696</guid>
      <dc:creator>aornitops</dc:creator>
      <dc:date>2019-10-16T13:58:13Z</dc:date>
    </item>
  </channel>
</rss>

