--- SAS KeyStore ---
##
## STEP 01
##
### When prompted for a password, enter hyperic
###
### AS user sas
su - sas
SHUTDOWN ALL TIERS
/opt/sasinside/sasconfig/Lev1/sas.servers stop
/opt/sasinside/sasconfig/Lev1/sas.servers.mid stop
/opt/sasinside/sasconfig/Lev1/sas.servers.pre stop
/opt/sasinside/sasconfig/Lev1/Web/SASEnvironmentManager/agent-5.8.0-EE/bin/hq-agent.sh stop
AS ROOT: tar -cvf /sastmp/opt.tar /opt
##
## STEP 02
##
cd /opt/sasinside/sasconfig/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE
tar -cvf config.tar config
cp -p /opt/sasinside/sasconfig/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/conf/hyperic.keystore /opt/sasinside/sasconfig/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/conf/hyperic.keystore.12-16-2020
cd /opt/sasinside/sasconfig/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/conf/
##
## STEP 03
##
### /opt/sasinside/sashome/SASWebServer/9.4/httpd-2.2.34.0-64/bin/openssl pkcs12 -export -inkey /opt/sasinside/sasconfig/Lev1/Web/WebServer/BUCERTS/busas.binghamton.edu.key -in /opt/sasinside/sasconfig/Lev1/Web/WebServer/BUCERTS/busas.binghamton.edu.crt -name hq -CAfile /opt/sasinside/sasconfig/Lev1/Web/WebServer/BUCERTS/DigiCERTCA.crt -out hyperic.p12
/opt/sasinside/sashome/SASWebServer/9.4/httpd-2.4.27.1-64/bin/openssl pkcs12 -export -inkey /opt/sasinside/sasconfig/Lev1/Web/WebServer/ssl/busas.binghamton.edu.key -in /opt/sasinside/sasconfig/Lev1/Web/WebServer/ssl/busas.binghamton.edu.crt -name hq -CAfile /opt/sasinside/sasconfig/Lev1/Web/WebServer/ssl/DigiCertCA.crt -out hyperic.p12
##
## STEP 04
##
### /SASPrivateJavaRuntimeEnvironment/9.4/jre/bin/keytool -importkeystore -deststorepass hyperic -destkeypass hyperic -destkeystore /Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/conf/hyperic.keystore -srckeystore hyperic.p12 -srcstoretype PKCS12 -srcstorepass hyperic -alias hq
/opt/sasinside/sashome/SASPrivateJavaRuntimeEnvironment/9.4/jre/bin/keytool -importkeystore -deststorepass hyperic -destkeypass hyperic -destkeystore /opt/sasinside/sasconfig/Lev1/Web/SASEnvironmentManager/server-5.8.0-EE/conf/hyperic.keystore -srckeystore hyperic.p12 -srcstoretype PKCS12 -srcstorepass hyperic -alias hq
##
## STEP 05
##
POSTGRES_HOME=/opt/sasinside/sashome/SASWebInfrastructurePlatformDataServer/9.4
export PATH=${POSTGRES_HOME}/bin:$PATH
export LD_LIBRARY_PATH=${POSTGRES_HOME}/lib:$LD_LIBRARY_PATH
##
## STEP 06
##
### EVManager/EVManager1
/opt/sasinside/sashome/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -h localhost -p 9432 -U EVManager -c "select * from public.eam_keystore;"
##
## STEP 07
##
### EVManager/EVManager1
/opt/sasinside/sashome/SASWebInfrastructurePlatformDataServer/9.4/bin/psql -h localhost -p 9432 -U EVManager -c "delete from eam_keystore;"