2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Suppress the `index.attr, No such file or directory' error message from openssl (#5456)

This commit is contained in:
Gᴏɴɢ Jie 2018-08-02 17:00:22 +08:00 committed by yangsong
parent ccc69fc330
commit 802ed5cbad
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ if [ -e $XCATDOCKERCADIR/index ]; then
rm -f $XCATDOCKERCADIR/index*
fi
touch $XCATDOCKERCADIR/index
touch $XCATDOCKERCADIR/index.attr
echo "00" > $XCATDOCKERCADIR/serial

View File

@ -28,6 +28,7 @@ else
fi
sed -e "s@##XCATCADIR##@$XCATCADIR@" $XCATROOT/share/xcat/ca/openssl.cnf.tmpl > $XCATCADIR/openssl.cnf
cp $XCATROOT/share/xcat/ca/Makefile $XCATCADIR/
touch $XCATCADIR/index.attr
cd $XCATCADIR
make init
#openssl req -nodes -config openssl.cnf -days 7300 -x509 -newkey rsa:2048 -out ca-cert.pem -extensions v3_ca -outform PEM -subj /CN="$CNA"