From fd6ca2c28874945481f6c877d73f8d422c9e520b Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Fri, 30 Nov 2018 16:17:38 -0800 Subject: [PATCH] fix(build): fix system key decryption (#5) --- packages/google-cloud-securitycenter/.circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-securitycenter/.circleci/config.yml b/packages/google-cloud-securitycenter/.circleci/config.yml index 6735ebdaaa1..86c63432242 100644 --- a/packages/google-cloud-securitycenter/.circleci/config.yml +++ b/packages/google-cloud-securitycenter/.circleci/config.yml @@ -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 @@ -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