<?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: SSL/TLS with requireClientCert in web.conf fails in Security</title>
    <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489010#M11226</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Here few things that differ from UF -&amp;gt; Indexer TLS connectivity and User -&amp;gt; Splunk Web TLS connectivity. &lt;/P&gt;

&lt;P&gt;When you configure &lt;CODE&gt;serverCert&lt;/CODE&gt; in web.conf, it does not require private key in certification chain.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;serverCert = &amp;lt;path&amp;gt;
* Full path to the Privacy Enhanced Mail (PEM) format Splunk web server certificate file.
* The file may also contain root and intermediate certificates, if required.
  They should be listed sequentially in the order:
    [ Server SSL certificate ]
    [ One or more intermediate certificates, if required ]
    [ Root certificate, if required ]
* See also 'enableSplunkWebSSL' and 'privKeyPath'.
* Default: $SPLUNK_HOME/etc/auth/splunkweb/cert.pem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Second if your private key is protected with password then you need to configure &lt;CODE&gt;sslPassword&lt;/CODE&gt; in web.conf OR remove password from private key and configure it, in that case you do not need to configure &lt;CODE&gt;sslPassword&lt;/CODE&gt; in web.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sslPassword = &amp;lt;password&amp;gt;
* Password that protects the private key specified by 'privKeyPath'.
* If encrypted private key is used, do not enable client-authentication
  on splunkd server. In [sslConfig] stanza of server.conf,
  'requireClientCert' must be 'false'.
* Optional.
* Default: The unencrypted private key.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And when you configure &lt;CODE&gt;requireClientCert=true&lt;/CODE&gt; in web.conf you need to configure &lt;CODE&gt;sslRootCAPath = &amp;lt;PATH&amp;gt;&lt;/CODE&gt; in server.conf&lt;/P&gt;

&lt;P&gt;web.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;requireClientCert = &amp;lt;boolean&amp;gt;
* Requires that any HTTPS client that connects to the Splunk Web HTTPS
  server has a certificate that was signed by the CA cert installed
  on this server.
* If "true", a client can connect ONLY if a certificate created by our
  certificate authority was used on that client.
* If "true", it is mandatory to configure splunkd with same root CA in server.conf.
  This is needed for internal communication between splunkd and splunkweb.
* Default: false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Mar 2020 12:44:33 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2020-03-09T12:44:33Z</dc:date>
    <item>
      <title>SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489009#M11225</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;I have worked for a while to make Splunk use TLS and PKI as much as possible. At present the system contains of version 8.0.1 components only. I have managed to get Splunk Indexer to require client certificate from the UFs, and it seems to work. The Splunk serverCert is in a file containing the certificate, private key, issuer certificate and the root-CA certificate (the issuer of the issuer certificate). The trusted root-CA -certificates are in a separate text file. For this connection requiring &lt;EM&gt;requireClientCert = true&lt;/EM&gt; works fine.&lt;/P&gt;

&lt;P&gt;With the web-UI things are not going as elegantly.  My web.conf looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[settings]
enableSplunkWebSSL = 1
privKeyPath = etc/auth/splunkweb/splunk.pki.key
serverCert = etc/auth/splunkweb/splunk.pki.txt
requireClientCert = false
sslVersions = tls1.2
loginBackgroundImageOption = none
login_content = This is a &amp;lt;b&amp;gt;Test installation&amp;lt;/b&amp;gt;.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With the above, things are just fine. Changing &lt;EM&gt;requireClientCert&lt;/EM&gt; to &lt;EM&gt;true&lt;/EM&gt; breaks everything and the webGUI is not started. The splunkd.log gets populated with lines like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03-09-2020 12:45:04.223 +0200 ERROR X509Verify - X509 certificate (CN=Root CA,O=X,C=Y) failed validation; error=19, reason="self signed certificate in certificate chain"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I get exactly the same error message, if I connect using openSSL to the indexer port, where UFs connect:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;openssl s_client -connect splunk:9998 -state -prexit
*
Certificate chain
0 s:/C=Y/O=X/CN=Test Splunk Indexer
  i:/C=Y/O=X/CN=TestCA-1
1 s:/C=Y/O=X/CN=TestCA-1
  i:/C=Y/O=X/CN=Root CA
2 s:/C=Y/O=X/CN=Root CA
  i:/C=Y/O=X/CN=Root CA
*
SSL-Session:
   Protocol  : TLSv1.2
*
   Verify return code: 19 (self signed certificate in certificate chain)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My point here is that the connection between UF and indexer still works fine. The question is: Is &lt;EM&gt;requireClientCertificate&lt;/EM&gt; simply not supported in the web-GUI, or is there something in the documentation I have not understood correctly?&lt;/P&gt;

&lt;P&gt;If it is possible to require a certificate from the client (i.e. a web browser), is there a way to define the trusted CA-certificates and should any intermediate CA certifictes be included as well?&lt;/P&gt;

&lt;P&gt;Another thing I have been wondering about is certificate validation and CRLs. Is there a way to make Splunk actually validate the certificates it is presented?&lt;/P&gt;

&lt;P&gt;Best regards,&lt;/P&gt;

&lt;P&gt;Petri&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 11:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489009#M11225</guid>
      <dc:creator>kaurinko</dc:creator>
      <dc:date>2020-03-09T11:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489010#M11226</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Here few things that differ from UF -&amp;gt; Indexer TLS connectivity and User -&amp;gt; Splunk Web TLS connectivity. &lt;/P&gt;

&lt;P&gt;When you configure &lt;CODE&gt;serverCert&lt;/CODE&gt; in web.conf, it does not require private key in certification chain.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;serverCert = &amp;lt;path&amp;gt;
* Full path to the Privacy Enhanced Mail (PEM) format Splunk web server certificate file.
* The file may also contain root and intermediate certificates, if required.
  They should be listed sequentially in the order:
    [ Server SSL certificate ]
    [ One or more intermediate certificates, if required ]
    [ Root certificate, if required ]
* See also 'enableSplunkWebSSL' and 'privKeyPath'.
* Default: $SPLUNK_HOME/etc/auth/splunkweb/cert.pem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Second if your private key is protected with password then you need to configure &lt;CODE&gt;sslPassword&lt;/CODE&gt; in web.conf OR remove password from private key and configure it, in that case you do not need to configure &lt;CODE&gt;sslPassword&lt;/CODE&gt; in web.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sslPassword = &amp;lt;password&amp;gt;
* Password that protects the private key specified by 'privKeyPath'.
* If encrypted private key is used, do not enable client-authentication
  on splunkd server. In [sslConfig] stanza of server.conf,
  'requireClientCert' must be 'false'.
* Optional.
* Default: The unencrypted private key.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And when you configure &lt;CODE&gt;requireClientCert=true&lt;/CODE&gt; in web.conf you need to configure &lt;CODE&gt;sslRootCAPath = &amp;lt;PATH&amp;gt;&lt;/CODE&gt; in server.conf&lt;/P&gt;

&lt;P&gt;web.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;requireClientCert = &amp;lt;boolean&amp;gt;
* Requires that any HTTPS client that connects to the Splunk Web HTTPS
  server has a certificate that was signed by the CA cert installed
  on this server.
* If "true", a client can connect ONLY if a certificate created by our
  certificate authority was used on that client.
* If "true", it is mandatory to configure splunkd with same root CA in server.conf.
  This is needed for internal communication between splunkd and splunkweb.
* Default: false
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Mar 2020 12:44:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489010#M11226</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-03-09T12:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489011#M11227</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;That nailed it, thanks! I had to add the Root-CA certificate of the splunkweb-cert to the file pointed at by sslRootCAPath and obviously all the other trusted Root-CAs.&lt;/P&gt;

&lt;P&gt;The documentation for this part is confusing. With certificates the keyword I am looking for is trust. The documentation is not clear about how to define the trusted CAs (trust anchors) for different purposes. Actually the wording lets one believe that there can only be one trusted CA, which would be very strange. Now that I know how things work, I can understand it, but it should have been the other way around.&lt;/P&gt;

&lt;P&gt;Do you know anything about doing proper certificate validation with CRLs or an ocsp in Splunk?&lt;/P&gt;

&lt;P&gt;/Petri&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 13:25:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489011#M11227</guid>
      <dc:creator>kaurinko</dc:creator>
      <dc:date>2020-03-09T13:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489012#M11228</link>
      <description>&lt;P&gt;You can concatenate multiple root CA in single Root CA file and configure that root CA file in server.conf . For CRL don't you think that is browser's responsibility to check whether certificate is revoked or not ?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 13:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489012#M11228</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-03-09T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489013#M11229</link>
      <description>&lt;P&gt;I think it is the responsibility of any relying party to proper validation. That would include checking that the certificate is valid, signed by the issuer, not revoked and the issuer certificate is also valid. That last step adds recursion to the process, but most chains are not that long.&lt;/P&gt;

&lt;P&gt;I would say that the browser should be interested in validating the server certificate, but if a client certificate is requested and presented, it would be the server's duty to validate it.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 13:45:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489013#M11229</guid>
      <dc:creator>kaurinko</dc:creator>
      <dc:date>2020-03-09T13:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489014#M11230</link>
      <description>&lt;P&gt;As far as I am aware CRL signing perfomed by browser, splunk do not support oscp as of now (I can't see any setting to enable this) and for client side verification you can verify client certificate using CN&lt;/P&gt;

&lt;P&gt;web.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sslCommonNameToCheck = &amp;lt;commonName1&amp;gt;, &amp;lt;commonName2&amp;gt;, ...
* Checks the common name of the client's certificate against this list of names.
* 'requireClientCert' must be set to "true" for this setting to work.
* Optional. 
* Default: empty string (No common name checking).
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Mar 2020 14:12:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489014#M11230</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-03-09T14:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489015#M11231</link>
      <description>&lt;P&gt;I guess you got mixed somewhere writing your comment, or I can't follow the logic "&lt;EM&gt;CRL signing by browser&lt;/EM&gt;" doesn't make any sense as CRLs are signed by CAs. Anyhow, my guess is Splunk isn't interested in CRLs as I haven't found anything about them in the documentation.  The other thing I can't find mentioned is validity period checking, so it looks like the certificates are treated as never expiring certificates.&lt;/P&gt;

&lt;P&gt;Despite all that, I still think setting up certificates for the connections is worth the trouble. And maybe some day there will be better validation.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 14:24:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489015#M11231</guid>
      <dc:creator>kaurinko</dc:creator>
      <dc:date>2020-03-09T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489016#M11232</link>
      <description>&lt;P&gt;Yes it got mixed up for CRL, I mean to say CRL verification. For any features which are not available now but you think that those will good one then you can submit your feature request on &lt;A href="https://ideas.splunk.com"&gt;https://ideas.splunk.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 14:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489016#M11232</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-03-09T14:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489017#M11233</link>
      <description>&lt;P&gt;I'll think about that. Thanks for the conversation.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 15:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489017#M11233</guid>
      <dc:creator>kaurinko</dc:creator>
      <dc:date>2020-03-09T15:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: SSL/TLS with requireClientCert in web.conf fails</title>
      <link>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489018#M11234</link>
      <description>&lt;P&gt;Welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 15:12:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SSL-TLS-with-requireClientCert-in-web-conf-fails/m-p/489018#M11234</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-03-09T15:12:26Z</dc:date>
    </item>
  </channel>
</rss>

