stack/deploy/certs/add-cert-to-keystore.sh

9 lines
444 B
Bash
Raw Normal View History

2022-11-30 02:20:48 +01:00
# #!/bin/sh
# if [ -z "$SERVICE_NAME" ]; then echo "set SERVICE_NAME var"; exit 1; fi
# if [ -z "$TARGET_SERVICE_NAME" ]; then echo "set TARGET_SERVICE_NAME var"; exit 1; fi
# PASSWORD=V3ryS3cr3tP4ssw0rd
# # Add cdert to keystore($TARGET_SERVICE_NAME)
# keytool -importcert -v -alias $SERVICE_NAME -storetype PKCS12 -file "$SERVICE_NAME/$SERVICE_NAME.pem" -keystore "$TARGET_SERVICE_NAME/keystore.p12" -keypass $PASSWORD -storepass $PASSWORD