Hemanth's Scribes

web

Install SSL Certificate Tomcat bash script

Author Photo

Hemanth HM

Thumbnail

:

SECURITY_FOLDER=”${JAVA_HOME}/jre/lib/security” if [ ! -d ”${SECURITY_FOLDER}” ] ; then SECURITY_FOLDER=”${JAVA_HOME}/lib/security” if [ ! -d ”${SECURITY_FOLDER}” ] ; then echo “Your {JAVA_HOME} does not contain the expected security folder. ${JAVA_HOME}/jre/lib/security” exit 1 fi fi

$JAVA_HOME/bin/keytool -keystore keystore -alias acegisecurity -genkey -keyalg RSA -validity 710 -storepass changeit -keypass changeit

$JAVA_HOME/bin/keytool -export -v -rfc -alias acegisecurity -file security.txt -keystore keystore -storepass changeit

sudo cp security.txt ${SECURITY_FOLDER}

cp -r keystore ${CXPS_RUNTIME}/tomcat/

cd ${SECURITY_FOLDER}

sudo $JAVA_HOME/bin/keytool -import -v -file security.txt -keypass changeit -keystore cacerts -storepass changeit -alias acegisecurity

#javascript#linux
Author Photo

About Hemanth HM

Hemanth HM is a Sr. Machine Learning Manager at PayPal, Google Developer Expert, TC39 delegate, FOSS advocate, and community leader with a passion for programming, AI, and open-source contributions.