From 2ece43e9455fc2d66265c80796143b586e9e6dc6 Mon Sep 17 00:00:00 2001 From: mtan93 <30936296+mtan93@users.noreply.github.com> Date: Mon, 3 Sep 2018 16:31:19 +0100 Subject: [PATCH] Attempting to solve Keystore Error. --- unifi_ssl_import.sh => unifi_ssl_import_new.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) rename unifi_ssl_import.sh => unifi_ssl_import_new.sh (99%) diff --git a/unifi_ssl_import.sh b/unifi_ssl_import_new.sh similarity index 99% rename from unifi_ssl_import.sh rename to unifi_ssl_import_new.sh index 21b3adb..37a0a3d 100644 --- a/unifi_ssl_import.sh +++ b/unifi_ssl_import_new.sh @@ -160,12 +160,13 @@ keytool -delete -alias ${ALIAS} -keystore ${KEYSTORE} -deststorepass ${PASSWORD} # Import the temp PKCS12 file into the UniFi keystore printf "\nImporting SSL certificate into UniFi keystore...\n" keytool -importkeystore \ --srckeystore ${P12_TEMP} -srcstoretype PKCS12 \ --srcstorepass ${PASSWORD} \ -destkeystore ${KEYSTORE} \ -deststorepass ${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 printf "\nImporting certificate authority into UniFi keystore...\n\n"