2010年5月アーカイブ

テスト用の自己署名証明書を作成。

C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>openssl genrsa 1
024 > ..\conf\server.key
Loading 'screen' into random state - done
Generating RSA private key, 1024 bit long modulus
.++++++
................++++++
e is 65537 (0x10001)

C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>openssl req -new
 -x509 -days 3650 -key ..\conf\server.key -out ..\conf\server.crt
Unable to load config info from /usr/local/ssl/openssl.cnf


C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>openssl req -new
 -x509 -days 3650 -key ..\conf\server.key -out ..\conf\server.crt -config ..\con
f\openssl.cnf
Loading 'screen' into random state - done
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:JP
State or Province Name (full name) [Some-State]:Tokyo
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:localhost
Email Address []:admin@localhost

あとは、httpd.confでmod_sslを有効にして、httpd-ssl.confのインクルードを有効にして、httpd-ssl.confを適当に設定する。

64bit Windowsに公式のApacheバイナリのインストーラ(32bit)でインストールした場合、WOW64なので既定ではインストールディレクトリが
C:\Program Files (x86)
の下になる。
そうすると、httpd-ssl.confの
SSLSessionCache "shmcb:C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/ssl_scache(512000)"
のところでエラーになる。
これは、(x86)のところが検出されてしまうから。
かっこが含まれないパスにApacheをインストールする必要がある。

カテゴリー:

カテゴリー:

カテゴリー:

カテゴリー:

カテゴリー:

1

このアーカイブについて

このページには、2010年5月に書かれたブログ記事が新しい順に公開されています。

前のアーカイブは2010年4月です。

次のアーカイブは2010年6月です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。