CA.sh newserver: change the type

This commit is contained in:
Li Chen 2013-11-29 03:41:07 +01:00
parent cc5bd08c37
commit 8c38f1976d

View File

@ -74,8 +74,9 @@ case $1 in
exit 2 exit 2
fi fi
sed -i 's/=.*#COMMONNAME/= FIC2014 Server #COMMONNAME/' $OPENSSL_CONF sed -i 's/=.*#COMMONNAME/= FIC2014 Server #COMMONNAME/' $OPENSSL_CONF
sed -i "s/=.*#CERTTYPE/= server #CERTTYPE/" $OPENSSL_CONF
openssl req -batch -new -keyout server.key -out server.csr \ openssl req -batch -new -keyout server.key -out server.csr \
-days ${DAYS} -config ${OPENSS_CONF} -days ${DAYS} -config ${OPENSSL_CONF}
echo -e "${GREEN}Signing the Server crt${COLOR_RST}" echo -e "${GREEN}Signing the Server crt${COLOR_RST}"
openssl ca -policy policy_match -config ${OPENSSL_CONF} \ openssl ca -policy policy_match -config ${OPENSSL_CONF} \
-out server.crt -infiles server.csr -out server.crt -infiles server.csr