<?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: Internally Signed Certificate Error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Internally-Signed-Certificate-Error/m-p/403983#M95887</link>
    <description>&lt;P&gt;I have been able to identify a method to get this to work in 6.6.4 with openssl 1.0.2k.&lt;/P&gt;

&lt;P&gt;I needed to adjust my openssl query so that the command was &lt;/P&gt;

&lt;P&gt;openssl req -out file.csr -newkey rsa:2048 -nodes -keyout file.key -config san.cnf&lt;/P&gt;

&lt;P&gt;The cnf file was simply&lt;/P&gt;

&lt;P&gt;[req]&lt;BR /&gt;
default_bits = 2048&lt;BR /&gt;
prompt = no&lt;BR /&gt;
default_md = sha256&lt;BR /&gt;
req_extensions = req_ext&lt;BR /&gt;
distinguished_name = dn&lt;/P&gt;

&lt;P&gt;[ dn ]&lt;BR /&gt;
C=xxxxxx&lt;BR /&gt;
ST=xxxxx&lt;BR /&gt;
L=xxxxx&lt;BR /&gt;
O=xxxxxx&lt;BR /&gt;
OU=xxxxxx&lt;BR /&gt;
CN=fqdn.domain.com&lt;/P&gt;

&lt;P&gt;[ req_ext ]&lt;BR /&gt;
subjectAltName = @alt_names&lt;/P&gt;

&lt;P&gt;[alt_names]&lt;BR /&gt;
DNS.1=fqdn.domain.com&lt;BR /&gt;
DNS.2=xxxxxx&lt;BR /&gt;
.....&lt;/P&gt;

&lt;P&gt;I then had the request re-signed and asked for the response in PEM format and obtained the PEM format for each of the certificate authorities in the chain.  For example issuingca.pem; intermediateca.pem and rootca.pem&lt;/P&gt;

&lt;P&gt;I then did a "type signedrequest.pem issuingca.pem intermediateca.pem rootca.pem &amp;gt; bundle.pem&lt;/P&gt;

&lt;P&gt;I then updated the web.conf file so that is read&lt;/P&gt;

&lt;P&gt;[settings]&lt;BR /&gt;
enableSplunkWebSSL = true&lt;BR /&gt;
privKeyPath = [Drive_Letter]:\Splunk_Enterprise\etc\auth\folder\file.key&lt;BR /&gt;
serverCert = [Drive_Letter]:\Splunk_Enterprise\etc\auth\folder\bundle.pem&lt;/P&gt;

&lt;P&gt;I also hashed out the "sslPassword" in the file server.conf (etc\system\local) and restarting SPLUNK. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 22:09:09 GMT</pubDate>
    <dc:creator>willadams</dc:creator>
    <dc:date>2020-09-29T22:09:09Z</dc:date>
    <item>
      <title>Internally Signed Certificate Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Internally-Signed-Certificate-Error/m-p/403981#M95885</link>
      <description>&lt;P&gt;I am trying to configure our web interface to have a certificate for connections (i.e. &lt;A href="https://fqdn:8000"&gt;https://fqdn:8000&lt;/A&gt;).  I am running into a problem where I am getting an "can't read certificate file  errno=33558531 error:02001003:system library:fopen:No such process"&lt;/P&gt;

&lt;P&gt;This is followed with &lt;/P&gt;

&lt;P&gt;ERROR HTTPServer - SSL context could not be created - error in cert or password is wrong&lt;BR /&gt;
ERROR HTTPServer - SSL will not be enabled&lt;/P&gt;

&lt;P&gt;Using the SPLUNK documentation on generating this certificate (&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.4/Security/Getthird-partycertificatesforSplunkWeb"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.4/Security/Getthird-partycertificatesforSplunkWeb&lt;/A&gt;) I generated a key file with a pass phrase.  I followed the instructions to remove the passphrase and was able to verify this using openssl ..... -text without being prompted.&lt;/P&gt;

&lt;P&gt;I did deviate slightly when generating the certificate request by using the following openssl command.  &lt;/P&gt;

&lt;P&gt;openssl req -new -sha256 -nodes -out  -key  -config &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;The config file contained the relevant information and the SAN's we need for the certificate.&lt;BR /&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I had the certificate signed by our Internal CA and I was provided a PEM format (.pem) response.  I also had our Internal CA provide the certificate chain in a PEM format.  Our certificate chain comprises a root, intermediary and issuing CA.  &lt;/P&gt;

&lt;P&gt;I created a new PEM file and copied the response certificate block in.  I then copied the certificate block for the issuing CA, the intermediary CA and then the root CA to this new PEM file.  So this mimics what the document indicates (signed cert first, then issuing, then intermediary, then root)&lt;/P&gt;

&lt;P&gt;I then updated the web.conf file to reference these entries by configuring it as&lt;/P&gt;

&lt;P&gt;[settings]&lt;BR /&gt;
enableSplunkWebSSL = true&lt;BR /&gt;
privKeyPath = \etc\auth\myfolder\file.key&lt;BR /&gt;
serverCert = \etc\auth\myfolder\signedfile.pem&lt;/P&gt;

&lt;P&gt;I did also try&lt;/P&gt;

&lt;P&gt;[settings]&lt;BR /&gt;
enableSplunkWebSSL = true&lt;BR /&gt;
privKeyPath = \etc\auth\myfolder\file.key&lt;BR /&gt;
caCert = \etc\auth\myfolder\concatenatedfile.pem&lt;/P&gt;

&lt;P&gt;I did also try not using the concatenated PEM file and just using the response file.&lt;/P&gt;

&lt;P&gt;However no matter what I do I keep getting the error mentioned.  &lt;/P&gt;

&lt;P&gt;Note the certificate being generated is using a CNAME for the FQDN instead of the server name.  Do I need to add an additional SAN for the server name as well?  &lt;/P&gt;</description>
      <pubDate>Tue, 27 Nov 2018 05:13:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Internally-Signed-Certificate-Error/m-p/403981#M95885</guid>
      <dc:creator>willadams</dc:creator>
      <dc:date>2018-11-27T05:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Internally Signed Certificate Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Internally-Signed-Certificate-Error/m-p/403982#M95886</link>
      <description>&lt;P&gt;I revisited the certificate configuration and opted to use the exact commands listed in the SPLUNK support documentation to generate the certificate request.  This is to mitigate against any configuration issues in the CSR.  This too resulted in the same problem.&lt;/P&gt;

&lt;P&gt;I also investigated the version of OpenSSL for our SPLUNK instance and can confirm we are using the SPLUNK documented version (for reference SPLUNK 6.6.4 with openssl-1.0.2k ==&amp;gt; &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.6.4/ReleaseNotes/OpenSSL"&gt;https://docs.splunk.com/Documentation/Splunk/6.6.4/ReleaseNotes/OpenSSL&lt;/A&gt;).  &lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 05:40:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Internally-Signed-Certificate-Error/m-p/403982#M95886</guid>
      <dc:creator>willadams</dc:creator>
      <dc:date>2018-11-28T05:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Internally Signed Certificate Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Internally-Signed-Certificate-Error/m-p/403983#M95887</link>
      <description>&lt;P&gt;I have been able to identify a method to get this to work in 6.6.4 with openssl 1.0.2k.&lt;/P&gt;

&lt;P&gt;I needed to adjust my openssl query so that the command was &lt;/P&gt;

&lt;P&gt;openssl req -out file.csr -newkey rsa:2048 -nodes -keyout file.key -config san.cnf&lt;/P&gt;

&lt;P&gt;The cnf file was simply&lt;/P&gt;

&lt;P&gt;[req]&lt;BR /&gt;
default_bits = 2048&lt;BR /&gt;
prompt = no&lt;BR /&gt;
default_md = sha256&lt;BR /&gt;
req_extensions = req_ext&lt;BR /&gt;
distinguished_name = dn&lt;/P&gt;

&lt;P&gt;[ dn ]&lt;BR /&gt;
C=xxxxxx&lt;BR /&gt;
ST=xxxxx&lt;BR /&gt;
L=xxxxx&lt;BR /&gt;
O=xxxxxx&lt;BR /&gt;
OU=xxxxxx&lt;BR /&gt;
CN=fqdn.domain.com&lt;/P&gt;

&lt;P&gt;[ req_ext ]&lt;BR /&gt;
subjectAltName = @alt_names&lt;/P&gt;

&lt;P&gt;[alt_names]&lt;BR /&gt;
DNS.1=fqdn.domain.com&lt;BR /&gt;
DNS.2=xxxxxx&lt;BR /&gt;
.....&lt;/P&gt;

&lt;P&gt;I then had the request re-signed and asked for the response in PEM format and obtained the PEM format for each of the certificate authorities in the chain.  For example issuingca.pem; intermediateca.pem and rootca.pem&lt;/P&gt;

&lt;P&gt;I then did a "type signedrequest.pem issuingca.pem intermediateca.pem rootca.pem &amp;gt; bundle.pem&lt;/P&gt;

&lt;P&gt;I then updated the web.conf file so that is read&lt;/P&gt;

&lt;P&gt;[settings]&lt;BR /&gt;
enableSplunkWebSSL = true&lt;BR /&gt;
privKeyPath = [Drive_Letter]:\Splunk_Enterprise\etc\auth\folder\file.key&lt;BR /&gt;
serverCert = [Drive_Letter]:\Splunk_Enterprise\etc\auth\folder\bundle.pem&lt;/P&gt;

&lt;P&gt;I also hashed out the "sslPassword" in the file server.conf (etc\system\local) and restarting SPLUNK. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:09:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Internally-Signed-Certificate-Error/m-p/403983#M95887</guid>
      <dc:creator>willadams</dc:creator>
      <dc:date>2020-09-29T22:09:09Z</dc:date>
    </item>
  </channel>
</rss>

