2total entries in decryption
Decrypt a configuration section in a configuration file hosted in IIS
Syntax
aspnet_regiis -pd <section> -app <virtualPath> [-location <subPath>] [-pkm] |
Option | Description |
---|---|
section | The section of the web.config to be encrypted. |
virtualPath | The IIS website that hosts the web.config. |
location |
The subpath inside the IIS website that hosts the web.config. |
pkm | Encrypts the machine config instead of the local config. |
Decrypt a configuration section in a configuration file not hosted in IIS
Syntax
aspnet_regiis -pdf <section> <directory> [-pkm] |
Option | Description |
---|---|
section | The section of the web.config to be encrypted. |
directory | The IIS website that hosts the web.config. |
pkm | Encrypts the machine config instead of the local config. |
Note: this option looks for a web.config file, there is no way you can specify a difference name. If needed, rename your app.config to web.config, encryp/decrypt, then rename again.