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:
parent
ccc69fc330
commit
802ed5cbad
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user