Add License information in every source file or script.
[sim/o1-interface.git] / ntsimulator / scripts / tls / enable_tls.sh
index a6314bf..3d21471 100755 (executable)
@@ -1,6 +1,23 @@
 #! /bin/bash
-
-sleep 5
+################################################################################
+#
+# 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
 
@@ -16,7 +33,7 @@ echo '<private-key>'"$MELACON_SERVER_KEY"'</private-key></load-private-key></pri
 netopeer2-cli <<END
 auth pref publickey 1000
 auth keys add /home/netconf/.ssh/id_dsa.pub /home/netconf/.ssh/id_dsa
-connect --login netconf
+connect --host 127.0.0.1 --login netconf
 user-rpc --content=load_private_key.xml
 disconnect
 END