WebをSSL暗号化するためのopenssl の設定につき、以下のサイトを参考にさせていただいています。
http://nai.homelinux.net/ssl.html
http://www.kazutoyo.com/ubuntu/
サーバ証明書を作成する
サーバ証明書作成はまず署名リクエスト(CSR)を作成する。
それをCAで署名して作成する、
場所は /etc/ssl/Server におく。以下ここで作業する。
# mkdir /etc/ssl/Server
# cd /etc/ssl/Server ここで以下作業する。
秘密鍵を作成する
# openssl genrsa -out private.pem 1024
Generating RSA private key, 1024 bit long modulus
..............++++++
..++++++
e is 65537 (0x10001)
以上
認証局に署名してもらうためのリクエストを作成する必要がある
# openssl req -new -key private.pem -out request.pem
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]:県名
Locality Name (eg, city) []:市町村
Organization Name (eg, company) [Internet Widgits Pty Ltd]:組織名
Organizational Unit Name (eg, section) []:Kaihatu-bu
Common Name (eg, YOUR name) []:192.168.*.**
Email Address []:***@*****
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []: 空欄でよい
An optional company name []: 空欄でよい
以上
2008年4月17日木曜日
登録:
コメントの投稿 (Atom)

0 件のコメント:
コメントを投稿