Skip to content

Commit

Permalink
print ca cert
Browse files Browse the repository at this point in the history
Signed-off-by: achmelo <[email protected]>
  • Loading branch information
achmelo committed Feb 15, 2024
1 parent f1e306a commit c93ce2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/libs/certificate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ pkcs12_create_certificate_and_sign() {
>/dev/null 2>/dev/null
if [ "$?" != "0" ]; then
print_message ">>>> Import the Certificate Authority \"${ca_alias}\" to the keystore \"${keystore_name}\":"
cat /ZOWE/keystore/local_ca/local_ca.cer
result=$(pkeytool ${flags} \
-importcert -v \
-trustcacerts -noprompt \
Expand All @@ -334,7 +335,7 @@ pkcs12_create_certificate_and_sign() {
-storepass "${password}" \
-storetype "PKCS12")
fi

cat /ZOWE/keystore/local_ca/local_ca.cer
# test if we need to import CA into truststore
keytool -list -v -noprompt \
-alias "${ca_alias}" \
Expand Down

0 comments on commit c93ce2c

Please sign in to comment.