计算机密钥生成功能的最新版本的IIS不存在 [英] Machine Key generation feature not exist in latest IIS Version

查看:268
本文介绍了计算机密钥生成功能的最新版本的IIS不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在回答最近的一个<一href=\"http://stackoverflow.com/questions/25260435/mvc-antiforgerytoken-machinekey-for-encryption/25260767#25260767\">question就这样,我遇到了这个反常现象。

MSDN博客建议使用IIS生成机键,看起来更安全的把我当成正在使用微软的工具。然而,似乎此功能只支持到IIS 7或更少。

在我的箱子IIS 8.5我并不​​觉得。我在IIS 7.5,它不是present检查有两种。然而,我发现它在IIS 6.1上一个同事框。

我想知道是否:


  1. 它仍然在IIS中存在的最新版本,如果是,如何使用它?


  2. 如果是从最新版本的IIS,有什么建​​议从微软的方法来产生一个足够安全的计算机密钥删除?


  3. 它是安全的使用这些定制发电机?

    一个。 计算机密钥生成(在线)

    乙。 ASP.NET的machineKey发电机(工具可以修改)



解决方案

请参阅https://support.microsoft.com/kb/2915218#AppendixA关于如何生成一个&LT信息的machineKey&GT; 元素。有一个脚本那里,你可以复制和放大器;粘贴到PowerShell窗口。

提醒:只使用您自己生成你自己的机器上的按键。切勿使用在线生成器。

Answering one of the recent question on SO, i encountered this anomaly.

This msdn blog suggests using IIS to generate machine key, which looks more secure to me as Microsoft tool being used. However, it seems this feature is only supported until IIS 7 or less.

I don't find it on my box IIS 8.5. I checked on IIS 7.5 and its not present there either. However, I found it in IIS 6.1 on a coworker box.

I am wondering whether:

  1. It still exist in IIS latest versions, if yes, how to use it?

  2. If it is removed from latest version of IIS, what's suggested approach from Microsoft to generate a secure enough machine key?

  3. Is it safe to use these custom generators?

    a. Machine Key Generator (online)

    b. ASP.NET machineKey Generator (tool you can modify)

解决方案

See https://support.microsoft.com/kb/2915218#AppendixA for information on how to generate a <machineKey> element. There's a script there that you can copy & paste into a Powershell window.

Reminder: only use keys that you generated yourself on your own machine. Never use an online generator.

这篇关于计算机密钥生成功能的最新版本的IIS不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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