简体   繁体   English

在IIS6中使用免费SSL证书设置测试asp.net网站的详细步骤是什么?

[英]what are the detailed steps to setup test asp.net site using free SSL certificate in IIS6?

请提供详细的步骤来设置IIS6,无法通过谷歌搜索找到良好的信息...是否有只能用于本地测试的免费SSL证书?

  1. Download the IIS 6 resource kit . 下载IIS 6资源工具包 Install at least the SelfSSL utility. 至少安装SelfSSL实用程序。
  2. Open a command prompt; 打开命令提示符; go to C:\\Program Files\\IIS Resources\\SelfSSL and 转到C:\\Program Files\\IIS Resources\\SelfSSL

     selfssl /T /N:CN=localhost /V:365 

    This will generate a self-signed certificate for https://localhost/ and offer to install it for you in each web site on your system. 这将为https:// localhost /生成一个自签名证书,并提供将其安装在系统上的每个网站中。 This will also add it to your trusted certificate store so that IE will automatically accept the certificate. 这还将把它添加到您的受信任证书存储中,以便IE将自动接受证书。 The /V option is the number of days the certificate will be valid for, ie roughly a year. /V选项是证书有效的天数,即大约一年。

    If you want to use https://your-machine-name/ instead of localhost then just change or omit the /N: option. 如果要使用https:// your-machine-name /代替localhost,则只需更改或忽略/N:选项。 If not the first you can specify which specific site using /S: . 如果不是第一个,则可以使用/S:指定哪个特定站点。 And there are other options avialable to configure the key generation if you need them. 如果需要,还有其他一些选项可用于配置密钥生成。

Normally when you install an SSL certificate in IIS you'd also need to iisreset before it'll work but SelfSSL takes care of this too. 通常,当您在IIS中安装SSL证书时,还需要先进行iisreset才能起作用,但是SelfSSL也可以解决此问题。

我现在使用IISExpress来测试SSL超级简单。...设置步骤:*只需运行Web平台安装程序*配置为以iis6兼容模式运行,但它不是真正的IIS 6 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM