Skip to content

Commit 018490c

Browse files
author
Derrek Young
committed
Minor tweaks
1 parent 60bd832 commit 018490c

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

controller-ssl-certs-util.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Generate new certs, import them, list keystore contents and disable the HTTP port.
77
#
8-
# Version: 0.5
8+
# Version: 0.6
99
#
1010
#--------------------------------------------------------------------------------------------------
1111

@@ -27,6 +27,12 @@ KEYTOOL_HOME=$CONTROLLER_HOME/jre/bin
2727
KEYTOOL=$KEYTOOL_HOME/keytool
2828
KEYSTORE_BACKUP="./$KEYSTORE_NAME-$DATETIME.bak"
2929

30+
# For localhost, manual testing
31+
#CONFIG_HOME=$CONTROLLER_HOME
32+
#KEYTOOL_HOME=$CONTROLLER_HOME
33+
#KEYTOOL=keytool
34+
#CONTROLLER_HOME=.
35+
3036
#1
3137
generate-csr()
3238
{
@@ -92,8 +98,8 @@ import-signed-cert()
9298
exit
9399
fi
94100

95-
echo "Importing $cert into $KEYSTORE_PATH for alias $alias"
96-
$KEYTOOL -import -trustcacerts -alias $SIGNED_CERT_ALIAS_NAME -keystore $KEYSTORE_PATH -storepass $KEYSTORE_PASSWORD -file $cert
101+
echo "Importing $cert into $KEYSTORE_PATH for alias $SIGNED_CERT_ALIAS_NAME"
102+
$KEYTOOL -import -trustcacerts -keystore $KEYSTORE_PATH -file $cert -alias $SIGNED_CERT_ALIAS_NAME -storepass $KEYSTORE_PASSWORD
97103

98104
if [ $? -gt 0 ] ; then
99105
echo "ERROR: unable to import the certificate"

eum-ssl-certs-util.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Generate new certs, import them, and list keystore contents.
77
#
8-
# Version: 0.5
8+
# Version: 0.6
99
#
1010
#--------------------------------------------------------------------------------------------------
1111

@@ -27,6 +27,12 @@ KEYTOOL_HOME=$EUM_HOME/jre/bin
2727
KEYTOOL=$KEYTOOL_HOME/keytool
2828
KEYSTORE_BACKUP="./$KEYSTORE_NAME-$DATETIME.bak"
2929

30+
# For localhost, manual testing
31+
#CONFIG_HOME=$CONTROLLER_HOME
32+
#KEYTOOL_HOME=$CONTROLLER_HOME
33+
#KEYTOOL=keytool
34+
#CONTROLLER_HOME=.
35+
3036
#1
3137
generate-csr()
3238
{
@@ -81,8 +87,8 @@ import-signed-cert()
8187
exit
8288
fi
8389

84-
echo "Importing $cert into $KEYSTORE_PATH for alias $alias"
85-
$KEYTOOL -import -trustcacerts -keystore $KEYSTORE_PATH -file $cert -alias $SIGNED_CERT_ALIAS_NAME -storepass $KEYSTORE_PASSWORD
90+
echo "Importing $cert into $KEYSTORE_PATH for alias $SIGNED_CERT_ALIAS_NAME"
91+
$KEYTOOL -import -trustcacerts -keystore $KEYSTORE_PATH -file $cert -alias $SIGNED_CERT_ALIAS_NAME -storepass $KEYSTORE_PASSWORD
8692

8793
if [ $? -gt 0 ] ; then
8894
echo "ERROR: unable to import the certificate"

0 commit comments

Comments
 (0)