X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ntsimulator%2Fscripts%2Ftls%2Fenable_tls.sh;fp=ntsimulator%2Fscripts%2Ftls%2Fenable_tls.sh;h=0000000000000000000000000000000000000000;hb=f1d5c9198acde7a7ce296490087cad37e008f688;hp=3d21471cdf99946e564fac7073ea10b0dca2d8b4;hpb=f2d8f1002fa93848c80a88e5658db4816cba3020;p=sim%2Fo1-interface.git diff --git a/ntsimulator/scripts/tls/enable_tls.sh b/ntsimulator/scripts/tls/enable_tls.sh deleted file mode 100755 index 3d21471..0000000 --- a/ntsimulator/scripts/tls/enable_tls.sh +++ /dev/null @@ -1,63 +0,0 @@ -#! /bin/bash -################################################################################ -# -# Copyright 2019 highstreet technologies GmbH and others -# -# 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. - -################################################################################ - -sleep 10 - -openssl genrsa -out melacon.server.key 2048 - -openssl req -new -sha256 -key melacon.server.key -subj "/C=US/ST=CA/O=MeLaCon, Inc./CN=melacon.com" -out melacon.server.csr -openssl x509 -req -in melacon.server.csr -CA ca.pem -CAkey ca.key -CAcreateserial -out melacon.server.crt -days 500 -sha256 -rm melacon.server.csr - -MELACON_SERVER_KEY="$(sed '1d;$d' melacon.server.key)" - -echo 'melacon_server_key' >> load_private_key.xml -echo ''"$MELACON_SERVER_KEY"'' >> load_private_key.xml - -netopeer2-cli <melacon_server_keymelacon_server_cert' >> load_server_certs.xml -echo ''"$MELACON_CERT"'trusted_ca_listca' >> load_server_certs.xml -echo ''"$CA_CERT"'' >> load_server_certs.xml - -sysrepocfg --merge=load_server_certs.xml --format=xml ietf-keystore -rm load_server_certs.xml - -echo '' >> tls_endpoints.xml -echo 'MNG_TLS_1
0.0.0.0
837melacon_server_certtrusted_ca_list102:E9:38:1F:F6:8B:62:DE:0A:0B:C5:03:81:A8:03:49:A0:00:7F:8B:F3x509c2n:specifiednetconf
' >> tls_endpoints.xml -echo 'MNG_TLS_2
0.0.0.0
838melacon_server_certtrusted_ca_list102:E9:38:1F:F6:8B:62:DE:0A:0B:C5:03:81:A8:03:49:A0:00:7F:8B:F3x509c2n:specifiednetconf
' >> tls_endpoints.xml -echo 'MNG_TLS_3
0.0.0.0
839melacon_server_certtrusted_ca_list102:E9:38:1F:F6:8B:62:DE:0A:0B:C5:03:81:A8:03:49:A0:00:7F:8B:F3x509c2n:specifiednetconf
' >> tls_endpoints.xml -echo '
' >> tls_endpoints.xml - -sysrepocfg --merge=tls_endpoints.xml --format=xml ietf-netconf-server -rm tls_endpoints.xml - -echo 'Done' -exit 0 \ No newline at end of file