Created
June 23, 2014 15:53
-
-
Save hoshinaoshi/1f560cb75a2535d4a213 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install -y openssl-devel openssl mod_ssl | |
mkdir /usr/local/ssl | |
cd /usr/local/ssl | |
# 乱数ファイル生成 | |
openssl md5 * > rand.dat | |
# 秘密鍵生成 | |
# 作成するときにパスフレーズを聞かれるので、必ずメモっておくこと。 | |
# apache起動するときにこれがないと起動できなくなる。 | |
openssl genrsa -rand rand.dat -des3 2048 > mykey.pem | |
openssl req -new -key mykey.pem -out mycsr.pem | |
# 国名とか色々聞かれるので、聞かれた通りに入力 | |
Country Name (2 letter code) [AU]:JP | |
State or Province Name (full name) []:Tokyo | |
Locality Name (eg, city) []:Setagaya | |
Organization Name (eg, company) []:登録する人の団体名/個人名 | |
Organizational Unit Name (eg, section) []:別になくてもOK | |
Common Name (eg, YOUR name) []:サイトURL e.g) sample.com | |
Email Address []:hogehoge@gmail.com | |
A challenge password []:入力しなくてもおk | |
An optional company name []:入力しなくてもおk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment