# #!/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