Encryption Process - Intergraph Smart Materials - Version 2017 (2.0) - Installation - Hexagon PPM

Intergraph Smart Materials Web API Installation 2017 (2.0)

PPMProduct
Intergraph Smart Materials
PPMCategory_custom
Installation & Upgrade

The process is to encrypt the connection strings present in web.config of the hosted application.

Consider the following sample Web.config file for the application which is hosted in IIS.

The credentials are stored as plain text in the connection string.

  1. Open Cmd in Administrator mode.

  2. Open the following path:

    %windir%\Microsoft.NET\Framework\v4.0.30319\

  3. Now to encrypt the connection strings, give the following command:

    aspnet_regiis -pef "connectionStrings" "C:\Program Files\INTERGRAPH\SPMAT API"

    In this command, pef is keyword to encrypt the connection string.

    The second argument connectionStrings indicates that the name of the configuration section needs to be encrypted.

    The third argument is the physical path of the folder where the web.config file is located.

Now the section is encrypted and the web.config looks like: