Generating a 1024 bit RSA private key
...++++++
..........................................................................++++++
writing new private key to 'cert.pem'
-----
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.
-----
JP [JP]: ← JP を入力
State or Province Name (full name) []: ← 都道府県名を入力
Locality Name (eg, city) []: ← 市区町村を入力
Organization Name (eg, company) []: ← 組織名を入力
[]:
Common Name (e.g. server FQDN or YOUR name) []: ← クライアントに設定するメールサーバ名を入力
Email Address []: ← サーバ管理者のメールアドレスを入力
F1=/ちゃい1/cert.pem
F2=/ちゃい2/cert.pem
CHANGE=FALSE
if [ ! -f $F1 ]; then
echo "file not found $F1"
exit 1
fi
if [ ! -f $F2 ]; then
echo "file not found $F2"
CHANGE=TRUE
else
if [ $F1 -nt $F2 ]; then
CHANGE=TRUE
fi
fi
if [ $CHANGE = "TRUE" ]; then
cat /ちゃい1/privkey.pem > $F2
cat /ちゃい1/fullchain.pem >> $F2
fi