<?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: SSL-error when programmatically stop and start service Pro 3.1 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/ssl-error-when-programmatically-stop-and-start/m-p/1305706#M8849</link>
    <description>&lt;P&gt;This issue seems to be related to a an upgrade of the underlying openssl version.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;EM&gt;ESRI has moved ArcGIS Pro 3.0.2+ to OpenSSL version 3.x and cryptography version 37.0.2&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/fs-overwrite-script-stopped-working-after-updating/m-p/1240320/thread-id/8146" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/fs-overwrite-script-stopped-working-after-updating/m-p/1240320/thread-id/8146&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 12:34:38 GMT</pubDate>
    <dc:creator>Hannes_Brandt</dc:creator>
    <dc:date>2023-07-05T12:34:38Z</dc:date>
    <item>
      <title>SSL-error when programmatically stop and start service Pro 3.1</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/ssl-error-when-programmatically-stop-and-start/m-p/1268663#M8509</link>
      <description>&lt;P&gt;I have a simple ArcGIS API for Python script to stop and start Portal services that was working on a Windows Server with Pro 2.9.5 installed on it.&amp;nbsp; I upgraded to Pro 3.1 and now I get the following error "SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED"&lt;/P&gt;&lt;P&gt;Has anyone updated a similar type of script to Pro 3.1 and seen a similar failure?&amp;nbsp; If so, was there anything you could do besides downgrading the Pro software to resolve this issue?&lt;/P&gt;&lt;P&gt;Any feedback is greatly appreciated.&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 18:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/ssl-error-when-programmatically-stop-and-start/m-p/1268663#M8509</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2023-03-16T18:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: SSL-error when programmatically stop and start service Pro 3.1</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/ssl-error-when-programmatically-stop-and-start/m-p/1305697#M8848</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can confirm this behaviour. We recently upgraded the ArcGIS PRO installation on a Windows terminal server from version&amp;nbsp;2.9.6 to 3.1.1 and all our python tasks using&amp;nbsp;arcgis.gis.GIS to connect to our portals stopped working with the named error.&lt;/P&gt;&lt;P&gt;It seems like the option "verify_cert" is being ignored, as we have set this to false.&lt;/P&gt;&lt;P&gt;The connection is established like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
GIS(url="[PORTAL_DNS]:7443/arcgis", username=adminUser, password=adminPass, key_file=None, cert_file=None, verify_cert=False)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no difference when connecting to the portal using the webadaptor or not (port 7443 or 443).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error (verify_cert=False)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Setting `verify_cert` to False is a security risk, use at your own risk.
Error: Could not initialize PortalManager. Please set verify_cert=False due to encountered SSL error: HTTPSConnectionPool(host='[PORTAL_DNS]', port=7443): Max retries exceeded with url: /arcgis/sharing/rest/info?f=json (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1129)')))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error (verify_cert=True)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Error: Could not initialize PortalManager. Please set verify_cert=False due to encountered SSL error: HTTPSConnectionPool(host='[PORTAL_DNS]', port=7443): Max retries exceeded with url: /arcgis/sharing/rest/info?f=json (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1129)')))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error (verify_cert=True, using webadaptor URL)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Error: Could not initialize PortalManager. Please set verify_cert=False due to encountered SSL error: HTTPSConnectionPool(host='[PORTAL_DNS]', port=443): Max retries exceeded with url: /arcgis/sharing/rest/info?f=json (Caused by SSLError(SSLError(1, '[SSL: UNSAFE_LEGACY_RENEGOTIATION_DISABLED] unsafe legacy renegotiation disabled (_ssl.c:1129)')))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;("PortalManager" is our internal python class used to establish the connection)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Funny thing is, that this error occures &lt;STRONG&gt;only with our staging portal&lt;/STRONG&gt;, not with our production portal. Both portals are on enterprise version 11.1 and (should) be configured 100% identically with IWA activated.&lt;/P&gt;&lt;P&gt;The python skript version and windows task user used for both portals are the same. And both are run with the same python environment from the updated&amp;nbsp;ArcGIS PRO installation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Hannes Grothkopf&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 11:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/ssl-error-when-programmatically-stop-and-start/m-p/1305697#M8848</guid>
      <dc:creator>Hannes_Brandt</dc:creator>
      <dc:date>2023-07-05T11:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: SSL-error when programmatically stop and start service Pro 3.1</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/ssl-error-when-programmatically-stop-and-start/m-p/1305706#M8849</link>
      <description>&lt;P&gt;This issue seems to be related to a an upgrade of the underlying openssl version.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"&lt;EM&gt;ESRI has moved ArcGIS Pro 3.0.2+ to OpenSSL version 3.x and cryptography version 37.0.2&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/fs-overwrite-script-stopped-working-after-updating/m-p/1240320/thread-id/8146" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/fs-overwrite-script-stopped-working-after-updating/m-p/1240320/thread-id/8146&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 12:34:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/ssl-error-when-programmatically-stop-and-start/m-p/1305706#M8849</guid>
      <dc:creator>Hannes_Brandt</dc:creator>
      <dc:date>2023-07-05T12:34:38Z</dc:date>
    </item>
  </channel>
</rss>

