<?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 Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza=&amp;quot;SSL in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687717#M28186</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264981"&gt;@azer271&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at this Splunk TLS config page. It sounds like there's a step / config missing,&amp;nbsp;work through this and your steps.&amp;nbsp; &amp;nbsp;That error could be&amp;nbsp;&amp;nbsp;incorrect PEM format&amp;nbsp; or&amp;nbsp; some config settings &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://lantern.splunk.com/Splunk_Platform/Product_Tips/Administration/Securing_the_Splunk_platform_with_TLS" target="_blank"&gt;https://lantern.splunk.com/Splunk_Platform/Product_Tips/Administration/Securing_the_Splunk_platform_with_TLS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 10:13:40 GMT</pubDate>
    <dc:creator>deepakc</dc:creator>
    <dc:date>2024-05-16T10:13:40Z</dc:date>
    <item>
      <title>Splunk Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL"</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687475#M28176</link>
      <description>&lt;P&gt;Hello. Im new at Splunk. Recently, I am trying to&amp;nbsp;create and sign my own TLS certificates, following this official guide.&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/Security/Howtoself-signcertificates" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.1/Security/Howtoself-signcertificates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, splunkd.log keep on showing this error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL": Can't read key file /opt/splunk/etc/auth/mycerts/myServerCertificate.pem SSL error code=151441516 message="error:0906D06C:PEM routines:PEM_read_bio:no start line"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_1-1715692419191.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30810iD0F51BEE67A07955/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_1-1715692419191.png" alt="azer271_1-1715692419191.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_2-1715692434292.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30811iD7B054FAD6B2898D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_2-1715692434292.png" alt="azer271_2-1715692434292.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First, By following the guide, I created:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;private key&lt;/STRONG&gt; of&amp;nbsp;&lt;SPAN&gt;root certificate authority certificate, which is&amp;nbsp;&lt;STRONG&gt;myCertAuthPrivateKey.key&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;CSR for the certificate&lt;/STRONG&gt;, which is&amp;nbsp;&lt;STRONG&gt;myCertAuthCertificate.csr&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;root certificate authority certificate&lt;/STRONG&gt;, which is&amp;nbsp;&lt;STRONG&gt;myCertAuthCertificate.pem&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Moreover, I created a&amp;nbsp;server certificate and sign them with the root certificate authority certificate.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;private key for the server certificate,&amp;nbsp;&lt;/STRONG&gt;which is&amp;nbsp;&lt;STRONG&gt;myServerPrivateKey.key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CSR for the server certificate&lt;/STRONG&gt;, which is&amp;nbsp;&lt;STRONG&gt;myServerCertificate.csr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Server certificate&lt;/STRONG&gt;, which is&amp;nbsp;&lt;STRONG&gt;myServerCertificate.pem&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, following the guide, i have 6 files in mycerts folder, and one srl file. This Splunk Master is a master node connects to 3 indexers (clustering). I followed this guide to modify the configuration files, which is the inputs.conf and server.conf i believe.&lt;/P&gt;&lt;P&gt;Ref:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/9.2.1/Security/ConfigureSplunkforwardingtousesignedcertificates" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/9.2.1/Security/ConfigureSplunkforwardingtousesignedcertificates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;6+1 files for certificate.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_0-1715691746708.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30809iF464EB9D5509E9B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_0-1715691746708.png" alt="azer271_0-1715691746708.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;/opt/splunk/etc/system/local/server.conf&lt;/P&gt;&lt;PRE&gt;[general]&lt;BR /&gt;...&lt;BR /&gt;
[sslConfig]&lt;BR /&gt;sslRootCAPath = /opt/splunk/etc/auth/mycerts/myCertAuthCertificate.pem&lt;BR /&gt;sslPassword = mypassword&lt;BR /&gt;&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;/opt/splunk/etc/system/local/inputs.conf&lt;/P&gt;&lt;PRE&gt;[splunktcp-ssl:9997]
disabled=0

[SSL]
serverCert = /opt/splunk/etc/auth/mycerts/myServerCertificate.pem
sslPassword = mypassword
requireClientCert = true
sslVersions = *,-ssl2&lt;/PRE&gt;&lt;P&gt;Everytime i do service splunk restart, i still get the SSL error. Anyone know why and whats happening?? Same error is also happening in any other indexes. (same steps as i mentioned above)&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 13:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687475#M28176</guid>
      <dc:creator>azer271</dc:creator>
      <dc:date>2024-05-14T13:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687481#M28177</link>
      <description>&lt;P&gt;From the screenshot of files permissions&amp;nbsp; - the files look like they are for root, set those for the splunk user and try that&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 13:38:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687481#M28177</guid>
      <dc:creator>deepakc</dc:creator>
      <dc:date>2024-05-14T13:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687487#M28178</link>
      <description>&lt;P&gt;Hmm. I still get the same error. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Certs permissions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_2-1715694526777.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30814i942A941C3607E8F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_2-1715694526777.png" alt="azer271_2-1715694526777.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_1-1715694513976.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30813iC1E6C8108777FDFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_1-1715694513976.png" alt="azer271_1-1715694513976.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After restart,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Splunkd.log:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_0-1715694381724.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30812i7A0E58CB2B82AC82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_0-1715694381724.png" alt="azer271_0-1715694381724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 13:49:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687487#M28178</guid>
      <dc:creator>azer271</dc:creator>
      <dc:date>2024-05-14T13:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687492#M28179</link>
      <description>&lt;P&gt;Try a couple of things&lt;/P&gt;&lt;P&gt;Add the below to inputs.conf&amp;nbsp; - restart (YOUR CA CERT) under [SSL]&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;rootCA = /opt/splunk/etc/auth/mycerts/myCertAuthCertificate.pem&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Run these to validate the certs - see if they read and show information&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;openssl rsa -in /opt/splunk/etc/auth/mycerts/myServerCertificate.pem -text

openssl x509 -in /opt/splunk/etc/auth/mycerts/myServerCertificate.pem -text -noout&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 14:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687492#M28179</guid>
      <dc:creator>deepakc</dc:creator>
      <dc:date>2024-05-14T14:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687714#M28184</link>
      <description>&lt;P&gt;Hello. Sorry about the late reply. After adding the rootCA setting, it still does not work. However, openssl shows "&lt;STRONG&gt;unable to load private key&lt;/STRONG&gt;" ,which I believe this may be the issue. Regenerating the certs/keys also have the same issue.&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the output of openssl:&lt;/P&gt;&lt;P&gt;The private key is unable to load.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_1-1715853086798.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30836iB82B33613F6C4609/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_1-1715853086798.png" alt="azer271_1-1715853086798.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The cert is showed properly.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_0-1715853053511.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30835i92AFB61BFFA6B132/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_0-1715853053511.png" alt="azer271_0-1715853053511.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Morever, the search result shows that the ssl is still false. (I set up certs in hf and forwarder for testing)&lt;/P&gt;&lt;P&gt;Troubleshoot output:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_3-1715853521831.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30838i2C68AC52A598AA65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_3-1715853521831.png" alt="azer271_3-1715853521831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help btw.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 09:59:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687714#M28184</guid>
      <dc:creator>azer271</dc:creator>
      <dc:date>2024-05-16T09:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687717#M28186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264981"&gt;@azer271&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a look at this Splunk TLS config page. It sounds like there's a step / config missing,&amp;nbsp;work through this and your steps.&amp;nbsp; &amp;nbsp;That error could be&amp;nbsp;&amp;nbsp;incorrect PEM format&amp;nbsp; or&amp;nbsp; some config settings &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://lantern.splunk.com/Splunk_Platform/Product_Tips/Administration/Securing_the_Splunk_platform_with_TLS" target="_blank"&gt;https://lantern.splunk.com/Splunk_Platform/Product_Tips/Administration/Securing_the_Splunk_platform_with_TLS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 10:13:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687717#M28186</guid>
      <dc:creator>deepakc</dc:creator>
      <dc:date>2024-05-16T10:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687720#M28188</link>
      <description>&lt;P&gt;The "no_start_line" error suggests format mismatch.&lt;/P&gt;&lt;P&gt;Proper PEM-formatted cert or key file should begin with a header.&lt;/P&gt;&lt;P&gt;See &lt;A href="https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail" target="_blank"&gt;https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 10:31:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687720#M28188</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-05-16T10:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687965#M28208</link>
      <description>&lt;P&gt;I fixed the error of "&lt;STRONG&gt;Can't read key file" &lt;/STRONG&gt;by putting the contents of my server private key into the pem file.&lt;/P&gt;&lt;P&gt;Using this two commands can properly show information now:&lt;/P&gt;&lt;PRE&gt;openssl rsa -in /opt/splunk/etc/auth/mycerts/myServerCertificate.pem -text

openssl x509 -in /opt/splunk/etc/auth/mycerts/myServerCertificate.pem -text -noout&lt;/PRE&gt;&lt;P&gt;openssl rsa is properly showing the rsa private key (modulus, prime etcetc) now. openssl x509 works fine as i mentioned before.&lt;/P&gt;&lt;P&gt;However, splunkd.log still shows sslv3 alert certificate unknown.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="azer271_0-1716128688633.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/30868i29756DBD9724F108/image-size/medium?v=v2&amp;amp;px=400" role="button" title="azer271_0-1716128688633.png" alt="azer271_0-1716128688633.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2024 14:25:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/687965#M28208</guid>
      <dc:creator>azer271</dc:creator>
      <dc:date>2024-05-19T14:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Self-signed Certificate Error. Error setting up SSL for TCP data input from file=inputs.conf stanza="SSL</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/688065#M28209</link>
      <description>&lt;P&gt;So this initially looks like the sender does not have certs, what is 192.168.100.1? (The client sending should now have the TLS certs - what does the outputs from client (UF ) look like?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Test from the client&lt;BR /&gt;openssl s_client -connect &amp;lt;hostname&amp;gt;:9997&lt;/P&gt;&lt;P&gt;Or&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/splunkforwarder/bin/splunk cmd openssl s_client -connect &amp;lt;hostname&amp;gt;:9997&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 17:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Self-signed-Certificate-Error-Error-setting-up-SSL-for/m-p/688065#M28209</guid>
      <dc:creator>deepakc</dc:creator>
      <dc:date>2024-05-20T17:12:58Z</dc:date>
    </item>
  </channel>
</rss>

