IIS7 LocalHost 证书 - 删除 IE8 警告
在本地主机上测试时尝试消除 IE8 中的不匹配错误。
尝试在 IE8 中以管理员身份安装证书并使用受信任列表。 无法更改证书中的 CommonName。
尝试过 Selfssl.exe 和 MakeCert winhttpcertcfg - 没有尝试这个,但不确定它是否会在 win7 上工作
MakeCert 创建了一个文件,但它是一个 .CER 文件,而 IIS7 没有看到它。 尝试将其放在 MMC 证书文件夹中的“计算机帐户”(个人和受信任的根...)文件夹中。实际上几乎每个文件夹。
Win 7 VS2010 IE8 需要 localhost https 自签名证书才不会在 IE8 中抛出错误?
如果 IIS7 能够看到 .CER 文件或对其进行转换,我不会介意 MakeCert.exe。
Trying to get rid of the mismatch error in IE8 when testing on localhost.
Tried installing the Cert as admin, in IE8 and use the trusted list.
Can not change the CommonName in the cert.
Tried Selfssl.exe and MakeCert
winhttpcertcfg - did not try this, but not sure it will work on win7
MakeCert created a file, but it was a .CER file and IIS7 is not seeing it.
Tried placing it in the MMC certificate folders, for "Computer Account" (personal and Trusted Root...)folders. Actually just about everyfolder.
Win 7 VS2010 IE8
Need localhost https selfsigned cert to not throw error i IE8?
I would not mind the MakeCert.exe if IIS7 would see the .CER file or convert it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
能够在 2011 年 2 月 15 日 user295734 的回答的帮助下创建并关联证书。我遵循的步骤:
cd "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin"
makecert -r -pe -n "CN=localhost" -sky Exchange -sv C:\selfcert.pvk C:\selfcert.cer
-pi everything
而不是-pi a
。pvk2pfx -pvk C:\selfcert.pvk -pi a -spc C:\selfcert.cer -pfx C:\selfcert.pfx
一个。
c:\Selfcert.pvk
b.
c:\Selfcert.cer
c.
Selfcert.pfx
Was able to create and associate the certs with help from user295734's answer on Feb 15 2011. Steps that I followed:
cd "C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin"
makecert -r -pe -n "CN=localhost" -sky exchange -sv C:\selfcert.pvk C:\selfcert.cer
-pi anything
rather than-pi a
.pvk2pfx -pvk C:\selfcert.pvk -pi a -spc C:\selfcert.cer -pfx C:\selfcert.pfx
a.
c:\Selfcert.pvk
b.
c:\Selfcert.cer
c.
Selfcert.pfx
能够使用这些命令行创建 PFF 证书文件,并在下面创建了一个批处理文件。
在Win7 IIs7 IE8上
确保您有程序 makecert 和 pvk2pfx
使用下面的 BAT 创建证书文件。 (使用任何tmp路径,必须存在否则将不会运行)
然后,您将使用 MMC(BAT 下面的一些说明)将 PFX(不是 CER)文件导入 MMC 证书(个人和受信任的根)
注意:-pi a 是密码。当您运行这些程序时,它会询问您这一点。您可以将 -pi 设置为任何值,但请务必设置它,因为导入 PFX 证书时它会要求您输入此密码。
使用MMC创建pvk文件
cmd 提示符运行 mmc (mmc.exe)。
文件>>添加/删除管理单元>>证书>>添加>>电脑帐户>>好的
打开控制台根目录下的证书。右键单击个人>>所有任务>>进口。
然后将 PFX 文件导入个人证书和受信任的根证书。授权。
在 IIS7 中,选择证书,刷新,本地主机证书应该在那里。
还有另外 2 个程序可以提供帮助,但我没有尝试过
cert2spc C:_bat_cert\selfcert.cer C:_bat_cert\selfcert.spc
pvkimprt -pfx C:_bat_cert\selfcert.pvkselfcert.spc C:_bat_cert\selfcert.pvkselfcert.pvk
本地主机证书确实删除了我的 IE8 警告!
但我的主要问题是通过 https://localhost 下载文件,我认为这是证书问题,但错误仍然显示,“无法从本地主机下载”
关于下载问题有什么建议吗?
Was able to create the PFF cert file with these cmd lines, created a batch file below.
On Win7 IIs7 IE8
Make sure you have the programs makecert and pvk2pfx
Use the BAT below to create the cert files. (use any tmp path, has to exist or will not run)
Then you'll use the MMC(some instructions below BAT) to import the PFX (NOT the CER) file into MMC certificates(Personal and trusted Root)
NOTE: -pi a is the password. It will ask you for this when you run these programs. You can set -pi to what ever, but make sure to set it, because when importing the PFX cert it will ask you for this password.
using MMC to create pvk file
cmd prompt run mmc (mmc.exe).
File >> Add/removeSnap-in >> Certificates >> ADD >> Computer account >> OK
Open Certificates under Console Root. Right click Personal >> All Tasks >> Import.
Then import the PFX file into the Personal Certificates and Trusted Root Cert. Auth.
In IIS7, choose Certificates, refresh, and the localhost cert should be there.
There was also 2 other programs to help out, that i did not get to try
cert2spc C:_bat_cert\selfcert.cer C:_bat_cert\selfcert.spc
pvkimprt -pfx C:_bat_cert\selfcert.pvkselfcert.spc C:_bat_cert\selfcert.pvkselfcert.pvk
The localhost cert did remove my IE8 warning!
But my main issue was with downloading files over https://localhost I thought it was cert problem, but the error is still showing, "Unable to download from localhost"
Any suggestions on the download problem?