| 1 | = OpenSSLメモ = |
| 2 | == 自己証明書の作成 == |
| 3 | 秘密鍵と自己証明書の作成。サーバ証明書、クライアント証明書ともこのコマンド発で作成できる。単に通信路の暗号化するだけなら、これで十分。 |
| 4 | {{{ |
| 5 | $ openssl.exe req -new -x509 -keyout server-key.pem -out server-cert.pem |
| 6 | Loading 'screen' into random state - done |
| 7 | Generating a 1024 bit RSA private key |
| 8 | ...........................................++++++ |
| 9 | ............++++++ |
| 10 | writing new private key to 'server-key.pem' |
| 11 | Enter PEM pass phrase: [パスワード入力] |
| 12 | Verifying - Enter PEM pass phrase: [パスワード入力(確認用)] |
| 13 | ----- |
| 14 | You are about to be asked to enter information that will be incorporated |
| 15 | into your certificate request. |
| 16 | What you are about to enter is what is called a Distinguished Name or a DN. |
| 17 | There are quite a few fields but you can leave some blank |
| 18 | For some fields there will be a default value, |
| 19 | If you enter '.', the field will be left blank. |
| 20 | ----- |
| 21 | Country Name (2 letter code) [AU]:JP [日本の国コードJPを入力] |
| 22 | State or Province Name (full name) [Some-State]:Kanagawa [証明書保有者の県名を入力] |
| 23 | Locality Name (eg, city) []:Kamakura [市名を入力] |
| 24 | Organization Name (eg, company) [Internet Widgits Pty Ltd]:[所属組織名(会社名、団体名)等を入力] |
| 25 | Organizational Unit Name (eg, section) []: [所属組織における部署を入力] |
| 26 | Common Name (eg, YOUR name) []:Taro Okamoto [保有者の名前を入力] |
| 27 | Email Address []:taro@gmail.com [メールアドレスを入力] |
| 28 | }}} |
| 29 | == WindowsでOpenSSL == |