<?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: SmartStore producing Cert errors with sslVerifyServerCert = false in Security</title>
    <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420586#M9980</link>
    <description>&lt;P&gt;Confirmed the same error exists on 7.2.6 while the command you gave me to run also returns the 0 return code.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jun 2019 15:20:33 GMT</pubDate>
    <dc:creator>Andrew_Callan</dc:creator>
    <dc:date>2019-06-14T15:20:33Z</dc:date>
    <item>
      <title>SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420578#M9972</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm currently trying to setup a smartstore index using on-prem s3 compliant storage. &lt;/P&gt;

&lt;P&gt;The logs I'm seeing in _internal related to the s3Client component are as follows: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;statusCode=502 statusDescription="Error connecting: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca - please check the output of the `openssl verify` command for the certificates involved; note that if certificate verification is enabled (requireClientCert or sslVerifyServerCert set to "true"), the CA certificate and the server certificate should not have the same Common Name.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My (slightly redacted) config for the bucket in indexes.conf is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[volume:primary]
path = /opt/splunk/var/lib/splunk
maxVolumeDataSizeMB = 500000

[volume:remote_store]
storageType = remote
path = s3://splunk-smartstore/netapp-smartstore
remote.s3.access_key = access key
remote.s3.secret_key = secret key
remote.s3.endpoint = &lt;A href="https://s3-sgws.domain:8082" target="test_blank"&gt;https://s3-sgws.domain:8082&lt;/A&gt;
remote.s3.encryption = none
remote.s3.sslVerifyServerCert = false

[netapp_smartstore]
homePath = volume:primary/netapp_smartstore/db
coldPath = $SPLUNK_DB/netapp_smartstore/colddb
thawedPath = $SPLUNK_DB/netapp_smartstore/thaweddb
repFactor = auto
remotePath = volume:remote_store/netapp_smartstore/colddb
maxGlobalDataSizeMB = 1024
hotlist_recency_secs = 3600
hotlist_bloom_filter_recency_hours = 3600
frozenTimePeriodInSecs = 31536000
maxDataSize = auto
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have successfully setup smartstore with an AWS bucket, the only differences being that using the public aws endpoints, their certs are set up and correct (we do not have that on site, just using default certs, so I'm not sure exactly which cert to check with the openssl verify command). That and I'd actually created the folders/path within the bucket before initiating smartstore whereas with the on prem version I thought that the folders would be created on instantiation. Not sure how this second difference would create any ssl errors though. I would have also thought the setting of remote.s3.sslVerifyServerCert = false would remove the chance of any cert errors.&lt;/P&gt;

&lt;P&gt;Anyone who's run into this and can offer any advice, it is most welcome.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 16:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420578#M9972</guid>
      <dc:creator>Andrew_Callan</dc:creator>
      <dc:date>2019-06-12T16:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420579#M9973</link>
      <description>&lt;P&gt;It may help to mention this is on version 7.3.0&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420579#M9973</guid>
      <dc:creator>Andrew_Callan</dc:creator>
      <dc:date>2019-06-14T12:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420580#M9974</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;As you are using On-Prem S3 storage and your endpoint runs on &lt;CODE&gt;https&lt;/CODE&gt;, you need to configure root or intermediate CA certificate of your S3 instance certificate on Splunk.&lt;/P&gt;

&lt;P&gt;Below parameter you need to configure in indexers.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;remote.s3.sslRootCAPath = &amp;lt;path&amp;gt;
* Full path to the Certificate Authority (CA) certificate PEM format file
  containing one or more certificates concatenated together. S3 certificate
  will be validated against the CAs present in this file.
* Optional.
* Default: [sslConfig/caCertFile] in server.conf
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:12:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420580#M9974</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-06-14T13:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420581#M9975</link>
      <description>&lt;P&gt;Thanks for the answer!&lt;/P&gt;

&lt;P&gt;Since posting I've tried a few other configs, turns out that the default cert used on the on prem s3 store was totally bogus, it had a number in it for the CN and there were no Alt Names. I've given it a proper certificate using our CA and installed the root CA using the following parameter:&lt;/P&gt;

&lt;P&gt;remote.s3.sslRootCAPath = /opt/splunk/etc/certs/root_cert.pem&lt;/P&gt;

&lt;P&gt;The cert has 400 permissions and is owned by Splunk. I've restarted with this parameter specified and with the remote.s3.sslVerifyServerCert parameter set to both true and false, still getting the unknown CA error however.&lt;/P&gt;

&lt;P&gt;I will admit however that I'm not massively experienced with using custom certs in Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420581#M9975</guid>
      <dc:creator>Andrew_Callan</dc:creator>
      <dc:date>2019-06-14T13:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420582#M9976</link>
      <description>&lt;P&gt;Can you please try below command to connect to s3 instance and check whether you are getting any error ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunk/bin/splunk cmd openssl s_client -connect s3-sgws.domain:8082 -CAfile /opt/splunk/etc/cs_certs/cs_root_cert.pem
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT: Above command updated.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420582#M9976</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-06-14T13:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420583#M9977</link>
      <description>&lt;P&gt;With the https:// scheme specified I get &lt;/P&gt;

&lt;P&gt;getservbyname failure for //s3-sg.domain.net:8082&lt;BR /&gt;
usage: s_client args&lt;/P&gt;

&lt;P&gt;When not using the scheme at all I get a connection  displaying the following and a prompt&lt;/P&gt;

&lt;H2&gt;SSL handshake has read 3915 bytes and written 444 bytes&lt;/H2&gt;

&lt;P&gt;New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384&lt;BR /&gt;
Server public key is 2048 bit&lt;BR /&gt;
Secure Renegotiation IS supported&lt;BR /&gt;
Compression: NONE&lt;BR /&gt;
Expansion: NONE&lt;BR /&gt;
No ALPN negotiated&lt;BR /&gt;
SSL-Session:&lt;BR /&gt;
    Protocol  : TLSv1.2&lt;BR /&gt;
    Cipher    : ECDHE-RSA-AES256-GCM-SHA384&lt;BR /&gt;
    Session-ID:&lt;BR /&gt;
    Session-ID-ctx:&lt;BR /&gt;
    Master-Key: &lt;KEY&gt;&lt;BR /&gt;
    Key-Arg   : None&lt;BR /&gt;
    PSK identity: None&lt;BR /&gt;
    PSK identity hint: None&lt;BR /&gt;
    SRP username: None&lt;BR /&gt;
    Start Time: 1560519821&lt;BR /&gt;
    Timeout   : 300 (sec)&lt;BR /&gt;
    Verify return code: 0 (ok)&lt;/KEY&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420583#M9977</guid>
      <dc:creator>Andrew_Callan</dc:creator>
      <dc:date>2019-06-14T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420584#M9978</link>
      <description>&lt;P&gt;Verify retun code : 0 (ok) means CA certificate you provided is working fine. Is it possible to replicate this issue in Splunk 7.2 ? I tried smartstore on 7.2 with http only in my lab environment, never tried https.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 13:49:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420584#M9978</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-06-14T13:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420585#M9979</link>
      <description>&lt;P&gt;It'll take some setting up but I can try this in 7.2.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 14:14:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420585#M9979</guid>
      <dc:creator>Andrew_Callan</dc:creator>
      <dc:date>2019-06-14T14:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420586#M9980</link>
      <description>&lt;P&gt;Confirmed the same error exists on 7.2.6 while the command you gave me to run also returns the 0 return code.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 15:20:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420586#M9980</guid>
      <dc:creator>Andrew_Callan</dc:creator>
      <dc:date>2019-06-14T15:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420587#M9981</link>
      <description>&lt;P&gt;I can't replicate in my lab at the moment but I may try in weekend, based on documentation &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Indexer/SmartStoresecuritystrategies#Manage_SSL_certifications_for_the_remote_store"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Indexer/SmartStoresecuritystrategies#Manage_SSL_certifications_for_the_remote_store&lt;/A&gt; , you may try to configure &lt;CODE&gt;caCertFile (This is deprecated)&lt;/CODE&gt; in server.conf but it will break other SSL communication between Inter-Splunk if you are using &lt;CODE&gt;sslVerifyServerCert = true&lt;/CODE&gt; in server.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;The S3 SSL settings are overlaid on the sslConfig stanza in server.conf, except for sslVerifyServerCert, sslAltNameToCheck, and sslCommonNameToCheck. Therefore, if you run into issues, consult the server.conf SSL settings, in addition to the remote-storage-specific settings. 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jun 2019 15:49:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420587#M9981</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-06-14T15:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420588#M9982</link>
      <description>&lt;P&gt;I have tested Smartstore with &lt;CODE&gt;HTTPS&lt;/CODE&gt; in my lab environment and if you set &lt;CODE&gt;remote.s3.sslVerifyServerCert = false&lt;/CODE&gt; then it will work without setting &lt;CODE&gt;remote.s3.sslRootCAPath&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;As you mentioned that you already tried &lt;CODE&gt;remote.s3.sslVerifyServerCert = false&lt;/CODE&gt; in this case I'll suggest to check indexes.conf configuration using btool and check smartstore configuration. If same config is available in any other indexes.conf then precedence will take place. More docs for precedence refer &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/Wheretofindtheconfigurationfiles"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/Admin/Wheretofindtheconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jun 2019 14:17:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420588#M9982</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2019-06-16T14:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420589#M9983</link>
      <description>&lt;P&gt;I had done a btool with debug before posting, the false setting for verifying the cert was being read from my indexes.conf file in the app configuring smartstore. I'm not sure if there's just something peculiar about the s3 endpoint I'm using. &lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 04:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420589#M9983</guid>
      <dc:creator>Andrew_Callan</dc:creator>
      <dc:date>2019-06-17T04:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: SmartStore producing Cert errors with sslVerifyServerCert = false</title>
      <link>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420590#M9984</link>
      <description>&lt;P&gt;I am experiencing the same issue as well. I am on version 7.2.5. Have tried few different combination with certificates and also disabling  SSL verification. I still get the unknown CA error when I use on-prem s3 storage. Did anyone find the solution for this? @Andrew_Callan did you manage to fix this issue? Please let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 17:55:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/SmartStore-producing-Cert-errors-with-sslVerifyServerCert-false/m-p/420590#M9984</guid>
      <dc:creator>skrish91</dc:creator>
      <dc:date>2019-11-04T17:55:37Z</dc:date>
    </item>
  </channel>
</rss>

