diff --git a/xCAT-server/share/xcat/ca/openssl.cnf.tmpl b/xCAT-server/share/xcat/ca/openssl.cnf.tmpl index d1805e660..3d25097f2 100644 --- a/xCAT-server/share/xcat/ca/openssl.cnf.tmpl +++ b/xCAT-server/share/xcat/ca/openssl.cnf.tmpl @@ -226,7 +226,7 @@ basicConstraints = CA:FALSE keyUsage = nonRepudiation, digitalSignature, keyEncipherment [ san_env ] -subjectAltaName = ${ENV::SAN} +subjectAltName = ${ENV::SAN} [ v3_ca ] diff --git a/xCAT-server/share/xcat/scripts/setup-server-cert.sh b/xCAT-server/share/xcat/scripts/setup-server-cert.sh index ddd731b1b..0b66e462b 100755 --- a/xCAT-server/share/xcat/scripts/setup-server-cert.sh +++ b/xCAT-server/share/xcat/scripts/setup-server-cert.sh @@ -23,7 +23,7 @@ fi mkdir -p $XCATDIR/cert cd $XCATDIR/cert openssl genrsa -out server-key.pem 2048 -export SAN=DNS:`hostname --long`,DNS:`hostname --short` +export SAN="DNS:`hostname --long`,DNS:`hostname --short`" openssl req -config $XCATCADIR/openssl.cnf -new -key server-key.pem -out server-req.pem -extensions server -subj "/CN=$CNA" cp server-req.pem $XCATDIR/ca/`hostname`.csr cd -