locked
When decrypting a web.config section using aspnet_regiis will fail RRS feed

  • Question

  • User-540818677 posted

    I usually secure the connection string and any confidential data inside my web.config file using these commands:-

    aspnet_regiis -pe "customAppSettingsGroup/customAppSettings" -app "/" -prov "DataProtectionConfigurationProvider"
    
    ASPNET_REGIIS -pef "customAppSettingsGroup/customAppSettings" "C:\Backups\MSE\MSE\MSE"

    but my question is when decrypting those values will fail? or as long as the web.config is on the same server then we can decrypt the value using Asp.Net_REGIIS? or it depends on the certificate inside the server, so for example if the certificate got updates or changed the decrypt will fail?

    Thanks

    Friday, April 30, 2021 1:34 PM

All replies