How To: Encrypt the connection string used by ArcGIS Server when connecting to SQL Server
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.
The following instructions can be used to encrypt the connect string information stored in the Security and REST applications.
- Open a command prompt.
- Navigate to:
- 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"
For more information on connecting to SQL Server and encrypting connection string information, see the MSDN documentation provided in the Related Information section below.