<?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 can I resolve this SSL error which occurrs when calling databricks-sql-connector/databricks. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/111036#M43767</link>
    <description>&lt;P&gt;You can set up an SSL context that skips certificate verification with the following command:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import ssl
ssl._create_default_https_context = ssl._create_unverified_context&lt;/LI-CODE&gt;&lt;P&gt;I have followed some steps from this &lt;A href="https://sslinsights.com/fix-certificate-verify-failed-error-in-python/" target="_self"&gt;source&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 12:17:14 GMT</pubDate>
    <dc:creator>Hardy_M</dc:creator>
    <dc:date>2025-02-24T12:17:14Z</dc:date>
    <item>
      <title>How can I resolve this SSL error which occurrs when calling databricks-sql-connector/databricks.sql.connect()  from my python app?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/20793#M14081</link>
      <description>&lt;P&gt;Error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;nbsp;python --version&lt;/P&gt;&lt;P&gt;Python 3.10.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error seems to be coming from the thrift backend. I suspect but have not confirmed that the python version is involved. This app was previously able to connect under a configuration that used python 3.8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd prefer not to use self-signed certificates. Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 19:49:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/20793#M14081</guid>
      <dc:creator>mattmunz</dc:creator>
      <dc:date>2022-05-11T19:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve this SSL error which occurrs when calling databricks-sql-connector/databricks.sql.connect()  from my python app?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/20796#M14084</link>
      <description>&lt;P&gt;I have the same issue and tried the solution mentioned above. It still did not work. I am getting below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: ('HY000', '[HY000] [Simba][ThriftExtension] (14) Unexpected response from server during a HTTP connection: SSL_connect: certificate verify failed. (14) (SQLDriverConnect)')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am on Jupyterhub running on Linux&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import pyodbc&lt;/P&gt;&lt;P&gt;import ssl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;_create_unverified_https_context = ssl._create_unverified_context&lt;/P&gt;&lt;P&gt;except AttributeError:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;# Legacy Python that doesn't verify HTTPS certificates by default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;pass&lt;/P&gt;&lt;P&gt;else:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;# Handle target environment that doesn't support HTTPS verification&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;ssl._create_default_https_context = _create_unverified_https_context&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;conn = pyodbc.connect("Driver=/opt/simba/spark/lib/64/libsparkodbc_sb64.so;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"HOST=;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"PORT=443;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"Schema=default;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"SparkServerType=3;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"AuthMech=3;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"UID=token;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"PWD=;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"ThriftTransport=2;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"SSL=1;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"HTTPPath=;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"ssl_ca=rootdbcert.cer;" +&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"sslverify=0",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;autocommit=True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where should the SSL certificate reside? I uploaded it to the same project folder where the python script is running. I gave the drive path mentioned in &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/dev-tools/pyodbc.html" alt="https://docs.databricks.com/dev-tools/pyodbc.html" target="_blank"&gt;https://docs.databricks.com/dev-tools/pyodbc.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 16:44:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/20796#M14084</guid>
      <dc:creator>ziggy</dc:creator>
      <dc:date>2022-06-29T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve this SSL error which occurrs when calling databricks-sql-connector/databricks.sql.connect()  from my python app?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/20797#M14085</link>
      <description>&lt;P&gt;@Kaniz Fatma​&amp;nbsp;Thanks for this workaround. Ultimately I do want to verify the certificates so I'd be interested in hearing about any solutions that would allow that as well.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2022 02:21:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/20797#M14085</guid>
      <dc:creator>mattmunz</dc:creator>
      <dc:date>2022-07-30T02:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve this SSL error which occurrs when calling databricks-sql-connector/databricks.sql.connect()  from my python app?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/20798#M14086</link>
      <description>&lt;P&gt;@Matt Munz​&amp;nbsp;Were you ever able to find a solution to this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 19:16:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/20798#M14086</guid>
      <dc:creator>ChrisHarris</dc:creator>
      <dc:date>2022-09-13T19:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve this SSL error which occurrs when calling databricks-sql-connector/databricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/73721#M34655</link>
      <description>&lt;P&gt;One way to resolve this could be to ensure your connection values in are surrounded by quotes.&lt;/P&gt;
&lt;DIV&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;host&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"hostname.databricks.com"&lt;/SPAN&gt; &lt;SPAN&gt;# Required&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;http_path&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"/sql/1.0/warehouses/aaaabbbccc"&lt;/SPAN&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jun 2024 05:01:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/73721#M34655</guid>
      <dc:creator>twole</dc:creator>
      <dc:date>2024-06-13T05:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve this SSL error which occurrs when calling databricks-sql-connector/databricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/108698#M43119</link>
      <description>&lt;P&gt;I have just found a way&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Try to&amp;nbsp;creating an SSL context without certificate verification and then&amp;nbsp;to accomplish this, use the command given below:&lt;/P&gt;&lt;PRE&gt;import ssl&lt;/PRE&gt;&lt;PRE&gt;context = ssl._create_unverified_context()&lt;/PRE&gt;&lt;PRE&gt;urllib.request.urlopen(req,context=context)&lt;/PRE&gt;&lt;P&gt;I have tried some steps from &lt;A href="https://cheapsslweb.com/blog/ssl-certificate-verify-failed-error-in-python/" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2025 05:20:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/108698#M43119</guid>
      <dc:creator>alpha_mann</dc:creator>
      <dc:date>2025-02-04T05:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I resolve this SSL error which occurrs when calling databricks-sql-connector/databricks.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/111036#M43767</link>
      <description>&lt;P&gt;You can set up an SSL context that skips certificate verification with the following command:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import ssl
ssl._create_default_https_context = ssl._create_unverified_context&lt;/LI-CODE&gt;&lt;P&gt;I have followed some steps from this &lt;A href="https://sslinsights.com/fix-certificate-verify-failed-error-in-python/" target="_self"&gt;source&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 12:17:14 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-resolve-this-ssl-error-which-occurrs-when-calling/m-p/111036#M43767</guid>
      <dc:creator>Hardy_M</dc:creator>
      <dc:date>2025-02-24T12:17:14Z</dc:date>
    </item>
  </channel>
</rss>

