File tree Expand file tree Collapse file tree
console-proxy/server/scripts
secondary-storage/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ customPrivCert=$(dirname $0)/certs/realhostip.crt
9090customCertChain=
9191publicIp=
9292hostName=
93+ keyStore=$( dirname $0 ) /certs/realhostip.keystore
94+ aliasName=" CPVMCertificate"
95+ storepass=" vmops.com"
9396while getopts ' i:h:k:p:t:c' OPTION
9497do
9598 case $OPTION in
@@ -162,6 +165,12 @@ then
162165 exit 2
163166fi
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+
165174if [ -d /etc/apache2 ]
166175then
167176 config_apache2_conf $publicIp $hostName
Original file line number Diff line number Diff line change @@ -90,6 +90,9 @@ customPrivCert=$(dirname $0)/certs/realhostip.crt
9090customCertChain=
9191publicIp=
9292hostName=
93+ keyStore=$( dirname $0 ) /certs/realhostip.keystore
94+ aliasName=" CPVMCertificate"
95+ storepass=" vmops.com"
9396while getopts ' i:h:k:p:t:c' OPTION
9497do
9598 case $OPTION in
@@ -162,6 +165,12 @@ then
162165 exit 2
163166fi
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+
165174if [ -d /etc/apache2 ]
166175then
167176 config_apache2_conf $publicIp $hostName
You can’t perform that action at this time.
0 commit comments