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"