summaryrefslogtreecommitdiffstats
path: root/bin/caservicecontainer/import.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/caservicecontainer/import.sh')
-rwxr-xr-xbin/caservicecontainer/import.sh4
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