Setting up SSL with a SelfSSL certificate on Windows Server 2003

URL:http://www.visualwin.com/SelfSSL/

 

 

Preface:

This tutorial will demonstrate how to install SelfSSL from the IIS Resource Kit ( http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en ) and set up the certificate in IIS 6.  I will assume you have already downloaded the kit (linked to above) and IIS.

Update:

Poul Bak emailed the following information about these certificates:

"If you set a host header in IIS and you specify that name in SelfSSL you will NEVER see a security warning (because the name of the certificate and the server matches).

Now if you try to access the site from another computer, you WILL get a security warning (not from a trusted authority). This can be avoided if you export the certificate to a file and then import it on the computer from which you want to access the site.

In fact, using self-signed certificates is a great way to ensure your intranet is just as safe as using a 'paid for' certificate - what can be more safe than a certificate that has never left the building - it's guaranteed, that no one has changed it on its way."

Method:

Run iis60rkt.exe.  You will see the welcome screen - click Next

In the next dialog, read over the EULA and select "I agree" and press Next.  In the next dialog, you can usually just press "Next" because your information is usually entered already.

Now in this next dialog, select "Custom" and press "Next"

Here you can change the path of where it installs, just click Next.  In the next dialog we have an option of what we can install.  In this tutorial I will only be installing "SelfSSL" so I will unselect everything else.  You can install whatever looks interesting, if you wish.

Now you will be presented with an overview, you can click "Next" and the install will copy the selected files.  When that's done, click "Finish"

Now we will create a certificate.  Click Start -> All Programs -> IIS Resources -> SelfSSL -> SelfSSL

Type "selfssl /T", without the quotes and press "y" when prompted.  Rocky reported that if you type "selfssl /T /N:CN=<computer or domain name>" then you will only be prompted once in Internet Explorer to accept the certificate.  Thanks Rocky

Now load "https://localhost" in Internet Explorer, and click "Yes" to view a secure site.  You will be presented with the following warning:

That is because SelfSSL makes a certificate only meant to be used in testing.  The connection will still be a secured one, but every time you load it you will get that message.

That's all!  I hope you found this information useful.

在设置SSH主机时,如果你想要将Visual Studio Code (VSCode) 的服务器复制到目标主机上,通常会使用Secure Copy (scp)命令。SCP是一个安全的文件传输工具,用于在Linux或Unix系统之间通过SSH协议转移文件。 以下是基本步骤: 1. **安装SCP**:确保你的本地机器(通常是Mac、Linux或Windows)已经安装了OpenSSH客户端,包括scp命令。如果没有,可以使用包管理器如apt-get(Ubuntu/Debian)、yum(CentOS/RHEL)或Homebrew(macOS)进行安装。 2. **登录到目标主机**:使用SSH连接到你想复制文件的目标服务器,例如: ``` ssh username@hostname ``` 其中`username`是你的用户名,`hostname`是目标服务器的IP地址或域名。 3. **创建一个临时目录**(如果有必要):在目标主机上创建一个临时目录以便存放VSCode服务器文件,因为直接复制到根目录可能有权限限制: ``` mkdir -p /path/to/backup ``` 4. **复制VSCode Server**:从你的本地机器,使用scp命令将`.vscode-server`文件夹传送到刚才创建的临时目录: ``` scp -r ~/.config/Code/User/.vscode-server username@hostname:/path/to/backup ``` 确保替换了`~/.config/Code/User/.vscode-server`为你的实际路径,这个路径包含了你的VSCode配置和缓存数据。 5. **验证文件是否成功上传**:确认文件已成功到达目标主机,你可以通过远程登录查看文件是否存在。 6. **启动或迁移VSCode Server**:登录到目标服务器后,可以在`/path/to/backup/.vscode-server`目录下启动VSCode Server,或者将文件移动到预期位置后重新配置VSCode。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值