diff options
author | AndyWalshe <andy.walshe@est.tech> | 2019-04-09 14:05:08 +0000 |
---|---|---|
committer | AndyWalshe <andy.walshe@est.tech> | 2019-04-09 14:05:08 +0000 |
commit | 389cbad40747ac6c323c216bae090e99abbfbd02 (patch) | |
tree | d589287fd4c8518e119f1a0ec3cc77b3c180aac4 /test/mocks/pnf-onboarding/src/main/scripts | |
parent | f2a0cfdc146805275c6f6c869fd75e5c3c342cbb (diff) |
Removing need for bash script
Change-Id: I447ed1d0e791ee38f4434d78a450edc02c222816
Issue-ID: INT-949
Signed-off-by: AndyWalshe <andy.walshe@est.tech>
Diffstat (limited to 'test/mocks/pnf-onboarding/src/main/scripts')
-rw-r--r-- | test/mocks/pnf-onboarding/src/main/scripts/generate-signature.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/test/mocks/pnf-onboarding/src/main/scripts/generate-signature.sh b/test/mocks/pnf-onboarding/src/main/scripts/generate-signature.sh deleted file mode 100644 index f9950cfeb..000000000 --- a/test/mocks/pnf-onboarding/src/main/scripts/generate-signature.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/bash - -signingCertificate=$1 -signingCertPrivateKey=$2 -csarFile=$3 -signatureName=$4 - -echo Creating signature file with following inputs -printf "\t%s = %s\n" "signingCertificate" $signingCertificate -printf "\t%s = %s\n" "signingCertPrivateKey" $signingCertPrivateKey -printf "\t%s = %s\n" "csarFile" $csarFile - -openssl cms -sign -signer $signingCertificate -inkey $signingCertPrivateKey -outform pem -binary -nocerts < $csarFile > $signatureName - -retVal=$? -if [ $retVal -eq 0 ]; then - echo Signature file $signatureName created successfully -else - echo Failed to create Signature file $signatureName -fi - -exit $retVal |