Skip to content

Commit

Permalink
fix(build): fix system key decryption (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui authored and sofisl committed Oct 13, 2022
1 parent 414cea9 commit d36b397
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
name: Decrypt credentials.
command: |
if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then
openssl aes-256-cbc -d -in .circleci/key.json.enc \
openssl aes-256-cbc -d -md md5 -in .circleci/key.json.enc \
-out .circleci/key.json \
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
fi
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
command: |
if ! [[ -z "${SYSTEM_TESTS_ENCRYPTION_KEY}" ]]; then
for encrypted_key in .circleci/*.json.enc; do
openssl aes-256-cbc -d -in $encrypted_key \
openssl aes-256-cbc -d -md md5 -in $encrypted_key \
-out $(echo $encrypted_key | sed 's/\.enc//') \
-k "${SYSTEM_TESTS_ENCRYPTION_KEY}"
done
Expand Down

0 comments on commit d36b397

Please sign in to comment.