![]() |
| Home | Diary | Resource | Link |
$ openssl genrsa -des3 -rand /var/log/messages -out server.key 1024 10441 semi-random bytes loaded Generating RSA private key, 1024 bit long modulus .......................................................++++++ .......++++++ e is 65537 (0x10001) Enter PEM pass phrase ←パスフレーズ入力 Verifying password - Enter PEM pass phrase: ←再度パスフレーズ入力
$ openssl req -new -key server.key -out server.csr Using configuration from /etc/ssl/openssl.cnf Enter PEM pass phrase: ←先程のパスワード入力 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) [AU]: ←入力 State or Province Name (full name) [Some-State]: ←入力 Locality Name (eg, city) []: ←入力 Organization Name (eg, company) [Internet Widgits Pty Ltd]: ←入力 Organizational Unit Name (eg, section) []: Common Name (eg, YOUR name) []: Email Address []: ←入力 Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:
$ openssl x509 -req -in server.csr -signkey server.key -out server.crt Signature ok subject=/C=JP/ST=KANAGAWA/L=TAMAKU/O=Air/Email= Getting Private key Enter PEM pass phrase: ←入力
$ openssl rsa -in server.key -out server.key read RSA private key Enter PEM pass phrase: ←パスフレーズ入力 writing RSA private key
$ vim /etc/conf.d/apache2 #(修正) APACHE2_OPTS="-D SSL"
| Index |
|
Apacheのインストールと基本設定 ApacheでのCGIの設定と設置 Apacheでのバーチャルホストの設定 ApacheでのWEBDAVの設定 Basic認証の設定(ファイル認証) Basic認証の設定(DB認証) ApacheでのSSLの設定 SSIの設定と利用 |