What do I have to do to make AGS admin scripts work on HTTPS?

Discussion created by salival on Feb 12, 2014
I have some Admin scripts that used to work fine. Then I enabled SSL on my ArcGIS Server and they stopped working. From reviewing, it seems that httplib (used in the GetToken function) will not work for SSL without some steps that I cannot figure out.

My question is: What do I need to do to my Python Admin scripts (modified from the ArcGIS Help examples) to make them work after I've enabled SSL on my ArcGIS Server site?