我正在尝试创建一个自签名通配符 SSL 证书,用于许多运行 IIS 6 的开发和测试服务器。遵循各种指南已经找到了几种生成证书的方法,但我还没有祝你好运。我用过的最成功的方法是遵循 this OpenSSL guide并像这样使用 makecert.exe:
makecert.exe -r -b 01/01/2009 -e 01/01/2042 -sr LocalMachine -ss MY -a sha1 -n CN="*.example.com" -sky exchange -pe -eku 1.3.6.1.5.5.7.3.1 -sy 12 -sp "Microsoft RSA SChannel Cryptographic Provider" wildcard.cer
两者都生成 IIS 6 接受的证书,但是当我实际尝试查看该站点时,我在 firefox 中收到以下错误:
Data Transfer Interrupted
The connection to dev.example.com was interrupted while the page was loading.
IE 只是给出:
Internet Explorer cannot display the webpage
Most likely causes:
- You are not connected to the Internet.
- The website is encountering problems.
- There might be a typing error in the address.
无论是通过域名、机器名、localhost、本地ip还是loopback ip访问都会出现这个错误。
那么...我如何创建 IIS 6 可以使用的自签名通配符证书?或者我如何解决我已经创建的问题所遇到的问题?
最佳答案
您可以使用 MS 提供的 IIS 6 资源工具包,这是一个名为 SelfSSL 的命令行应用程序。它可以生成 SSL key 并将其导入到您的 IIS 安装中。
关于ssl - 如何为 IIS 6 创建自签名通配符 SSL 证书?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/474609/