To ensure all servers in your IIS farm can decrypt sensitive data (like application pool passwords) from the shared applicationHost.config, you’ll need to export and import the CNG encryption keys manually using the iisconfig tool. Here's how:
- On Server 1, run: iisconfig.exe /export /configkey /keypath:"D:\config_keys"
- On Server 2, run: iisconfig.exe /import /configkey /keypath:"D:\config_keys" This imports the same key, allowing Server 2 to decrypt the configuration. Make sure the key path is accessible and permissions are properly set. Also, ensure the same user identity is used across servers for application pools, ideally a domain account to avoid local SID mismatches