<?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: Python - How to disable SSL certificate verification in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/137833#M2571</link>
    <description>&lt;P&gt;Thank you. It's helps me a lot.&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2018 08:23:14 GMT</pubDate>
    <dc:creator>RaviTeja1988</dc:creator>
    <dc:date>2018-02-05T08:23:14Z</dc:date>
    <item>
      <title>Python - How to disable SSL certificate verification</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/113697#M1690</link>
      <description>&lt;P&gt;To keep things simple I'd like to disable the certificate verification when connectiing via HTTPs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;s = NaServer(&lt;SPAN&gt;"##.##.##.##"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;1 &lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;31&lt;/SPAN&gt;)&lt;BR /&gt;s.set_server_type(&lt;SPAN&gt;"FILER"&lt;/SPAN&gt;)&lt;BR /&gt;s.set_transport_type(&lt;SPAN&gt;"HTTPS"&lt;/SPAN&gt;)&lt;BR /&gt;s.set_port(&lt;SPAN&gt;443&lt;/SPAN&gt;)&lt;BR /&gt;s.set_style(&lt;SPAN&gt;"LOGIN"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(s.is_server_cert_verification_enabled())&lt;BR /&gt;s.set_admin_user(&lt;SPAN&gt;"admin"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"####"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;s.is_server_cert_verification_enabled() is False by default&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I still get this error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;results status="failed" reason="[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)" errno="13001"&amp;gt;&amp;lt;/results&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 21:09:28 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/113697#M1690</guid>
      <dc:creator>pierrecarette</dc:creator>
      <dc:date>2015-12-14T21:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Python - How to disable SSL certificate verification</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/113698#M1691</link>
      <description>&lt;P&gt;I found this solution, insert this code at the beginning of your source file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;ssl&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;:&lt;BR /&gt;    _create_unverified_https_context = ssl._create_unverified_context&lt;BR /&gt;&lt;SPAN&gt;except &lt;/SPAN&gt;&lt;SPAN&gt;AttributeError&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;# Legacy Python that doesn't verify HTTPS certificates by default&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;pass&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;    &lt;SPAN&gt;# Handle target environment that doesn't support HTTPS verification&lt;BR /&gt;&lt;/SPAN&gt;    ssl._create_default_https_context = _create_unverified_https_context&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 21:20:24 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/113698#M1691</guid>
      <dc:creator>pierrecarette</dc:creator>
      <dc:date>2015-12-14T21:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Python - How to disable SSL certificate verification</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/137833#M2571</link>
      <description>&lt;P&gt;Thank you. It's helps me a lot.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2018 08:23:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/137833#M2571</guid>
      <dc:creator>RaviTeja1988</dc:creator>
      <dc:date>2018-02-05T08:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Python - How to disable SSL certificate verification</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/167184#M3137</link>
      <description>&lt;P&gt;I am&amp;nbsp; encountering the same error message&amp;nbsp;with&amp;nbsp;netapp-ontap 9.8 python client library. I tried to apply the specified fix for&amp;nbsp;ssl verification error&amp;nbsp;but no luck. Can someone please suggest a fix for this?&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 19:39:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/167184#M3137</guid>
      <dc:creator>Ankoji</dc:creator>
      <dc:date>2021-05-27T19:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python - How to disable SSL certificate verification</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/171017#M3171</link>
      <description>&lt;P&gt;For the newer python client library add verify=False to your HostConnection string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;config.CONNECTION = HostConnection('hostname or IP', 'user', 'password', verify=False)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 22:58:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Python-How-to-disable-SSL-certificate-verification/m-p/171017#M3171</guid>
      <dc:creator>ken</dc:creator>
      <dc:date>2021-10-20T22:58:30Z</dc:date>
    </item>
  </channel>
</rss>

