SSL証明書CSR作成の手順
久しぶりにSSL証明書を購入するので軽くメモりました
秘密鍵作成
### opensslのversion確認 $ openssl version ### 秘密鍵作成 $ openssl genrsa -des3 -out ./server.key 2048
作成時にパスワードを指定
CSR作成
$ openssl req -new -key server.key -out server.csr Enter pass phrase for server.key: 秘密鍵作成時のパスワードを入力 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) [XX]:日本なのでJPを入力 State or Province Name (full name) []:都道府県を入力 Locality Name (eg, city) [Default City]:市区町村を入力 Organization Name (eg, company) [Default 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 []:入力しなくてもいいのでエンター