■秘密鍵を作成
# openssl genrsa -des3 -out ./www.example.jp.key 1024
■CSRの作成
# openssl req -new -key ./www.example.jp.key -out ./www.example.jp.csr
Country Name※:JP
State or Province Name※:Tokyo
Locality Name※:Minato-ku
Organization Name※:xxx
Organization Unit Name:-
Common Name※:www.example.jp
■オレオレ認証
openssl x509 -req -in www.example.jp.csr -signkey www.example.jp.key -out www.example.jp.crt -days 3650
■秘密鍵の内容を確認
# openssl rsa -text -noout -in ./www.example.jp.key
■秘密鍵のパスフレーズを解除
バックアップ
# cp ./www.example.jp.key/www.example.jp.key.org
# openssl rsa -in ./www.example.jp.key.org -out ./www.example.co.jp.key
■CSRの内容を確認
# openssl req -text -noout -in ./www.example.jp.csr
■証明書の内容を確認
# openssl x509 -text -noout -in ./www.example.jp.crt
# openssl genrsa -des3 -out ./www.example.jp.key 1024
■CSRの作成
# openssl req -new -key ./www.example.jp.key -out ./www.example.jp.csr
Country Name※:JP
State or Province Name※:Tokyo
Locality Name※:Minato-ku
Organization Name※:xxx
Organization Unit Name:-
Common Name※:www.example.jp
■オレオレ認証
openssl x509 -req -in www.example.jp.csr -signkey www.example.jp.key -out www.example.jp.crt -days 3650
■秘密鍵の内容を確認
# openssl rsa -text -noout -in ./www.example.jp.key
■秘密鍵のパスフレーズを解除
バックアップ
# cp ./www.example.jp.key/www.example.jp.key.org
# openssl rsa -in ./www.example.jp.key.org -out ./www.example.co.jp.key
■CSRの内容を確認
# openssl req -text -noout -in ./www.example.jp.csr
■証明書の内容を確認
# openssl x509 -text -noout -in ./www.example.jp.crt