For HTTPS connection to 3rd party controller need to create sdnc client key file
Change-Id: I7f7429ddca0952e7bb6153273713dc8ff129e3ac
Issue-ID: SDNC-179
Signed-off-by: Ramu N <ramu.n@huawei.com>
--- /dev/null
+#!/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
+
then
echo "Installing SDN-C database"
${SDNC_HOME}/bin/installSdncDb.sh
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"
echo "Starting OpenDaylight"
${ODL_HOME}/bin/start
echo "Waiting ${SLEEP_TIME} seconds for OpenDaylight to initialize"
honeycomb.url=http://{honeycomb-instance-ip}:8183
honeycomb.user=admin
honeycomb.pwd=admin
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
# Templates
restapi.sz.templatefile=security-zone-allotted-resource.json