##■ ディレクトリ移動
[root@www10000xx ~]# cd /etc/pki/tls/certs/
[root@www10000xx certs]#
##■ サーバー証明書作成
[root@www10000xx certs]# make proftpd.pem
umask 77 ; \
PEM1=`/bin/mktemp /tmp/openssl.XXXXXX` ; \
PEM2=`/bin/mktemp /tmp/openssl.XXXXXX` ; \
/usr/bin/openssl req -newkey rsa:2048 -keyout $PEM1 -nodes -x509 -days 365 -out $PEM2 -set_serial 0 ; \
cat $PEM1 > proftpd.pem ; \
echo "" >> proftpd.pem ; \
cat $PEM2 >> proftpd.pem ; \
rm -f $PEM1 $PEM2
Generating a 2048 bit RSA private key
....................................................................................................+++
.+++
writing new private key to '/tmp/openssl.EeF0yK'
-----
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 ## ←★ 国名を入力 [Enter]
State or Province Name (full name) []:Osaka ## ←★ 都道府県名を入力 [Enter]
Locality Name (eg, city) [Default City]:Osaka ## ←★ 市区町村名を入力 [Enter]
Organization Name (eg, company) [Default Company Ltd]:admin ## ←★ 会社名(何でも良い)を入力 [Enter]
Organizational Unit Name (eg, section) []: ## ←★ 空(未入力で良い) [Enter]
Common Name (eg, your name or your server’s hostname) []:www10000xx.sakura.ne.jp ## ←★ ホスト名を入力
Email Address []:hostmaster@example.com ## ←★ 管理者メールアドレスを入力 (決まっていなければ、何でも良い) [Enter]
[root@www10000xx certs]#
0 件のコメント:
コメントを投稿