Ubuntu 新しいページはコチラ
提供: yonewiki
(→証明書の設定) |
(→証明書の設定) |
||
160行: | 160行: | ||
==== '''証明書の設定''' ==== | ==== '''証明書の設定''' ==== | ||
# '''sudo mount -t vboxsf cookbooks /mnt/cookbooks''' | # '''sudo mount -t vboxsf cookbooks /mnt/cookbooks''' | ||
+ | # '''openssl genrsa 2048 > ca.key''' | ||
+ | Generating RSA private key, 2048 bit long modulus | ||
+ | .......................................+++ | ||
+ | ...+++ | ||
+ | e is 65537 (0x10001)# | ||
# '''openssl genrsa 2048 > server.key''' | # '''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 ''' | # '''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# '''sudo openssl ca -days 3650 -cert ca.crt -keyfile ca.key -in server.csr > server.crt''' | /usr/lib/ssl# '''sudo openssl ca -days 3650 -cert ca.crt -keyfile ca.key -in server.csr > server.crt''' |