Knowledge Base - Technical Articles

Technical Article   Error:  The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

Article ID: 38408
Software:  ArcGIS Server 9.3.1, 10
Platforms:  Windows 2003Server, Vista, 2008Server, Win 7

Error Message

When creating a Web application in ArcGIS Server Manager > Add Layer > Add Server > Access secured services, after providing the user name and password from the SQL Server Security database, the following error message displays:

"Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel".


Typically, to be able to use security in ArcGIS Server Manager, SSL is required.
If this error displays in ArcGIS Server Manager while trying to add secured Map Services as layers, it indicates that SSL is not set up to trust the certificate.

Solution or Workaround

  1. In Windows, select Start > Run. In the Run dialog box, type 'mmc'.
  2. In the MMC console select File > Add/Remove Snap-in...
  3. Click 'Add...'.
  4. Select 'Certificates', and click 'Add'.
  5. In the 'Certificates snap-in' dialog box, select 'Computer account'. Click 'Next'.
  6. By default 'Local computer:' is selected. Click 'Finish'.
  7. Click 'Close' in the 'Add Standalone snap-ins:' dialog box. Click 'OK'.
  8. Open a browser and type in 'https://<Servername>'.
  9. The following message may display:
    'There is a problem with this website's security certificate.' Select the 'Continue to this website (not recommended)' option. Click the View certificate details. Copy the details to a file. Save the file onto the desktop, and accept defaults.

     The file can be named something like, yoursevername.cer.

    Close the certificate dialog box.
  10. Go back to the MMC console. In the Console Root dialog box, double-click to expand 'Certificates (Local Computer)'.
  11. Right-click 'Trusted Root Certification Authorities', and select 'All Tasks' > 'Import'.
  12. In the 'Certificate Import Wizard' dialog box, click 'Next'.
  13. 'Browse' to select the certificate file saved on the desktop.
  14. Accept the defaults, and click 'Next'.
  15. Click 'Finish'. A message indicating success displays.
  16. Open a browser, and type 'https://<Servername>'.
  17. The default Web page should launch without error.
  18. The 'Access secured services' is now accessible in the Add Server dialog box in ArcGIS Server Manager.

Created: 10/18/2010
Last Modified: 1/7/2011

Article Rating: (2)
If you would like to post a comment, please login


By HemantAn - 09/25/2015 8:39 AM

The article needs to be updated.

User at 10.3 are also experiencing the issue


By ammielke - 08/05/2011 1:23 PM

The article is incorrect or the solution didn’t work.

Going through the suggested steps did not fix the problem. Still get the error "Could not establish trust relationship for the SSL/TLS secure channel" when trying to connect to ArcGIS Server.