HOW TO

Encrypt the connection string used by ArcGIS Server when connecting to SQL Server

Last Published: April 25, 2020

Summary

After configuring ArcGIS Server to use an external SQL Server database to store security parameters, the connection information to the SQL Server database can be encrypted. Instructions provided describe how to encrypt the connection string used by ArcGIS Server when connecting to SQL Server.

This information applies to ArcGIS Server for the Microsoft .NET Framework.

Procedure

The following instructions can be used to encrypt the connect string information stored in the Security and REST applications.

  1. Open a command prompt.
  2. Navigate to:

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
  3. Execute the ASPNET_REGIIS.exe command using the -PE option to encrypt the connection strings section of the web.config file located under $WWWROOT\ArcGIS\Security.

    aspnet_regiis -pe "connectionStrings" -app "/Security" -prov "DataProtectionConfigurationProvider"

    Note:
    For more information on connecting to SQL Server and encrypting connection string information, see the MSDN documentation provided in the Related Information section below.

Article ID: 000010580

Software:
  • ArcGIS Server

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options