diff options
Diffstat (limited to 'bin/caservicecontainer')
-rwxr-xr-x | bin/caservicecontainer/application.sh | 2 | ||||
-rwxr-xr-x | bin/caservicecontainer/import.sh | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/bin/caservicecontainer/application.sh b/bin/caservicecontainer/application.sh index a7c864d..da4d2d8 100755 --- a/bin/caservicecontainer/application.sh +++ b/bin/caservicecontainer/application.sh @@ -12,7 +12,7 @@ applicationlibrary="/usr/local/lib/softhsm/libsofthsm2.so" # Setting up the java application and running the application # 1. Create the configuration pkcs11.cfg for the application # Remove any existing cfg file first from the CWD -rm pkcs11.cfg +rm -f pkcs11.cfg touch pkcs11.cfg chmod 755 pkcs11.cfg echo "name = ${key_label}" >> pkcs11.cfg 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 |