Skip to content

Commit 3b5bcac

Browse files
committed
CLOUDSTACK-1475: fix RegisterISO error after Update SSL Certificate
1 parent 2963f04 commit 3b5bcac

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎console-proxy/scripts/config_ssl.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ customPrivCert=$(dirname $0)/certs/realhostip.crt
9090
customCertChain=
9191
publicIp=
9292
hostName=
93+
keyStore=$(dirname $0)/certs/realhostip.keystore
94+
aliasName="CPVMCertificate"
95+
storepass="vmops.com"
9396
while getopts 'i:h:k:p:t:c' OPTION
9497
do
9598
case $OPTION in
@@ -162,6 +165,12 @@ then
162165
exit 2
163166
fi
164167

168+
if [ -f "$customPrivCert" ]
169+
then
170+
keytool -delete -alias $aliasName -keystore $keyStore -storepass $storepass -noprompt
171+
keytool -import -alias $aliasName -keystore $keyStore -storepass $storepass -noprompt -file $customPrivCert
172+
fi
173+
165174
if [ -d /etc/apache2 ]
166175
then
167176
config_apache2_conf $publicIp $hostName

0 commit comments

Comments
 (0)