# cd /usr/share/ssl/certs/
# ll
合計 276
-rw-r--r--  1 root root   1832 10月 28  2005 Makefile
-rw-r--r--  1 root root 249373 10月 28  2005 ca-bundle.crt
-rw-------  1 root root   1464  5月 11  2006 dovecot.pem
-rw-r--r--  1 root root    610 10月 28  2005 make-dummy-cert
-rw-------  1 root root    963  5月  2  2007 serer.key
-r--------  1 root root    696  5月  2  2007 server.csr
-r--------  1 root root    887  5月  2  2007 server.key
-r--------  1 root root    928  5月  2  2007 server.pem
# make server.key
make: `server.key' は更新済です
# openssl rsa -in server.key -out server.key
writing RSA key
# make server.csr
umask 77 ; \
/usr/bin/openssl req -new -key server.key -out server.csr
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) [GB]:JP
State or Province Name (full name) [Berkshire]:hyogo
Locality Name (eg, city) [Newbury]:amagasaki
Organization Name (eg, company) [My Company Ltd]
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []
Email Address []

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
# openssl x509 -in server.csr -out server.pem -req -signkey server.key -days 3650
Signature ok
Getting Private key
# chmod 400 server.*



# /etc/rc.d/init.d/httpd restart
httpdを停止中:                                             [  OK  ]
httpdを起動中:                                             [  OK  ]

添付ファイル: filessl01.png 329件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2017-04-07 (金) 16:01:32 (46d)