Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 如何使用aspnet_regiis.exe-pef一次加密多个Web.config节?_Asp.net_Iis_Encryption_Web Config_Aspnet Regiis.exe - Fatal编程技术网

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