Attempting to solve Keystore Error.

This commit is contained in:
mtan93
2018-09-03 16:31:19 +01:00
committed by GitHub
parent 0e4b6a3440
commit 2ece43e945

View File

@@ -160,12 +160,13 @@ keytool -delete -alias ${ALIAS} -keystore ${KEYSTORE} -deststorepass ${PASSWORD}
# Import the temp PKCS12 file into the UniFi keystore # Import the temp PKCS12 file into the UniFi keystore
printf "\nImporting SSL certificate into UniFi keystore...\n" printf "\nImporting SSL certificate into UniFi keystore...\n"
keytool -importkeystore \ keytool -importkeystore \
-srckeystore ${P12_TEMP} -srcstoretype PKCS12 \
-srcstorepass ${PASSWORD} \
-destkeystore ${KEYSTORE} \ -destkeystore ${KEYSTORE} \
-deststorepass ${PASSWORD} \ -deststorepass ${PASSWORD} \
-destkeypass ${PASSWORD} \ -destkeypass ${PASSWORD} \
-alias ${ALIAS} -trustcacerts -srckeystore ${P12_TEMP} -srcstoretype PKCS12 \
-srcstorepass ${PASSWORD} \
-noprompt \
-deststoretype pkcs12 \
# Import the certificate authority data into the UniFi keystore # Import the certificate authority data into the UniFi keystore
printf "\nImporting certificate authority into UniFi keystore...\n\n" printf "\nImporting certificate authority into UniFi keystore...\n\n"