<?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: ArcPy and SSL Certificates in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-and-ssl-certificates/m-p/809685#M2420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is related to the servers certificate. As the message tells, you are trying to connect to the server using a name that&amp;nbsp;does not match&amp;nbsp;the servers certificate.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try changing it to use the FQDN (Full Qualified Domain Name) of the server:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://hostname.domain.name/webadaptor"&gt;https://hostname.domain.name/webadaptor&lt;/A&gt;&amp;nbsp;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://hostname.domain.name:6443/arcgis"&gt;https://hostname.domain.name:6443/arcgis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or click on &lt;EM&gt;"View Certificate"&lt;/EM&gt; to find the &lt;EM&gt;"Issued To"&lt;/EM&gt; field and use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional Info:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://enterprise.arcgis.com/en/server/10.5/administer/windows/suppress-warnings-from-self-signed-certificates.htm" title="http://enterprise.arcgis.com/en/server/10.5/administer/windows/suppress-warnings-from-self-signed-certificates.htm"&gt;Suppress warnings from self-signed certificates—ArcGIS Server Administration (Windows) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 10:46:35 GMT</pubDate>
    <dc:creator>KaiSteinicke1</dc:creator>
    <dc:date>2018-04-02T10:46:35Z</dc:date>
    <item>
      <title>ArcPy and SSL Certificates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-and-ssl-certificates/m-p/809684#M2419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use arcPy (Python 2.7.13) to register a folder in ArcGIS Enterprise Server 10.5.1 on Windows 2012r2. I have verified my connection file works as well. My python script is based on the example &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/functions/adddatastoreitem.htm#C_GUID-B9129614-C456-4DA8-AB77-E5DEAB5A8717"&gt;here&lt;/A&gt;,&amp;nbsp;which is also below&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;conn = "C:/config/myConnection.ags"&lt;BR /&gt;path = "C:/Data"&lt;/P&gt;&lt;P&gt;arcpy.AddDataStoreItem(conn, "FOLDER", "MYDIR", path, path)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When executing the script I am prompted to accept a cert like the image below&lt;IMG alt="ArcPy Certificate Prompt" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/399262_arcpy-certificate-prompt1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is there any way to configure ArcPy with a certificate, so that I do not receive this prompt? I've tried to import the ssl module and set both the cafile and SSL_CERT_FILE environment variables. Also, it seems that clicking&amp;nbsp;either "Yes" or "No" in the Security Alert prompt both cause the script to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 21:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-and-ssl-certificates/m-p/809684#M2419</guid>
      <dc:creator>XiaoWang4</dc:creator>
      <dc:date>2018-03-19T21:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy and SSL Certificates</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-and-ssl-certificates/m-p/809685#M2420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is related to the servers certificate. As the message tells, you are trying to connect to the server using a name that&amp;nbsp;does not match&amp;nbsp;the servers certificate.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try changing it to use the FQDN (Full Qualified Domain Name) of the server:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://hostname.domain.name/webadaptor"&gt;https://hostname.domain.name/webadaptor&lt;/A&gt;&amp;nbsp;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://hostname.domain.name:6443/arcgis"&gt;https://hostname.domain.name:6443/arcgis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or click on &lt;EM&gt;"View Certificate"&lt;/EM&gt; to find the &lt;EM&gt;"Issued To"&lt;/EM&gt; field and use that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Additional Info:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://enterprise.arcgis.com/en/server/10.5/administer/windows/suppress-warnings-from-self-signed-certificates.htm" title="http://enterprise.arcgis.com/en/server/10.5/administer/windows/suppress-warnings-from-self-signed-certificates.htm"&gt;Suppress warnings from self-signed certificates—ArcGIS Server Administration (Windows) | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 10:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcpy-and-ssl-certificates/m-p/809685#M2420</guid>
      <dc:creator>KaiSteinicke1</dc:creator>
      <dc:date>2018-04-02T10:46:35Z</dc:date>
    </item>
  </channel>
</rss>

