小编Mov*_*GP0的帖子

Visual Studio 2017:发生了致命错误,需要终止调试

在调试模式下执行单元测试时,我收到以下错误消息:

A fatal error has occurred and debugging needs to be terminated. For more 
details please see the Microsoft Help and Support web site. 
HRESULT=0x8000ffff. ErrorCode=0x0.
Run Code Online (Sandbox Code Playgroud)

unit-testing visual-studio-2017

11
推荐指数
2
解决办法
3641
查看次数

为IIS创建有效的测试SSL证书

我想在IIS的开发环境中测试SSL连接.为此,我需要创建一个安装在机器商店中的自签名根证书,以及另一个使用根证书签名以在IIS中安装的证书.

这样做makecert现在已被弃用,所以我想知道如何使用Powershell和New-SelfSignedCertificate命令来完成它.

如果您获得正确的密钥使用设置,则可获得奖励积分:-)

注意:直接在IIS中使用自签名证书不起作用,因为浏览器和WCF认为它们无效.


供参考,以下是使用makecert的方法:

# create the self signed root certificate 
makecert -n "CN=root.lan" -r -sv root.pvk root.cer

# create the certificate for IIS that gets signed with the root certificate 
makecert -sk "Local Certificate" -iv root.pvk -n "CN=localhost" -ic root.cer -sr localmachine -ss my -sky exchange -pe

# convert to other formats 
cert2spc localhost.cer localhost.spc
pvk2pfx -pvk localhost.pvk -spc localhost.spc -pfx localhost.pfx
Run Code Online (Sandbox Code Playgroud)

iis powershell ssl wcf certificate

8
推荐指数
1
解决办法
1449
查看次数