如果未设置服务器的机器密钥,如何查找它

发布于 2024-07-09 01:50:19 字数 85 浏览 11 评论 0原文

尝试传输服务器,但连接字符串已加密,并且 web.config 中没有设置机器密钥。 有没有办法找出旧服务器上的机器密钥,以便我们可以在新服务器上设置它?

Trying to transfer servers but a connection string is encrypted and there is no machinekey set in the web.config. Is there anyway to find out what the machinekey was on the old server so we can set it on the new server?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情独悲 2024-07-16 01:50:19

为什么不在原始服务器上使用 -pd 开关进行解密? - 例如:

aspnet_regiis.exe -pdf "connectionStrings" "C:\Inetpub\wwwroot\MySite"

Why not just decrypt using the -pd switch on the original server? - for example:

aspnet_regiis.exe -pdf "connectionStrings" "C:\Inetpub\wwwroot\MySite"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文