diff options
author | 2023-10-13 16:39:54 -0400 | |
---|---|---|
committer | 2023-11-19 19:45:05 +0100 | |
commit | 013bee7cdc2f2db170fa9235d29958a7fc5b1104 (patch) | |
tree | cadebf39d7ff4370475930e2ced9f34823a400bb /csit/plans | |
parent | 38c044d1b25a5702220e5be32111ca7e71f87139 (diff) |
Update to version 2.6.1 of parent pom
Update to version 2.6.1 of parent pom to pick up Argon SR2 versions
Issue-ID: CCSDK-3944
Change-Id: Idba0a162fd079f35d420e62f3026f6c8dfc1d983
Signed-off-by: Dan Timoney <dtimoney@att.com>
Signed-off-by: highstreetherbert <herbert.eiselt@highstreet-technologies.com>
Diffstat (limited to 'csit/plans')
-rwxr-xr-x | csit/plans/sdnc/generate_certs.sh | 35 | ||||
-rw-r--r-- | csit/plans/sdnc/setup.sh | 3 |
2 files changed, 38 insertions, 0 deletions
diff --git a/csit/plans/sdnc/generate_certs.sh b/csit/plans/sdnc/generate_certs.sh new file mode 100755 index 00000000..d5b80179 --- /dev/null +++ b/csit/plans/sdnc/generate_certs.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# +# Copyright (c) 2022 highstreet technologies GmbH Property +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# generates fresh certificates for netconfserver + + +tls_dir=$1 + +cd $tls_dir +echo "generate all required certificates and store in $tls_dir" +openssl version +openssl req -newkey rsa:4096 -keyform PEM -keyout ca.key -x509 -days 3650 -outform PEM -out ca.crt -nodes \ + -subj "/C=DE/ST=Berlin/L=Berlin/O=ONAP/OU=SDNC/CN=www.onap.org/emailAddress=dev@www.example.com" +openssl genrsa -out client.key 4096 +openssl req -new -key client.key -out client.req -nodes \ + -subj "/C=PL/ST=DS/L=Wroclaw/O=ONAP/OU=SDNC/CN=www.onap.org" +openssl x509 -req -in client.req -CA ca.crt -CAkey ca.key -set_serial 101 -extensions client -days 365 -outform PEM -out client.crt +openssl genrsa -out server_key.pem 4096 +openssl req -new -key server_key.pem -out server.req -sha256 -nodes \ + -subj "/C=PL/ST=DS/L=Wroclaw/O=ONAP/OU=SDNC/CN=www.onap.org" +openssl x509 -req -in server.req -CA ca.crt -CAkey ca.key -set_serial 100 -extensions server -days 1460 -outform PEM -out server_cert.crt -sha256 + diff --git a/csit/plans/sdnc/setup.sh b/csit/plans/sdnc/setup.sh index 3212f981..7c953a3c 100644 --- a/csit/plans/sdnc/setup.sh +++ b/csit/plans/sdnc/setup.sh @@ -49,6 +49,9 @@ mv ${WORKSPACE}/archives/pnf-simulator/netconfsimulator/netconf/initialize_netop cat ${WORKSPACE}/archives/pnf-simulator/netconfsimulator/netconf/initialize_netopeer.sh.orig | sed -e "s/\r$//g" > ${WORKSPACE}/archives/pnf-simulator/netconfsimulator/netconf/initialize_netopeer.sh chmod 755 ${WORKSPACE}/archives/pnf-simulator/netconfsimulator/netconf/initialize_netopeer.sh +# generate fresh certificates for netconfserver [INT-2269] + +./generate_certs.sh "${WORKSPACE}"/archives/pnf-simulator/netconfsimulator/tls # Start Netconf Simulator Container with docker-compose and configuration from docker-compose.yml docker-compose -f "${WORKSPACE}"/archives/pnf-simulator/netconfsimulator/docker-compose.yml up -d |