在网络场中加密 web.config [英] encrypting web.config in web farm

查看:41
本文介绍了在网络场中加密 web.config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 web.config 中加密连接字符串.我的应用程序将部署在网络农场中.

I want to encrypt the connectionstrings in my web.config. And my application will be deployed in web farm.

我尝试阅读一些关于此的博客,但感到困惑.

I tried reading some blogs about this, but got confused.

谁能告诉我一个他们真正尝试过并成功的链接.

Can somebody tell me a link which they have really tried and got succeded.

推荐答案

我们使用 RSA 保护配置提供程序.那个页面读起来并不轻松,但它有你需要的东西.

We use the RSA Protected Configuration provider. That page isn't light reading, but it's got what you need.

我推荐这样的命令(文章中的例子):

I recommend the command like so (example from the article):

aspnet_regiis.exe -pef "connectionStrings" C:\Projects\MachineRSA

aspnet_regiis.exe -pef "connectionStrings" C:\Projects\MachineRSA

这篇关于在网络场中加密 web.config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆