<?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: Tcp data input and ssl in Security</title>
    <link>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/518529#M11769</link>
    <description>&lt;P&gt;You can follow the process I shared in my first answer.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 19:37:39 GMT</pubDate>
    <dc:creator>thambisetty</dc:creator>
    <dc:date>2020-09-08T19:37:39Z</dc:date>
    <item>
      <title>Tcp data input and ssl</title>
      <link>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/517233#M11751</link>
      <description>&lt;P&gt;I have configured /local/inputs.confg file for tcp input data for ssl as suggested in documents. But after restart the splunk when it is not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using 8.x version. Please suggest the way to securely send tcp data from my application to splunk server using ssl certificate.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 13:15:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/517233#M11751</guid>
      <dc:creator>Hari</dc:creator>
      <dc:date>2020-09-01T13:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tcp data input and ssl</title>
      <link>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/517242#M11752</link>
      <description>&lt;P&gt;It's not very easy process.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should explain starting from generating CSR.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#Switch user to user which is running splunkd service, for example: splunkd is running with splunk user.

sudo su - splunk
# Change directory to $SPLUNK_HOME, for example splunk is under /opt
cd /opt/splunk/

#1 Generate Key this will prompt for passphrase, key in and remember the passphrase
openssl genrsa -des3 -out splunk_2_splunk_server.key 3072

#2 Add All your Indexers or Heavy forwarders ( this is basically receiver/server) to issue single certifcate) with Cert Details for the above key

#3 Make sure to fill replace all values inside &amp;lt;&amp;gt;
# for example /C=India
# DNS:splunkidx02.domain.com

openssl req -new -sha256 -key splunk_2_splunk_server.key -out splunk_2_splunk_server.csr -subj "/C=&amp;lt;country&amp;gt;/ST=&amp;lt;state&amp;gt;/L=&amp;lt;location&amp;gt;/O=&amp;lt;organization&amp;gt;/OU=&amp;lt;organizational_unit&amp;gt;/CN=&amp;lt;certficate_name&amp;gt;" -reqexts SAN -config &amp;lt;(cat /opt/splunk/openssl/openssl.cnf &amp;lt;(printf "req_extensions = v3_req\n[SAN]\nsubjectAltName=DNS:&amp;lt;receiver1_fqdn&amp;gt;,DNS:&amp;lt;receiver2_fqdn&amp;gt;")) -out splunk_2_splunk_server.csr

#4 View CSR in plain text for validation
openssl req -in splunk_2_splunk_server.csr -noout -text

repeat steps #1-#4 to create a CSR for client, don't use same passphrase for both client and server.

for example you have created client csr "splunk_2_splunk_client.csr"
and server csr "splunk_2_splunk_server.csr" 
sign both of them using your CA.

# if your company provides p7b cert, you can convert p7b to pem because pem is required in splunk
openssl pkcs7 -print_certs -in &amp;lt;yourcert&amp;gt;.p7b -out splunk_2_splunk.pem 

Now, you have client key with passphrase, client pem certificate and server key with passphrase, server pem certificate.


#this should go to server ( HF or Indexer)
create an app appforhforindexer
create a directory cert inside it
create server.pem inside cert directory

server.pem: is combination of below

server_signed_cert.pem
server.key
internmediate.pem (if any)
root.pem

#I have deployed app to HF/Indexer using Deployment server.
/opt/splunk/etc/deployment-apps/&amp;lt;appforhforindexer&amp;gt;/local/inputs.conf

[splunktcp-ssl:9997]
disabled = 0

[SSL]
serverCert = $SPLUNK_HOME/etc/apps/&amp;lt;appforhforindexer&amp;gt;/cert/server.pem
requireClientCert = false
sslPassword = &amp;lt;server_key_passphraseinplaintext&amp;gt;


Client Configuration (this should go to universal forwarders)
create an app appforclient
create a directory cert inside it
create client.pem inside cert directory

client.pem: is combination of below

client_signed_cert.pem
client.key
internmediate.pem (if any)
root.pem

/opt/splunk/etc/deployment-apps/&amp;lt;appforclient&amp;gt;/local/outputs.conf
[tcpout]
defaultGroup = &amp;lt;yourtcpoutgroup&amp;gt;

[tcpout:&amp;lt;yourtcpoutgroup&amp;gt;]
server = server1:9997,server2:9997

clientCert = $SPLUNK_HOME/etc/apps/&amp;lt;appforclient&amp;gt;/cert/client.pem
sslPassword = &amp;lt;client_key_passphraseinplaintext&amp;gt;
useClientSSLCompression = true
sslVerifyServerCert = false



&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 14:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/517242#M11752</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-01T14:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tcp data input and ssl</title>
      <link>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/518163#M11765</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do i need to add Protocal data input add-on to the splunk to communicate my application with splunk on ssl tcp.&amp;nbsp; I want to inform here that i am using Serilog API's TCPSyslog() to send message to splunk.&lt;/P&gt;&lt;P&gt;I am using Splunk 8.0.X version on windows 10.&lt;/P&gt;&lt;P&gt;Please suggest the way to send data to splunk using secured tcp input. And also inform me if any additional setting need to do in splunk. I am totally new to this tool.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 07:12:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/518163#M11765</guid>
      <dc:creator>Hari</dc:creator>
      <dc:date>2020-09-07T07:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tcp data input and ssl</title>
      <link>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/518501#M11767</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225676"&gt;@Hari&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Are you forwarding events to Splunk using HTTP event collector?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 18:24:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/518501#M11767</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-08T18:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tcp data input and ssl</title>
      <link>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/518518#M11768</link>
      <description>&lt;P&gt;I am forwarding data using tcp data input. So if I&amp;nbsp; send data to tcp input data port, data is recieved&amp;nbsp; successfully ( I am not using any data security certificate). But I want to use ssl security certificate for this data transmission.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to send data&amp;nbsp; to splunk tcp data input port by using ssl/tls security certificate.&lt;/P&gt;&lt;P&gt;Note: I want to mention that I am using Serilog logging framework in my application to send data to splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 19:09:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/518518#M11768</guid>
      <dc:creator>Hari</dc:creator>
      <dc:date>2020-09-08T19:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Tcp data input and ssl</title>
      <link>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/518529#M11769</link>
      <description>&lt;P&gt;You can follow the process I shared in my first answer.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 19:37:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Tcp-data-input-and-ssl/m-p/518529#M11769</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-08T19:37:39Z</dc:date>
    </item>
  </channel>
</rss>

