From c385f503eee0251a91379ffb6ed21357285fc15b Mon Sep 17 00:00:00 2001 From: Yannick Evers Date: Tue, 1 Aug 2023 14:31:27 +0000 Subject: [PATCH] Change argument order --- kubeconfig-automation/decrypt-kubeconfigs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubeconfig-automation/decrypt-kubeconfigs.sh b/kubeconfig-automation/decrypt-kubeconfigs.sh index c0067b4..35d1ab4 100755 --- a/kubeconfig-automation/decrypt-kubeconfigs.sh +++ b/kubeconfig-automation/decrypt-kubeconfigs.sh @@ -41,7 +41,7 @@ else clear_files exit 1 fi - openssl pkeyutl -decrypt -inkey privateKey.tmp -in $password -out ${password%.enc} -passin env:TMP_PASSPHRASE || { echo "Decrypting password failed! Are you using the correct key?"; clear_files; exit 1; } + openssl pkeyutl -decrypt -passin env:TMP_PASSPHRASE -inkey privateKey.tmp -in $password -out ${password%.enc} || { echo "Decrypting password failed! Are you using the correct key?"; clear_files; exit 1; } fi openssl enc -d -aes-256-cbc -pbkdf2 -in $kubeconfigs -out ${kubeconfigs%.enc} -kfile ${password%.enc} || { echo "Decrypting kubeconfigs failed!"; clear_files; exit 1; }