Hey there,
thanks for the tip. i'll try to do that and hope it works
I believe that the HTTP Only, HTTP and HTTPS, and HTTPS Only settings for the protocol under Security --> Config in AGS Manager pertain to the web adaptor, so altering the value as you mentioned should not cause the issue especially since you said that no web adaptor had been configured and your URL requests use a port number. Based on the info you provided, I would suspect the importing of another security certificate to be the culprit for the time being. It sounds like SSL was working just fine for you initially. A few things to try and/or consider first...
Did you import a CA-signed certificate to replace the default self-signed certificate in AGS? If so, did you use the importRootorImmediate option or the importExistingServerCertificate option? If it's a CA-signed certificate, take a look at the certification path properties for that certificate and verify that all of the certs in the path (i.e., the root cert, any intermediary certs, and the cert itself) exist in the Trusted Root Certification Authority on the AGS machine. You'll know if all of them are trusted when you view the certification path properties depending on whether or not a red X appears next to any of them.
Alternatively, if you need to "clear out" any changes you made regarding the security certificates to get things back to normal per se, you MIGHT be able to try the following:
1. On the server, go to C:\arcgisserver\config-store\machines and open the <servername>.json file (assumes AGS was installed at C:\arcgisserver) using Notepad or Notepad++. Make a backup of the file in the same directory, first.
2. In that file, find the section with "webServerCertificateAlias" and change the value after the colon to be exactly selfsignedcertificate surrounded by double quotes just as you see with the current value. If it's already set to this value, then more than likely you did not try to import a CA-signed certificate into AGS and this most likely isn't your issue.
3. Save the file and then re-start the ArcGIS for Server Windows service.
4. After about a minute following restart of the service in #3 above, try re-requesting the URLs you mentioned to see if the behavior is different. If so, then refer back to the second paragraph of my reply and make sure that, if using a CA-signed certificate, you follow the proper steps to ensure it is trusted on the AGS machine along with any of its intermediary and root certs. If not, then revert back to the backup file created in #1 above and restart the AGS service again since this probably isn't the correct issue and associated fix.
Did you by chance apply SP1 to your 10.1 installation recently? Before performing the re-installation, please check the Windows Firewall on your server and client to see if it might be running along with any other anti-virus software that could be blocking the 6080 and 6443 ports. You may need to temporarily disable them to see if this does the trick; if so, you can create a focused rule for the ports you need. Also, what happens when you log directly into the server and attempt to request the same URLs from a browser locally?
I've had this happen before after importing a trusted certificate - that ArcGIS Server didn't like. crafty762 suggestion is close to what I did...but to a different file.
1. Navigate to the ArcGIS Server Tomcat directory on the server. Depending on where you install ArcGIS Server, it will be something like ....ArcGIS\Server\framework\runtime\tomcat\conf
2. Open the server.xml and scroll down to the bottom.
3. On the last line of code, you will see a keyAlias =�?�name of the certificate�?�. Since this one isn�??t working, change the alias back the original ESRI selfsigned certificate (SelfSignedCertificate). Save file.
4. Stop and start the ArcGIS Server service.
Just wanted to confirm that Stephanie Snider's workaround works. I followed crafty762's advise (changing .../config-store/machine_name.json) and that didn't work. Changing the server.xml under Tomcat conf did the trick!
Steph you are a life saver, I can't thank you enough! Reinstalling and re-publishing services can be a huge nightmare for many. There's always hope!
This worked for me on AGS 10.4 running on Ubuntu Server on AWS.