<?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: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/2855#M127</link>
    <description>&lt;P&gt;Hi @Hardy S​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2023 04:39:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-20T04:39:30Z</dc:date>
    <item>
      <title>The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption</title>
      <link>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/2854#M126</link>
      <description>&lt;P&gt;I am trying to connect to SQL through JDBC from databricks notebook.  (Below is my notebook command)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;val df = spark.read.jdbc(jdbcUrl, "[MyTableName]", connectionProperties)
println(df.schema)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I execute this command, &lt;/P&gt;&lt;P&gt;with &lt;B&gt;DBR 10.4 LTS&lt;/B&gt; it works fine. But after upgrading to &lt;B&gt;DBR 13.0&lt;/B&gt; it throws below error: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQLServerException: 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:XXXXXXXX-XXXXX-XXXXX-XXXXX-XXXXXXXXXXXX&lt;/P&gt;&lt;P&gt;Caused by: SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target&lt;/P&gt;&lt;P&gt;Caused by: ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target&lt;/P&gt;&lt;P&gt;Caused by: SunCertPathBuilderException: unable to find valid certification path to requested target&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 11:17:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/2854#M126</guid>
      <dc:creator>Hardy</dc:creator>
      <dc:date>2023-06-19T11:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption</title>
      <link>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/2855#M127</link>
      <description>&lt;P&gt;Hi @Hardy S​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Great to meet you, and thanks for your question!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Let's see if your peers in the community have an answer to your question. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 04:39:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/2855#M127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-20T04:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (</title>
      <link>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/47663#M28174</link>
      <description>&lt;P&gt;Anyone has update on this? I am seeing the same issue with DBR 12.2&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 20:57:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/47663#M28174</guid>
      <dc:creator>DBXC</dc:creator>
      <dc:date>2023-10-02T20:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (</title>
      <link>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/49087#M28473</link>
      <description>&lt;P&gt;Also seeing this issue after upgrading to DBR 12.2. Any news is very much appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 07:44:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/49087#M28473</guid>
      <dc:creator>Mielios</dc:creator>
      <dc:date>2023-10-13T07:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (</title>
      <link>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/49139#M28487</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Try to add the following parameters to your SQL connection string. It fixed my problem for 13.X and 12.X&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;;trustServerCertificate=true;hostNameInCertificate=*.database.windows.net;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Oct 2023 14:28:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/49139#M28487</guid>
      <dc:creator>DBXC</dc:creator>
      <dc:date>2023-10-13T14:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (</title>
      <link>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/68766#M33743</link>
      <description>&lt;P&gt;Yep, that does it.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 19:28:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/the-driver-could-not-establish-a-secure-connection-to-sql-server/m-p/68766#M33743</guid>
      <dc:creator>Pat_IronBridges</dc:creator>
      <dc:date>2024-05-10T19:28:31Z</dc:date>
    </item>
  </channel>
</rss>

