Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xCAT-server/share/xcat/ca/openssl.cnf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion xCAT-server/share/xcat/scripts/setup-dockerhost-cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down