<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>夜游长空 &#187; OpenSSL</title>
	<atom:link href="http://www.zhangdi.name/tag/openssl/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zhangdi.name</link>
	<description>Blog of Daniel &#38; Kimi</description>
	<lastBuildDate>Wed, 13 Oct 2010 05:05:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>在Windows下配置Apache + OpenSSL</title>
		<link>http://www.zhangdi.name/2008/02/19/apache-ssl-under-windows.html</link>
		<comments>http://www.zhangdi.name/2008/02/19/apache-ssl-under-windows.html#comments</comments>
		<pubDate>Mon, 18 Feb 2008 18:00:43 +0000</pubDate>
		<dc:creator>zhangdi</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[OpenSSL]]></category>

		<guid isPermaLink="false">http://www.zhangdi.name/2008/02/19/apache-ssl-under-windows.html</guid>
		<description><![CDATA[网上有很多类似的文章。我这里总结一下最简单的方法。 1. 下载包含OpenSSL的Apache Http Server。目前的最新版是apache_2.2.8-win32-x86-openssl-0.9.8g.msi 2. 安装Apache。最好装在磁盘的根目录下，例如：C:\Apache2.2\。安装时必须制定一个域名，如果只是本机测试，可以在hosts文件中随便加入一个域名指向本机IP就可以了。 3. 打开文件：%安装目录%\conf\httpd.conf，将下面两行的注释去掉： LoadModule ssl_module modules/mod_ssl.so Include conf/extra/httpd-ssl.conf 4. 在Console中切换到目录：%安装目录%\bin。运行下面三行命令：（在执行第一个命令时，会被问很多问题，最重要的是Common Name项的值要和你的网站域名相同。例如test.com，www.test.com之类的。） openssl req -new -out server.csr -config ..\conf\openssl.cnf openssl rsa -in privkey.pem -out server.key openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 3650 5. 完成之后，将目录中的server.key和server.crt拷贝到%安装目录%\conf目录中。 6. 重启Apache Http Server服务。 7. 访问https://test.com。（假设安装时使用此域名。） 如果Apache服务启动失败，尝试运行%安装目录%\bin\httpd.exe，可以看到错误信息，对于修正错误会很有帮助。 相关文章抱歉，发生意外情况，阻碍了 Google 阅读器完成请求。links for 2009-02-16links [...]]]></description>
			<content:encoded><![CDATA[<p>网上有很多类似的文章。我这里总结一下最简单的方法。</p>
<p>1. 下载包含OpenSSL的<a href="http://httpd.apache.org/download.cgi">Apache Http Server</a>。目前的最新版是<a href="http://apache.mirror.phpchina.com/httpd/binaries/win32/apache_2.2.8-win32-x86-openssl-0.9.8g.msi">apache_2.2.8-win32-x86-openssl-0.9.8g.msi</a></p>
<p>2. 安装Apache。最好装在磁盘的根目录下，例如：C:\Apache2.2\。安装时必须制定一个域名，如果只是本机测试，可以在hosts文件中随便加入一个域名指向本机IP就可以了。</p>
<p>3. 打开文件：%安装目录%\conf\httpd.conf，将下面两行的注释去掉：<code><br />
</code></p>
<pre><code> LoadModule ssl_module modules/mod_ssl.so</code></pre>
<pre><code> Include conf/extra/httpd-ssl.conf</code></pre>
<p>4. 在Console中切换到目录：%安装目录%\bin。运行下面三行命令：（在执行第一个命令时，会被问很多问题，最重要的是Common Name项的值要和你的网站域名相同。例如test.com，www.test.com之类的。）</p>
<pre>openssl req -new -out server.csr -config ..\conf\openssl.cnf</pre>
<pre>openssl rsa -in privkey.pem -out server.key</pre>
<pre>openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 3650</pre>
<p>5. 完成之后，将目录中的server.key和server.crt拷贝到%安装目录%\conf目录中。</p>
<p>6. 重启Apache Http Server服务。</p>
<p>7. 访问https://test.com。（假设安装时使用此域名。）</p>
<p align="center"><a href="http://www.zhangdi.name/wp-content/gallery/misc/https.gif" rel="lightbox[]" title="https.gif"><img src="http://www.zhangdi.name/wp-content/gallery/misc/thumbs/thumbs_https.gif" alt="https.gif" title="https.gif" /></a></p>
<p>如果Apache服务启动失败，尝试运行%安装目录%\bin\httpd.exe，可以看到错误信息，对于修正错误会很有帮助。</p>
<h3  class="related_post_title">相关文章</h3><ul class="related_post"><li><a href="http://www.zhangdi.name/2009/08/12/sorry-there-is-something-blocking-requests-of-google-reader.html" title="抱歉，发生意外情况，阻碍了 Google 阅读器完成请求。">抱歉，发生意外情况，阻碍了 Google 阅读器完成请求。</a></li><li><a href="http://www.zhangdi.name/2009/02/17/links-for-2009-02-16.html" title="links for 2009-02-16">links for 2009-02-16</a></li><li><a href="http://www.zhangdi.name/2009/02/07/links-for-2009-02-06.html" title="links for 2009-02-06">links for 2009-02-06</a></li><li><a href="http://www.zhangdi.name/2009/02/06/links-for-2009-02-05.html" title="links for 2009-02-05">links for 2009-02-05</a></li><li><a href="http://www.zhangdi.name/2009/02/03/google-picasaweb-name-tag.html" title="Google PicasaWeb新功能&#8211;人物名称标签">Google PicasaWeb新功能&#8211;人物名称标签</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.zhangdi.name/2008/02/19/apache-ssl-under-windows.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

