<?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: How to fix MSSQL DB Connect Validation Error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-MSSQL-DB-Connect-Validation-Error/m-p/600291#M104646</link>
    <description>&lt;P&gt;I found the solution and I hope this can help somebody somewhere in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reasons, the Generic MSSQL driver has enabled TLS encryption connection by default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All you have to do is to add the following driver property in the key value to disable the encryption connection:&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="Screenshot_1.png" style="width: 861px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19918iB8A5DDA86659FFF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 13:44:47 GMT</pubDate>
    <dc:creator>Footoasis0868</dc:creator>
    <dc:date>2022-06-02T13:44:47Z</dc:date>
    <item>
      <title>How to fix MSSQL DB Connect Validation Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-MSSQL-DB-Connect-Validation-Error/m-p/599590#M104552</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have trouble connecting my test MSSQL with DB Connect.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_1.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19854i1352B5636C10FA69/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am able to connect the DB using DBVisualizer using the credential I use for the identity.&lt;/P&gt;
&lt;P&gt;I am using the Generic MSSQL Driver:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clipboard01.png" style="width: 485px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19853iC9E0F5BBF9E30225/image-size/large?v=v2&amp;amp;px=999" role="button" title="Clipboard01.png" alt="Clipboard01.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2022-05-27 21:37:44.537 +0800  [dw-59 - GET /api/connections/mssql-test/status] INFO  com.splunk.dbx.connector.logger.AuditLogger - operation=validation connection_name=mssql-test stanza_name= state=error sql='unknown' message='The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:da36105c-f9e9-44e9-aeeb-023742b9a4eb'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know why the error log shows SSL error when I have not enabled SSL for the connection.&lt;/P&gt;
&lt;P&gt;Below is the db_connections.conf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[mssql-test]
connection_type = generic_mssql
database = master
disabled = 0
host = 192.168.74.238
identity = mssql-test
jdbcUseSSL = false
localTimezoneConversionEnabled = false
port = 1433
readonly = false
timezone = Etc/GMT&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 15:20:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-MSSQL-DB-Connect-Validation-Error/m-p/599590#M104552</guid>
      <dc:creator>Footoasis0868</dc:creator>
      <dc:date>2022-05-27T15:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix MSSQL DB Connect Validation Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-MSSQL-DB-Connect-Validation-Error/m-p/600291#M104646</link>
      <description>&lt;P&gt;I found the solution and I hope this can help somebody somewhere in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For some reasons, the Generic MSSQL driver has enabled TLS encryption connection by default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All you have to do is to add the following driver property in the key value to disable the encryption connection:&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="Screenshot_1.png" style="width: 861px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19918iB8A5DDA86659FFF1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 13:44:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-MSSQL-DB-Connect-Validation-Error/m-p/600291#M104646</guid>
      <dc:creator>Footoasis0868</dc:creator>
      <dc:date>2022-06-02T13:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix MSSQL DB Connect Validation Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-MSSQL-DB-Connect-Validation-Error/m-p/669437#M112246</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;After adding that property I have now error:&lt;/P&gt;&lt;PRE&gt;The driver could not establish a secure connection to SQL Server &lt;BR /&gt;by using Secure Sockets Layer (SSL) encryption.&lt;BR /&gt;Error: "Certificates do not conform to algorithm constraints". ClientConnectionId:f6d04b57-f4f7-4bc2-93ca-d3ac59ad7b4b&lt;/PRE&gt;&lt;P&gt;Splunk: 9.0.4.1&lt;/P&gt;&lt;P&gt;Db Connect: 3.14.1&lt;/P&gt;&lt;P&gt;Java:&amp;nbsp;openjdk 17.0.8.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Funny thing i don't have that problem on other server&lt;/P&gt;&lt;P&gt;Splunk: 9.0.4.1&lt;/P&gt;&lt;P&gt;DB Connect: 3.12.2&lt;/P&gt;&lt;P&gt;Java:&amp;nbsp;openjdk 17.0.7&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 09:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-MSSQL-DB-Connect-Validation-Error/m-p/669437#M112246</guid>
      <dc:creator>Imadam</dc:creator>
      <dc:date>2023-11-22T09:38:27Z</dc:date>
    </item>
  </channel>
</rss>

