ArcGIS Portal- Sample script: Update the URL of a service in a web map. SSL Error

01-30-2017 07:54 PM
Occasional Contributor

I'm trying to update webmaps within our Portal by using the script here: Example: Update the URL of a service in a web map—Portal for ArcGIS (10.4.1) | ArcGIS Enterprise 

The script is failing with "IOError : [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590).

We run portal in a disconnected environment so don't use SSL certificates signed by an external authority, however there are no SSL errors when accessing Portal as far as I can tell. Does anyone have any ideas on how to

a) Fix this issue (or ways to check that the SSL cert is the error?)

b) Bypass the SSL check either via the script ( or through the server (i.e. allow non https)

Or anything else to help! 

Thanks in advance

Tags (3)
0 Kudos
1 Reply
Esri Notable Contributor

You'll need to ignore the certificate warnings or add the certificate to the trusted root certificate store.  To ignore the certificate warnings, take a look at posts here and here.

0 Kudos