mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-1475: fix RegisterISO error after Update SSL Certificate
This commit is contained in:
parent
1a0302465b
commit
521dcbdcc0
@ -90,6 +90,9 @@ customPrivCert=$(dirname $0)/certs/realhostip.crt
|
|||||||
customCertChain=
|
customCertChain=
|
||||||
publicIp=
|
publicIp=
|
||||||
hostName=
|
hostName=
|
||||||
|
keyStore=$(dirname $0)/certs/realhostip.keystore
|
||||||
|
aliasName="CPVMCertificate"
|
||||||
|
storepass="vmops.com"
|
||||||
while getopts 'i:h:k:p:t:c' OPTION
|
while getopts 'i:h:k:p:t:c' OPTION
|
||||||
do
|
do
|
||||||
case $OPTION in
|
case $OPTION in
|
||||||
@ -162,6 +165,12 @@ then
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
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 ]
|
if [ -d /etc/apache2 ]
|
||||||
then
|
then
|
||||||
config_apache2_conf $publicIp $hostName
|
config_apache2_conf $publicIp $hostName
|
||||||
|
|||||||
@ -90,6 +90,9 @@ customPrivCert=$(dirname $0)/certs/realhostip.crt
|
|||||||
customCertChain=
|
customCertChain=
|
||||||
publicIp=
|
publicIp=
|
||||||
hostName=
|
hostName=
|
||||||
|
keyStore=$(dirname $0)/certs/realhostip.keystore
|
||||||
|
aliasName="CPVMCertificate"
|
||||||
|
storepass="vmops.com"
|
||||||
while getopts 'i:h:k:p:t:c' OPTION
|
while getopts 'i:h:k:p:t:c' OPTION
|
||||||
do
|
do
|
||||||
case $OPTION in
|
case $OPTION in
|
||||||
@ -162,6 +165,12 @@ then
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
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 ]
|
if [ -d /etc/apache2 ]
|
||||||
then
|
then
|
||||||
config_apache2_conf $publicIp $hostName
|
config_apache2_conf $publicIp $hostName
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user