diff options
3 files changed, 17 insertions, 0 deletions
diff --git a/installation/sdnc/src/main/scripts/addSdncKeyStore.sh b/installation/sdnc/src/main/scripts/addSdncKeyStore.sh new file mode 100755 index 00000000..c6f0e5ae --- /dev/null +++ b/installation/sdnc/src/main/scripts/addSdncKeyStore.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +SDNC_HOME=${SDNC_HOME:-/opt/onap/sdnc} + +keyStoreFile=${SDNC_HOME}/data/stores/sdnc.p12 + +if [ ! -f ${keyStoreFile} ] +then + keytool -genkeypair -dname "CN=SDNC, OU=ONAP, O=ONAP, L=, S=, C=" -alias sdncKey -keyalg RSA -keysize 1024 -keystore $keyStoreFile -storepass adminadmin -storetype pkcs12 +fi + diff --git a/installation/sdnc/src/main/scripts/startODL.sh b/installation/sdnc/src/main/scripts/startODL.sh index cbc856d9..79f58794 100644 --- a/installation/sdnc/src/main/scripts/startODL.sh +++ b/installation/sdnc/src/main/scripts/startODL.sh @@ -45,6 +45,8 @@ if [ ! -f ${SDNC_HOME}/.installed ] then echo "Installing SDN-C database" ${SDNC_HOME}/bin/installSdncDb.sh + echo "Installing SDN-C keyStore" + ${SDNC_HOME}/bin/addSdncKeyStore.sh echo "Starting OpenDaylight" ${ODL_HOME}/bin/start echo "Waiting ${SLEEP_TIME} seconds for OpenDaylight to initialize" diff --git a/installation/src/main/properties/generic-resource-api-dg.properties b/installation/src/main/properties/generic-resource-api-dg.properties index ecf8c37d..3e1f1666 100644 --- a/installation/src/main/properties/generic-resource-api-dg.properties +++ b/installation/src/main/properties/generic-resource-api-dg.properties @@ -5,6 +5,10 @@ controller.pwd=Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U honeycomb.url=http://{honeycomb-instance-ip}:8183 honeycomb.user=admin honeycomb.pwd=admin +restapi.trustStoreFileName=/opt/onap/sdnc/data/stores/truststore.openecomp.client.jks +restapi.trustStorePassword=adminadmin +restapi.keyStoreFileName=/opt/onap/sdnc/data/stores/sdnc.p12 +restapi.keyStorePassword=adminadmin # Templates restapi.sz.templatefile=security-zone-allotted-resource.json |