Ubuntu 新しいページはコチラ
提供: yonewiki
(→証明書の設定) |
(→証明書の設定) |
||
159行: | 159行: | ||
==== '''証明書の設定''' ==== | ==== '''証明書の設定''' ==== | ||
− | # ''' | + | /usr/lib/ssl# '''mount -t vboxsf cookbooks /mnt/cookbooks''' |
− | # '''openssl genrsa 2048 > ca.key''' | + | /usr/lib/ssl# '''openssl genrsa 2048 > ca.key''' |
Generating RSA private key, 2048 bit long modulus | Generating RSA private key, 2048 bit long modulus | ||
.......................................+++ | .......................................+++ | ||
...+++ | ...+++ | ||
− | e is 65537 (0x10001)# | + | e is 65537 (0x10001) |
− | # '''openssl genrsa 2048 > server.key''' | + | /usr/lib/ssl# '''openssl req -new -key ca.key -subj "/C=JP/ST=Tokyo-To/L=Tokyo-city/O=yo-netrollxx/OU=IT dept./CN=yo-netrollxxCA" > ca.csr''' |
+ | /usr/lib/ssl# '''openssl genrsa 2048 > server.key''' | ||
Generating RSA private key, 2048 bit long modulus | Generating RSA private key, 2048 bit long modulus | ||
..............+++ | ..............+++ | ||
.................................................................................+++ | .................................................................................+++ | ||
e is 65537 (0x10001) | e is 65537 (0x10001) | ||
− | # '''openssl req -new -key server.key -subj "/C=JP/ST=Tokyo-To/L=Tokyo-city/O=yo-netrollxx/OU=IT dept./CN=192.xxx.xxx.xxx" > server.csr ''' | + | /usr/lib/ssl# '''openssl req -new -key server.key -subj "/C=JP/ST=Tokyo-To/L=Tokyo-city/O=yo-netrollxx/OU=IT dept./CN=192.xxx.xxx.xxx" > server.csr ''' |
− | /usr/lib/ssl# ''' | + | /usr/lib/ssl# '''openssl ca -days 3650 -cert ca.crt -keyfile ca.key -in server.csr > server.crt''' |
==== '''Apacheのインストール''' ==== | ==== '''Apacheのインストール''' ==== |