From 389cbad40747ac6c323c216bae090e99abbfbd02 Mon Sep 17 00:00:00 2001 From: AndyWalshe Date: Tue, 9 Apr 2019 14:05:08 +0000 Subject: Removing need for bash script Change-Id: I447ed1d0e791ee38f4434d78a450edc02c222816 Issue-ID: INT-949 Signed-off-by: AndyWalshe --- .../src/main/scripts/generate-signature.sh | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 test/mocks/pnf-onboarding/src/main/scripts/generate-signature.sh (limited to 'test/mocks/pnf-onboarding/src') 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 -- cgit 1.2.3-korg