added delete alias

This commit is contained in:
Jonas Forsberg 2022-08-16 15:13:53 +02:00
parent 84a8aa1ed5
commit 03b52c9e7f
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -21,6 +21,7 @@ function unifi_update_cert(){
-inkey ${PRIV_KEY} \
-out ${P12_TEMP} -passout pass:${PASSWORD} \
-name ${ALIAS}"
kubectl -n "$NAMESPACE" exec -it "$POD" -- bash -c "keytool -delete -alias ${ALIAS} -keystore ${KEYSTORE} -deststorepass ${PASSWORD}"
kubectl -n "$NAMESPACE" exec -it "$POD" -- bash -c "keytool -importkeystore \
-srckeystore ${P12_TEMP} -srcstoretype PKCS12 \
-srcstorepass ${PASSWORD} \