<?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 WEB:  ERROR HTTPServer - SSL context could not be created and  ERROR SSLCommon - Can't read certificate file in Security</title>
    <link>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443937#M10411</link>
    <description>&lt;P&gt;Is the .cer file a PEM or DER encoded certificate?&lt;BR /&gt;
It looks like Splunk is struggling to read it, so you might need to convert it to base64 PEM&lt;/P&gt;

&lt;P&gt;If you open the .cer in a text editor, does it start with &lt;CODE&gt;-----BEGIN CERTIFICATE-----&lt;/CODE&gt;&lt;BR /&gt;
If not, you need to convert it.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2019 18:04:22 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2019-03-18T18:04:22Z</dc:date>
    <item>
      <title>Splunk WEB:  ERROR HTTPServer - SSL context could not be created and  ERROR SSLCommon - Can't read certificate file</title>
      <link>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443936#M10410</link>
      <description>&lt;P&gt;Running into the following errors when configuring and restarting splunk using third party certificates. All configurations follow Splunk's instructions found here. &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.3/Security/Howtogetthird-partycertificates#Request_your_server_certificate"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.3/Security/Howtogetthird-partycertificates#Request_your_server_certificate&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Web.conf&lt;/STRONG&gt;&lt;BR /&gt;
[settings]&lt;BR /&gt;
enableSplunkWebSSL = 1&lt;BR /&gt;
serverCert = /opt/splunk/etc/etc/auth/certnew.cer&lt;BR /&gt;
privKeyPath = /opt/splunk/etc/auth/privatekey.key&lt;BR /&gt;
httpport = 8000&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Server.conf&lt;/STRONG&gt; &lt;/P&gt;

&lt;P&gt;[sslConfig]&lt;BR /&gt;
sslPassword = whateveriwant&lt;BR /&gt;
sslRootCAPath = /opt/splunk/etc/auth/labca.pem&lt;BR /&gt;
serverCert = /opt/splunk/etc/auth/server.pem&lt;BR /&gt;
sslVersions = tls1.2&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Errors within Splunkd.log:&lt;/STRONG&gt;&lt;BR /&gt;
03-18-2019 13:48:21.609 -0400 ERROR SSLCommon - Can't read certificate file /opt/splunk/etc/etc/auth/certnew.cer errno=33558530 error:02001002:system library:fopen:No such file or directory&lt;BR /&gt;
03-18-2019 13:48:21.609 -0400 ERROR HTTPServer - SSL context could not be created - error in cert or password is wrong&lt;/P&gt;

&lt;P&gt;Any ideas why this is happening? Permissions are correct. The splunk user has access to read and write the necessary files.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 17:59:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443936#M10410</guid>
      <dc:creator>scc00</dc:creator>
      <dc:date>2019-03-18T17:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk WEB:  ERROR HTTPServer - SSL context could not be created and  ERROR SSLCommon - Can't read certificate file</title>
      <link>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443937#M10411</link>
      <description>&lt;P&gt;Is the .cer file a PEM or DER encoded certificate?&lt;BR /&gt;
It looks like Splunk is struggling to read it, so you might need to convert it to base64 PEM&lt;/P&gt;

&lt;P&gt;If you open the .cer in a text editor, does it start with &lt;CODE&gt;-----BEGIN CERTIFICATE-----&lt;/CODE&gt;&lt;BR /&gt;
If not, you need to convert it.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 18:04:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443937#M10411</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-18T18:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk WEB:  ERROR HTTPServer - SSL context could not be created and  ERROR SSLCommon - Can't read certificate file</title>
      <link>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443938#M10412</link>
      <description>&lt;P&gt;So it's a base 64 PEM file and starts like this: &lt;/P&gt;

&lt;P&gt;-----BEGIN CERTIFICATE-----&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 18:10:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443938#M10412</guid>
      <dc:creator>scc00</dc:creator>
      <dc:date>2019-03-18T18:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk WEB:  ERROR HTTPServer - SSL context could not be created and  ERROR SSLCommon - Can't read certificate file</title>
      <link>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443939#M10413</link>
      <description>&lt;P&gt;Oh wait - there is a typo in the filename.&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/etc/auth/certnew.cer &lt;/P&gt;

&lt;P&gt;should be &lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/auth/certnew.cer &lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 18:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443939#M10413</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-18T18:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk WEB:  ERROR HTTPServer - SSL context could not be created and  ERROR SSLCommon - Can't read certificate file</title>
      <link>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443940#M10414</link>
      <description>&lt;P&gt;Good catch. Thanks for that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;But i'm getting this error now:&lt;/P&gt;

&lt;P&gt;03-18-2019 14:53:29.048 -0400 ERROR SSLCommon - Can't read key file /opt/splunk/etc/auth/certnew.pem errno=101077092 error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt.&lt;BR /&gt;
03-18-2019 14:53:29.074 -0400 ERROR SSLCommon - Can't read key file /opt/splunk/etc/auth/certnew.pem errno=101077092 error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt.&lt;BR /&gt;
03-18-2019 14:53:29.668 -0400 ERROR SSLCommon - Can't read key file /opt/splunk/etc/auth/defendsh.pem errno=101077092 error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt.&lt;BR /&gt;
03-18-2019 14:53:29.668 -0400 ERROR HTTPServer - SSL context could not be created - error in cert or password is wrong&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:43:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443940#M10414</guid>
      <dc:creator>scc00</dc:creator>
      <dc:date>2020-09-29T23:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk WEB:  ERROR HTTPServer - SSL context could not be created and  ERROR SSLCommon - Can't read certificate file</title>
      <link>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443941#M10415</link>
      <description>&lt;P&gt;I don't see an &lt;CODE&gt;sslPassword = whatever you set it to&lt;/CODE&gt; in your web.conf in your initial post.&lt;BR /&gt;
Is that an omission from the paste?&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 19:54:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443941#M10415</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-18T19:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk WEB:  ERROR HTTPServer - SSL context could not be created and  ERROR SSLCommon - Can't read certificate file</title>
      <link>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443942#M10416</link>
      <description>&lt;P&gt;So I haven't use it since it's optional and only required if the private key had a password, which mine does not. I removed immediately after creating it.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2019 20:00:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Splunk-WEB-ERROR-HTTPServer-SSL-context-could-not-be-created-and/m-p/443942#M10416</guid>
      <dc:creator>scc00</dc:creator>
      <dc:date>2019-03-18T20:00:24Z</dc:date>
    </item>
  </channel>
</rss>

