From c8719c06244e18355db7c52e5deee4acb398f5f1 Mon Sep 17 00:00:00 2001 From: Manjunath Ranganathaiah Date: Tue, 11 Sep 2018 09:11:06 -0700 Subject: Add import scripts to base image These scripts imports the CA key to either tpm or softhsm. Updates the pkcs11 config file and adds the required config for softhsm Change-Id: If45cfb514756bf4ab03081d458ed728921fa1d51 Issue-ID: AAF-483 Signed-off-by: Manjunath Ranganathaiah --- bin/base/application.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/base/application.sh (limited to 'bin/base/application.sh') diff --git a/bin/base/application.sh b/bin/base/application.sh new file mode 100755 index 0000000..cb7db08 --- /dev/null +++ b/bin/base/application.sh @@ -0,0 +1,10 @@ +#!/bin/bash + + +# This script receives 2 arguments +applicationlibrary=$1 +SoftHSMv2SlotID=$2 + +# Setting up the pkcs11 config file +echo "library = ${applicationlibrary}" >> /opt/app/osaaf/local/org.osaaf.aaf.cm.pkcs11 +echo "slot = ${SoftHSMv2SlotID}" >> /opt/app/osaaf/local/org.osaaf.aaf.cm.pkcs11 -- cgit 1.2.3-korg