<?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>Labs@doya.in &#187; CSR</title>
	<atom:link href="http://doya.in/labs/tag/csr/feed/" rel="self" type="application/rss+xml" />
	<link>http://doya.in/labs</link>
	<description>未踏志向でいこう！WEBアプリ開発やらサーバ構築やら思ったことやらのメモ:: @　浜松</description>
	<lastBuildDate>Tue, 16 Mar 2010 14:18:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ベリサイン SSLサーバ証明書のインストール手順</title>
		<link>http://doya.in/labs/20080619/ssl/</link>
		<comments>http://doya.in/labs/20080619/ssl/#comments</comments>
		<pubDate>Wed, 18 Jun 2008 16:58:04 +0000</pubDate>
		<dc:creator>doya</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[CSR]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://doya.in/?p=9</guid>
		<description><![CDATA[CSR生成からベリサイン SSLサーバ証明書のインストールまでの手順をメモ。
ほぼベリサインのマニュアル通り進めばよい。ベリサイン サーバIDヘルプデスク
※ 2007年06月以降は中間CA証明書が必要になっているので、更新の場合は気をつけたほうがいい。
インストール環境は、
CentOS5.1 / Apache2.2.3 / mod_ssl2.2.3
ベリサイン:セキュア・サーバID
以下手順（ *** のところは任意）
1. CSR生成
# cd /etc/pki/tls/certs/
# openssl genrsa -rand rand.dat -des3 1024 &#62; 2008key.pem ・・・ 秘密鍵作成
# openssl req -new -key 2008key.pem -out 2008csr.pem ・・・ CSR生成
※ CSR作成時のパスフレーズを忘れないこと
※ この秘密鍵と発行されてくるサーバID(CRT)はペアになるので必ずバックアップをとっておくこと
作成されたCSRを保存して、ベリサインストアフロントからサーバIDを申請する。
ベリサインからの電話確認後、2・3日でサーバIDが届く
2. サーバIDのインストール
# cd /etc/pki/tls/certs/
# vi 2008crt.pem ・・・ 送られてきたメールからコピペ
3. 中間CA証明書のインストール
下記URLから中間CA証明書をコピーする。
セキュア・サーバID中間CA証明書
# cd /etc/pki/tls/certs/
# vi 2008crt.pem ・・・ コピペ
4. ssl.confの設定
# vi /etc/httpd/conf.d/ssl.conf

SSLCertificateFile /etc/pki/tls/certs/2008crt.pem　←　サーバー用証明書を指定
SSLCertificateKeyFile /etc/pki/tls/certs/2008key.pem　←　サーバー用秘密
SSLCertificateChainFile   [...]]]></description>
			<content:encoded><![CDATA[<p>CSR生成からベリサイン SSLサーバ証明書のインストールまでの手順をメモ。<br />
ほぼベリサインのマニュアル通り進めばよい。<a href="http://www.verisign.co.jp/server/help/">ベリサイン サーバIDヘルプデスク</a><br />
<span style="color: #ff0000;">※</span> 2007年06月以降は中間CA証明書が必要になっているので、更新の場合は気をつけたほうがいい。</p>
<p>インストール環境は、<br />
CentOS5.1 / Apache2.2.3 / mod_ssl2.2.3<br />
ベリサイン:セキュア・サーバID</p>
<p>以下手順（ *** のところは任意）</p>
<h3>1. CSR生成</h3>
<pre># cd /etc/pki/tls/certs/
# openssl genrsa -rand rand.dat -des3 1024 &gt; 2008key.pem ・・・ 秘密鍵作成
# openssl req -new -key 2008key.pem -out 2008csr.pem ・・・ CSR生成</pre>
<p><span style="color: #ff0000;">※</span> CSR作成時のパスフレーズを忘れないこと<br />
<span style="color: #ff0000;">※</span> この秘密鍵と発行されてくるサーバID(CRT)はペアになるので必ずバックアップをとっておくこと</p>
<p>作成されたCSRを保存して、<a href="https://storefront.verisign.co.jp/jp/server/Login.sf">ベリサインストアフロント</a>からサーバIDを申請する。</p>
<p>ベリサインからの電話確認後、2・3日でサーバIDが届く</p>
<h3>2. サーバIDのインストール</h3>
<pre># cd /etc/pki/tls/certs/
# vi 2008crt.pem ・・・ 送られてきたメールからコピペ</pre>
<h3>3. 中間CA証明書のインストール</h3>
<p>下記URLから中間CA証明書をコピーする。<br />
<a href="https://www.verisign.co.jp/repository/intermediate/server/c3SecureServerCA_1024.html">セキュア・サーバID中間CA証明書</a></p>
<pre># cd /etc/pki/tls/certs/
# vi 2008crt.pem ・・・ コピペ</pre>
<h3>4. ssl.confの設定</h3>
<pre># vi /etc/httpd/conf.d/ssl.conf

SSLCertificateFile /etc/pki/tls/certs/2008crt.pem　←　サーバー用証明書を指定
SSLCertificateKeyFile /etc/pki/tls/certs/2008key.pem　←　サーバー用秘密
SSLCertificateChainFile   /etc/pki/tls/certs/2008inca.pem  ← CA中間証明書

# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Apache/2.2.3 mod_ssl/2.2.3 (Pass Phrase Dialog)
Some of your private key files are encrypted for security reasons.
In order to read them you have to provide the pass phrases.

Server ***.com:443 (RSA)
Enter pass phrase: *******   ・・・パスフレーズを入力
Apache:mod_ssl:Error: Pass phrase incorrect (5 more retries permitted).
Enter pass phrase: *******   ・・・パスフレーズを入力

OK: Pass Phrase Dialog successful.
                                                           [  OK  ]</pre>
<h3>5. WEBサイトの表示確認</h3>
<p>以下のようなHTMLファイル（ssltest.html ）をアップして、サイトシールをクリックして、認証が通っているか確認する。</p>
<pre>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</a>&gt;
&lt;html xmlns=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/1999/xhtml">"http://www.w3.org/1999/xhtml"</a> xml:lang="ja" lang="ja"&gt;
&lt;head&gt;
&lt;title&gt;SSL test&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script
src=<a class="moz-txt-link-freetext" href="https://seal.verisign.com/getseal?host_name=www.cameron-museum.com&amp;size=S&amp;use_flash=YES&amp;use_transparent=YES&amp;lang=ja">https://seal.verisign.com/getseal?host_name=***.com&amp;size=S&amp;use_flash=YES&amp;use_transparent=YES&amp;lang=ja</a>&gt;&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</pre>
<p>最後に、秘密鍵等をバックアップしていおく</p>

	<h3 class="st-related-posts">関連記事(こちらもどうぞ)</h3>
	<ul class="st-related-posts">
	<li>&nbsp;-&emsp;<a href="http://doya.in/labs/20080618/spf-2/" title="SPFレコードの確認方法 &#8211; SPF/Sender ID (2008.06.18)">SPFレコードの確認方法 &#8211; SPF/Sender ID</a></li>
	<li>&nbsp;-&emsp;<a href="http://doya.in/labs/20080720/wordpress-ssl/" title="wordpressのSSLページ対応 (2008.07.20)">wordpressのSSLページ対応</a></li>
	<li>&nbsp;-&emsp;<a href="http://doya.in/labs/20090702/dsl-install/" title="DSL4.4 (Damn Small Linux) インストールメモ (2009.07.02)">DSL4.4 (Damn Small Linux) インストールメモ</a></li>
	<li>&nbsp;-&emsp;<a href="http://doya.in/labs/20100315/centos-vmware2/" title="CentOS5.4にVMware Server2.0.2インストール (2010.03.15)">CentOS5.4にVMware Server2.0.2インストール</a></li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://doya.in/labs/20080619/ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
FeedLogger:Error /var/www/html/doya.in/labs/wp-content/plugins/feedlogger/dataが書き込み可能ではありません<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->