Asp.net 如何使用aspnet_regiis.exe-pef一次加密多个Web.config节?
通过运行:Asp.net 如何使用aspnet_regiis.exe-pef一次加密多个Web.config节?,asp.net,iis,encryption,web-config,aspnet-regiis.exe,Asp.net,Iis,Encryption,Web Config,Aspnet Regiis.exe,通过运行: aspnet_regiis.exe -pef "connectionStrings" C:\inetpub\wwwroot\Site 我可以加密我的连接字符串。但是,我想同时加密另一个部分。是否有任何方法可以为-pef提供多个参数 比如: aspnet_regiis.exe -pef "connectionStrings,applicationSettings/Project" C:\inetpub\wwwroot\Site 通过在DOS.bat文件中执行两次aspnet_reg
aspnet_regiis.exe -pef "connectionStrings" C:\inetpub\wwwroot\Site
我可以加密我的连接字符串。但是,我想同时加密另一个部分。是否有任何方法可以为-pef
提供多个参数
比如:
aspnet_regiis.exe -pef "connectionStrings,applicationSettings/Project" C:\inetpub\wwwroot\Site
通过在DOS.bat文件中执行两次aspnet_regis,我成功地使用了aspnet_regis来加密(和解密)两个部分,ConnectionString和appSettings。看起来您必须为要加密(和解密)的每个部分执行一次aspnet_regis