CLOUDSTACK-1475: fix RegisterISO error after Update SSL Certificate

This commit is contained in:
Wei Zhou 2013-07-11 16:08:26 +02:00
parent 1a0302465b
commit 521dcbdcc0
2 changed files with 18 additions and 0 deletions

View File

@ -90,6 +90,9 @@ customPrivCert=$(dirname $0)/certs/realhostip.crt
customCertChain=
publicIp=
hostName=
keyStore=$(dirname $0)/certs/realhostip.keystore
aliasName="CPVMCertificate"
storepass="vmops.com"
while getopts 'i:h:k:p:t:c' OPTION
do
case $OPTION in
@ -162,6 +165,12 @@ then
exit 2
fi
if [ -f "$customPrivCert" ]
then
keytool -delete -alias $aliasName -keystore $keyStore -storepass $storepass -noprompt
keytool -import -alias $aliasName -keystore $keyStore -storepass $storepass -noprompt -file $customPrivCert
fi
if [ -d /etc/apache2 ]
then
config_apache2_conf $publicIp $hostName

View File

@ -90,6 +90,9 @@ customPrivCert=$(dirname $0)/certs/realhostip.crt
customCertChain=
publicIp=
hostName=
keyStore=$(dirname $0)/certs/realhostip.keystore
aliasName="CPVMCertificate"
storepass="vmops.com"
while getopts 'i:h:k:p:t:c' OPTION
do
case $OPTION in
@ -162,6 +165,12 @@ then
exit 2
fi
if [ -f "$customPrivCert" ]
then
keytool -delete -alias $aliasName -keystore $keyStore -storepass $storepass -noprompt
keytool -import -alias $aliasName -keystore $keyStore -storepass $storepass -noprompt -file $customPrivCert
fi
if [ -d /etc/apache2 ]
then
config_apache2_conf $publicIp $hostName