Windows 重启后可信证书问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6602397/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Trusted certificate problem after restart of Windows
提问by Julien
I'm currently developping a website with Visual Studio 2010 and IIS Express 7.5 on Windows 7 x64 in a VirtualBox VM.
我目前正在 VirtualBox VM 中的 Windows 7 x64 上使用 Visual Studio 2010 和 IIS Express 7.5 开发网站。
I have followed this article and made it works like a charm. Working with SSL at Development Time is easier with IISExpress
我已经关注了这篇文章,让它像魅力一样工作。 使用 IISExpress 在开发时使用 SSL 更容易
The problem comes when I shut down my machine and start it back the next day. It doesn't work anymore, I have to redo the whole opertations in order to make it work.
当我关闭我的机器并在第二天重新启动它时,问题就出现了。它不再起作用,我必须重做整个操作才能使其起作用。
Does anyone has an idea why everything is screwed up each time I restart my machine?
有谁知道为什么每次我重新启动机器时一切都搞砸了?
Thanks in advance.
提前致谢。
回答by jglouie
I've had this exact problem with full blown IIS 7.5 and Server 2008.
我在完整的 IIS 7.5 和 Server 2008 中遇到了这个确切的问题。
My particular problem came about when moving the server authentication certificate (and associated private key) around (through dragging) in the MMC Certificate Manager.
在 MMC 证书管理器中(通过拖动)移动服务器身份验证证书(和关联的私钥)时,出现了我的特殊问题。
There's a step in the tutorial you linked to where they ask you to "drag" the certificate from Personal to Trusted Root Certificates. I'd suggest deleting that certificate from the Certificate Manager and importing it directly into the Trusted Root Certificates.
您链接到的教程中有一个步骤,他们要求您将证书从个人“拖动”到受信任的根证书。我建议从证书管理器中删除该证书并将其直接导入受信任的根证书。
回答by DefSol
Try editing the app.config as an administrator.
尝试以管理员身份编辑 app.config。
The other thing is you VM's hard drive might be writing changes to a read only delta which get's dropped when you restart, hence nothing is saved
另一件事是您的虚拟机硬盘驱动器可能正在将更改写入只读增量,当您重新启动时该增量会被删除,因此没有保存任何内容
回答by tobi
Thias was the solution for me:
Thias 是我的解决方案:
Delete the certificate from the computer store and import it again. Dont drag and drop it from the user store.
从计算机存储中删除证书并重新导入。不要从用户存储中拖放它。