mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-21 03:02:05 +00:00
Fix certificate creation with OpenSSL >= 3.2 (fixes #7481)
This commit is contained in:
parent
f7e389a0c0
commit
ddbeb291b5
@ -167,7 +167,7 @@ basicConstraints=CA:FALSE
|
||||
nsCertType = server, client, objsign
|
||||
nsComment = "OpenSSL Generated Server Certificate"
|
||||
subjectKeyIdentifier=hash
|
||||
authorityKeyIdentifier=keyid,issuer
|
||||
#authorityKeyIdentifier=keyid,issuer
|
||||
keyUsage = digitalSignature,keyAgreement,keyEncipherment
|
||||
extendedKeyUsage = serverAuth, clientAuth
|
||||
|
||||
@ -205,7 +205,7 @@ nsComment = "OpenSSL Generated Client Certificate"
|
||||
|
||||
# PKIX recommendations harmless if included in all certificates.
|
||||
subjectKeyIdentifier=hash
|
||||
authorityKeyIdentifier=keyid,issuer
|
||||
#authorityKeyIdentifier=keyid,issuer
|
||||
|
||||
# This stuff is for subjectAltName and issuerAltname.
|
||||
# Import the email address.
|
||||
|
@ -60,7 +60,7 @@ if [ ! -e $XCATDOCKERCADIR/certs ]; then
|
||||
fi
|
||||
|
||||
openssl genrsa -out ca/dockerhost-key.pem 2048
|
||||
openssl req -config ca/openssl.cnf -new -key ca/dockerhost-key.pem -out cert/dockerhost-req.pem -extensions server -subj "/CN=$CNA"
|
||||
openssl req -config ca/openssl.cnf -new -key ca/dockerhost-key.pem -out cert/dockerhost-req.pem -subj "/CN=$CNA"
|
||||
mv cert/dockerhost-req.pem ca/$CNA\.csr
|
||||
cd -
|
||||
cd $XCATDOCKERCADIR
|
||||
|
Loading…
x
Reference in New Issue
Block a user