diff options
author | ramu.n <ramu.n@huawei.com> | 2017-11-30 18:09:38 +0530 |
---|---|---|
committer | ramu.n <ramu.n@huawei.com> | 2017-11-30 18:11:23 +0530 |
commit | d8e610dcaf2fcade0ac16b157125b0f68036c8eb (patch) | |
tree | 4bbed08ab38c8b8d229c02621605735e1b68105a | |
parent | 5921adeb7841a131a9393cd175d11ad53e8b9544 (diff) |
Add keytool script to sdnc installation
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>
Former-commit-id: 997040ec141b9799a37eaf527bba10e7f5d75b2a
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 |