<?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 CERTIFICATE_VERIFY_FAILED using ArcGIS API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/certificate-verify-failed-using-arcgis-api-for/m-p/847239#M3687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently ran into this problem and want to share it with the community.&amp;nbsp; My application started failing a couple of weeks ago on a couple of API calls with this SSL error.&amp;nbsp; In both cases my code was passing a URL into the API - one to create a feature service and the other to upload a thumbnail. So it was easy to figure out which URLs were causing the problem. Usually I copy the URL into a browser on the same system, let it fail with the SSL error, then use the browser UI to inspect the server certificate and decide what to do from there.&amp;nbsp; This time however, the browser was able to access the URL successfully. This surprised me since I believe Python and the browser (Chrome) use the same local certificate store. I started Windows certmgr and checked the certificates under "Trusted Root Certification Authorities" and all of the signers in the certificate path had a valid certificate.&amp;nbsp; To make a long story short I eventually looked under "Intermediate Certification Authorities" and found that one of the signers in the chain had an expired certificate (in addition to the valid certificate under&amp;nbsp;&lt;SPAN&gt;"Trusted Root Certification Authorities").&amp;nbsp; So evidently Chrome and Python (I think the API uses the urllib package to be more precise) handle this situation differently - Chrome seems to ignore the expired certificate, which Python rejects the connection attempt.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jun 2020 15:06:59 GMT</pubDate>
    <dc:creator>DonMorrison1</dc:creator>
    <dc:date>2020-06-19T15:06:59Z</dc:date>
    <item>
      <title>CERTIFICATE_VERIFY_FAILED using ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/certificate-verify-failed-using-arcgis-api-for/m-p/847239#M3687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently ran into this problem and want to share it with the community.&amp;nbsp; My application started failing a couple of weeks ago on a couple of API calls with this SSL error.&amp;nbsp; In both cases my code was passing a URL into the API - one to create a feature service and the other to upload a thumbnail. So it was easy to figure out which URLs were causing the problem. Usually I copy the URL into a browser on the same system, let it fail with the SSL error, then use the browser UI to inspect the server certificate and decide what to do from there.&amp;nbsp; This time however, the browser was able to access the URL successfully. This surprised me since I believe Python and the browser (Chrome) use the same local certificate store. I started Windows certmgr and checked the certificates under "Trusted Root Certification Authorities" and all of the signers in the certificate path had a valid certificate.&amp;nbsp; To make a long story short I eventually looked under "Intermediate Certification Authorities" and found that one of the signers in the chain had an expired certificate (in addition to the valid certificate under&amp;nbsp;&lt;SPAN&gt;"Trusted Root Certification Authorities").&amp;nbsp; So evidently Chrome and Python (I think the API uses the urllib package to be more precise) handle this situation differently - Chrome seems to ignore the expired certificate, which Python rejects the connection attempt.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2020 15:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/certificate-verify-failed-using-arcgis-api-for/m-p/847239#M3687</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2020-06-19T15:06:59Z</dc:date>
    </item>
  </channel>
</rss>

