diff options
author | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-09-26 12:48:34 -0700 |
---|---|---|
committer | Kiran Kamineni <kiran.k.kamineni@intel.com> | 2018-09-26 13:11:05 -0700 |
commit | e19f78e89aaa94bbf3e0c612314d48c9672ad5c3 (patch) | |
tree | b4f188e1f28a7afe8abdd0bf7842f55de70e5e16 /bin/caservicecontainer/import.sh | |
parent | 67e6b6dd230ccb83204d2d103a033f735c83a14f (diff) |
Update location of passphrase in distcenter
Location for passphrase needed to be updated in
scenarios where tpm is not available
P2: Add more changes to get the passphrase to be passed
correctly
Issue-ID: AAF-521
Change-Id: Ibf022e05489e77cdcec642a543abf5cec3c21e53
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
Diffstat (limited to 'bin/caservicecontainer/import.sh')
-rwxr-xr-x | bin/caservicecontainer/import.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/caservicecontainer/import.sh b/bin/caservicecontainer/import.sh index 7fa8909..e8ead2e 100755 --- a/bin/caservicecontainer/import.sh +++ b/bin/caservicecontainer/import.sh @@ -60,9 +60,7 @@ else cd ${DATA_FOLDER} # 3.a Extract the Private key using passphrase - passphrase="$(cat passphrase)" - echo "${passphrase}" - echo "${passphrase}" | gpg --batch --yes --passphrase-fd 0 privkey.pem.gpg + cat passphrase | gpg --batch --yes --passphrase-fd 0 privkey.pem.gpg # 3.b Convert the Private key pem into der format openssl rsa -in ./privkey.pem -outform DER -out privatekey.der |