<?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 Forwarder to Indexer secure communication using self signed certs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-to-Indexer-secure-communication-using-self-signed/m-p/559077#M92488</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to get secure comms between a Forwarder and Indexer up and running using self signed certs but depite following the relevant guides (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Security/Howtoself-signcertificates" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Security/Howtoself-signcertificates&lt;/A&gt;) I keep ending up with the same problem.&lt;/P&gt;
&lt;P&gt;I'm generating the self signed cert on a deployment server, creating the RootCA cert, servercert and serverprivate key before transferring them to the Indexer and Forwarder. Once on these I'm creating a newserver cert by combining the 3 files.&lt;/P&gt;
&lt;P&gt;I've also created the relevant inputs.conf, outputs.conf and server.conf files using the config guide. It does say to use "password = &amp;lt;string&amp;gt;" in both inputs and outputs conf files but this kicks up an error as it is deprecated so I've used "sslPassword" instead.&lt;/P&gt;
&lt;P&gt;After restarting splunkd in the splunkd log on the Indexer I'm getting:&lt;/P&gt;
&lt;P&gt;ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50772. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;/P&gt;
&lt;P&gt;I've tried searching for the error and trying various other fixes e.g specifying sslVersions or cipherSuite but I'm still getting the above error.&lt;/P&gt;
&lt;P&gt;Could any one offer some help as to where I may be going wrong please?&lt;/P&gt;
&lt;P&gt;I've copied the conf files and some outputs from the splund.logs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forwarder outputs.conf&lt;/P&gt;
&lt;P&gt;[tcpout:group1]&lt;/P&gt;
&lt;P&gt;server = 10.1.1.20:9997&lt;/P&gt;
&lt;P&gt;disabled = 0&lt;/P&gt;
&lt;P&gt;clientCert = /opt/splunk/etc/auth/mycerts/myNewServerCertificate.pem&lt;BR /&gt;sslPassword = &amp;lt;key used to generate myServerPrivateKey.key&amp;gt;&lt;/P&gt;
&lt;P&gt;useClientSSLCompression = true&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forwarder server.conf&lt;/P&gt;
&lt;P&gt;[sslConfig]&lt;BR /&gt;sslRootCAPath = /opt/splunk/etc/auth/mycerts/myCACertificate.pem&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forwarder splunkd log&lt;/P&gt;
&lt;P&gt;cat /opt/splunk/var/log/splunk/splunkd.log | grep SSL&lt;BR /&gt;07-08-2021 10:19:22.919 +0100 INFO loader - Setting SSL configuration.&lt;BR /&gt;07-08-2021 10:19:22.919 +0100 INFO loader - Server supporting SSL versions SSL3,TLS1.0,TLS1.1,TLS1.2&lt;BR /&gt;07-08-2021 10:19:46.393 +0100 INFO MongodRunner - Using mongod command line --sslMode requireSSL&lt;BR /&gt;07-08-2021 10:19:47.957 +0100 INFO TcpInputProc - Creating fwd data Acceptor for IPv4 port 9997 with Non-SSL&lt;/P&gt;
&lt;P&gt;cat /opt/splunk/var/log/splunk/splunkd.log | grep TcpOut&lt;BR /&gt;07-08-2021 10:43:42.172 +0100 INFO TcpOutputProc - Found currently active indexer. Connected to idx=10.1.1.20:9997, reuse=1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indexer inputs.conf&lt;/P&gt;
&lt;P&gt;[splunktcp-ssl:9997]&lt;BR /&gt;disabled = 0&lt;/P&gt;
&lt;P&gt;[SSL]&lt;BR /&gt;serverCert = /opt/splunk/etc/auth/mycerts/myNewServerCertificate.pem&lt;/P&gt;
&lt;P&gt;sslPassword = &amp;lt;key used to generate myServerPrivateKey.key&amp;gt;&lt;/P&gt;
&lt;P&gt;requireClientCert = false&lt;/P&gt;
&lt;P&gt;useSSLCompression = false&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indexer server.conf&lt;/P&gt;
&lt;P&gt;[sslConfig]&lt;BR /&gt;sslPassword = $7$YNwWFOGvWECUWkppnTLseT5sGq3wJs72wGEjlZuHDphTK3Jty2nhPQ==&lt;/P&gt;
&lt;P&gt;sslRootCAPath = /opt/splunk/etc/auth/mycerts/myCACertificate.pem&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indexer splunkd.log&lt;/P&gt;
&lt;P&gt;cat /opt/splunk/var/log/splunk/splunkd.log | grep SSL&lt;BR /&gt;07-08-2021 10:29:02.382 +0100 INFO ServerConfig - SSL session cache path enabled 0 session timeout on SSL server 300.000&lt;BR /&gt;07-08-2021 10:29:02.520 +0100 INFO loader - Setting SSL configuration.&lt;BR /&gt;07-08-2021 10:29:02.520 +0100 INFO loader - Server supporting SSL versions SSL3,TLS1.0,TLS1.1,TLS1.2&lt;BR /&gt;07-08-2021 10:29:03.093 +0100 INFO MongodRunner - Using mongod command line --sslMode requireSSL&lt;BR /&gt;07-08-2021 10:29:04.886 +0100 INFO TcpInputConfig - Creating FwdDataSSLConfig SSL context. Will open port=IPv4 port 9997 with compression=1&lt;BR /&gt;07-08-2021 10:29:04.914 +0100 INFO TcpInputConfig - IPv4 port 9997 is reserved for splunk 2 splunk (SSL)&lt;BR /&gt;07-08-2021 10:29:04.915 +0100 INFO TcpInputProc - Creating fwd data Acceptor for IPv4 port 9997 with SSL&lt;BR /&gt;07-08-2021 10:32:14.117 +0100 ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50770. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;BR /&gt;07-08-2021 10:32:14.118 +0100 ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50772. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;cat /opt/splunk/var/log/splunk/splunkd.log | grep Tcp&lt;BR /&gt;07-08-2021 10:29:04.885 +0100 INFO TcpInputConfig - IPv4 port 9997 is reserved for splunk 2 splunk&lt;BR /&gt;07-08-2021 10:29:04.886 +0100 INFO TcpInputConfig - Creating FwdDataSSLConfig SSL context. Will open port=IPv4 port 9997 with compression=1&lt;BR /&gt;07-08-2021 10:29:04.914 +0100 INFO TcpInputConfig - IPv4 port 9997 is reserved for splunk 2 splunk (SSL)&lt;BR /&gt;07-08-2021 10:29:04.915 +0100 INFO TcpInputProc - Creating fwd data Acceptor for IPv4 port 9997 with SSL&lt;BR /&gt;07-08-2021 10:29:05.308 +0100 INFO TcpOutputProc - _isHttpOutConfigured=NOT_CONFIGURED&lt;BR /&gt;07-08-2021 10:32:14.117 +0100 ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50770. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;BR /&gt;07-08-2021 10:32:14.118 +0100 ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50772. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 14:11:13 GMT</pubDate>
    <dc:creator>newportknight</dc:creator>
    <dc:date>2023-03-28T14:11:13Z</dc:date>
    <item>
      <title>Forwarder to Indexer secure communication using self signed certs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-to-Indexer-secure-communication-using-self-signed/m-p/559077#M92488</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to get secure comms between a Forwarder and Indexer up and running using self signed certs but depite following the relevant guides (&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/Security/Howtoself-signcertificates" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/Security/Howtoself-signcertificates&lt;/A&gt;) I keep ending up with the same problem.&lt;/P&gt;
&lt;P&gt;I'm generating the self signed cert on a deployment server, creating the RootCA cert, servercert and serverprivate key before transferring them to the Indexer and Forwarder. Once on these I'm creating a newserver cert by combining the 3 files.&lt;/P&gt;
&lt;P&gt;I've also created the relevant inputs.conf, outputs.conf and server.conf files using the config guide. It does say to use "password = &amp;lt;string&amp;gt;" in both inputs and outputs conf files but this kicks up an error as it is deprecated so I've used "sslPassword" instead.&lt;/P&gt;
&lt;P&gt;After restarting splunkd in the splunkd log on the Indexer I'm getting:&lt;/P&gt;
&lt;P&gt;ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50772. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;/P&gt;
&lt;P&gt;I've tried searching for the error and trying various other fixes e.g specifying sslVersions or cipherSuite but I'm still getting the above error.&lt;/P&gt;
&lt;P&gt;Could any one offer some help as to where I may be going wrong please?&lt;/P&gt;
&lt;P&gt;I've copied the conf files and some outputs from the splund.logs.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forwarder outputs.conf&lt;/P&gt;
&lt;P&gt;[tcpout:group1]&lt;/P&gt;
&lt;P&gt;server = 10.1.1.20:9997&lt;/P&gt;
&lt;P&gt;disabled = 0&lt;/P&gt;
&lt;P&gt;clientCert = /opt/splunk/etc/auth/mycerts/myNewServerCertificate.pem&lt;BR /&gt;sslPassword = &amp;lt;key used to generate myServerPrivateKey.key&amp;gt;&lt;/P&gt;
&lt;P&gt;useClientSSLCompression = true&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forwarder server.conf&lt;/P&gt;
&lt;P&gt;[sslConfig]&lt;BR /&gt;sslRootCAPath = /opt/splunk/etc/auth/mycerts/myCACertificate.pem&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Forwarder splunkd log&lt;/P&gt;
&lt;P&gt;cat /opt/splunk/var/log/splunk/splunkd.log | grep SSL&lt;BR /&gt;07-08-2021 10:19:22.919 +0100 INFO loader - Setting SSL configuration.&lt;BR /&gt;07-08-2021 10:19:22.919 +0100 INFO loader - Server supporting SSL versions SSL3,TLS1.0,TLS1.1,TLS1.2&lt;BR /&gt;07-08-2021 10:19:46.393 +0100 INFO MongodRunner - Using mongod command line --sslMode requireSSL&lt;BR /&gt;07-08-2021 10:19:47.957 +0100 INFO TcpInputProc - Creating fwd data Acceptor for IPv4 port 9997 with Non-SSL&lt;/P&gt;
&lt;P&gt;cat /opt/splunk/var/log/splunk/splunkd.log | grep TcpOut&lt;BR /&gt;07-08-2021 10:43:42.172 +0100 INFO TcpOutputProc - Found currently active indexer. Connected to idx=10.1.1.20:9997, reuse=1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indexer inputs.conf&lt;/P&gt;
&lt;P&gt;[splunktcp-ssl:9997]&lt;BR /&gt;disabled = 0&lt;/P&gt;
&lt;P&gt;[SSL]&lt;BR /&gt;serverCert = /opt/splunk/etc/auth/mycerts/myNewServerCertificate.pem&lt;/P&gt;
&lt;P&gt;sslPassword = &amp;lt;key used to generate myServerPrivateKey.key&amp;gt;&lt;/P&gt;
&lt;P&gt;requireClientCert = false&lt;/P&gt;
&lt;P&gt;useSSLCompression = false&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indexer server.conf&lt;/P&gt;
&lt;P&gt;[sslConfig]&lt;BR /&gt;sslPassword = $7$YNwWFOGvWECUWkppnTLseT5sGq3wJs72wGEjlZuHDphTK3Jty2nhPQ==&lt;/P&gt;
&lt;P&gt;sslRootCAPath = /opt/splunk/etc/auth/mycerts/myCACertificate.pem&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indexer splunkd.log&lt;/P&gt;
&lt;P&gt;cat /opt/splunk/var/log/splunk/splunkd.log | grep SSL&lt;BR /&gt;07-08-2021 10:29:02.382 +0100 INFO ServerConfig - SSL session cache path enabled 0 session timeout on SSL server 300.000&lt;BR /&gt;07-08-2021 10:29:02.520 +0100 INFO loader - Setting SSL configuration.&lt;BR /&gt;07-08-2021 10:29:02.520 +0100 INFO loader - Server supporting SSL versions SSL3,TLS1.0,TLS1.1,TLS1.2&lt;BR /&gt;07-08-2021 10:29:03.093 +0100 INFO MongodRunner - Using mongod command line --sslMode requireSSL&lt;BR /&gt;07-08-2021 10:29:04.886 +0100 INFO TcpInputConfig - Creating FwdDataSSLConfig SSL context. Will open port=IPv4 port 9997 with compression=1&lt;BR /&gt;07-08-2021 10:29:04.914 +0100 INFO TcpInputConfig - IPv4 port 9997 is reserved for splunk 2 splunk (SSL)&lt;BR /&gt;07-08-2021 10:29:04.915 +0100 INFO TcpInputProc - Creating fwd data Acceptor for IPv4 port 9997 with SSL&lt;BR /&gt;07-08-2021 10:32:14.117 +0100 ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50770. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;BR /&gt;07-08-2021 10:32:14.118 +0100 ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50772. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;cat /opt/splunk/var/log/splunk/splunkd.log | grep Tcp&lt;BR /&gt;07-08-2021 10:29:04.885 +0100 INFO TcpInputConfig - IPv4 port 9997 is reserved for splunk 2 splunk&lt;BR /&gt;07-08-2021 10:29:04.886 +0100 INFO TcpInputConfig - Creating FwdDataSSLConfig SSL context. Will open port=IPv4 port 9997 with compression=1&lt;BR /&gt;07-08-2021 10:29:04.914 +0100 INFO TcpInputConfig - IPv4 port 9997 is reserved for splunk 2 splunk (SSL)&lt;BR /&gt;07-08-2021 10:29:04.915 +0100 INFO TcpInputProc - Creating fwd data Acceptor for IPv4 port 9997 with SSL&lt;BR /&gt;07-08-2021 10:29:05.308 +0100 INFO TcpOutputProc - _isHttpOutConfigured=NOT_CONFIGURED&lt;BR /&gt;07-08-2021 10:32:14.117 +0100 ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50770. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;BR /&gt;07-08-2021 10:32:14.118 +0100 ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50772. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 14:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-to-Indexer-secure-communication-using-self-signed/m-p/559077#M92488</guid>
      <dc:creator>newportknight</dc:creator>
      <dc:date>2023-03-28T14:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder to Indexer secure communication using self signed certs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-to-Indexer-secure-communication-using-self-signed/m-p/636313#M108836</link>
      <description>&lt;P&gt;TLDR: I was missing&lt;BR /&gt;1. outputs.conf on the sender (client)&lt;BR /&gt;useSSL = true&lt;BR /&gt;&lt;BR /&gt;Thank you to &lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/3686" target="_self"&gt;michael_bates_1&lt;/A&gt; , in thread &lt;A href="https://community.splunk.com/t5/Getting-Data-In/Why-am-I-having-trouble-with-TLS/m-p/634513/highlight/false#M108573" target="_self"&gt;https://community.splunk.com/t5/Getting-Data-In/Why-am-I-having-trouble-with-TLS/m-p/634513/highlight/false#M108573&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;After following the documentation on how to enable ssl between forwarders and indexers, i got the error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR TcpInputProc - Error encountered for connection from src=10.1.1.34:50772. error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the documentation: &lt;A title="examples for configuring TLS certificates on receiving indexers" href="https://docs.splunk.com/Documentation/Splunk/9.0.1/Security/ConfigureSplunkforwardingtousesignedcertificates#Configuration_file_examples_for_configuring_TLS_certificates_on_receiving_indexers" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.0.1/Security/ConfigureSplunkforwardingtousesignedcertificates#Configuration_file_examples_for_configuring_TLS_certificates_on_receiving_indexers&lt;/A&gt;&lt;BR /&gt;, it specifies&lt;/P&gt;&lt;PRE&gt;[SSL]&lt;BR /&gt;requireClientCert = true&lt;/PRE&gt;&lt;P&gt;Which if you drop, will affect your outputs.conf -&amp;gt; useSSL.&lt;BR /&gt;It says if requireClientCert is defined, then useSSL will be true.&lt;BR /&gt;In my case, I mindlessly thought you could set requrieClientCert=false...&lt;/P&gt;&lt;PRE&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Outputsconf&lt;BR /&gt;#----Secure Sockets Layer (SSL) Settings----

# To set up SSL on the forwarder, set the following setting/value pairs.
# If you want to use SSL for authentication, add a stanza for each receiver
# that must be certified.

useSSL = &amp;lt;true|false|legacy&amp;gt;
* Whether or not the forwarder uses SSL to connect to the receiver, or relies
  on the 'clientCert' setting to be active for SSL connections.
* You do not need to set 'clientCert' if 'requireClientCert' is set to
  "false" on the receiver.
* A value of "true" means the forwarder uses SSL to connect to the receiver.
* A value of "false" means the forwarder does not use SSL to connect to the
  receiver.
* The special value "legacy" means the forwarder uses the 'clientCert' property to
  determine whether or not to use SSL to connect.
* Default: legacy&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 13:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-to-Indexer-secure-communication-using-self-signed/m-p/636313#M108836</guid>
      <dc:creator>triptraptresko</dc:creator>
      <dc:date>2023-03-28T13:02:40Z</dc:date>
    </item>
  </channel>
</rss>

