Update INFO.yaml with new PTL
[demo.git] / vnfs / vFW / scripts / v_firewall_install.sh
index d976714..fc98ccc 100755 (executable)
@@ -64,6 +64,12 @@ apt-get update
 apt-get install --allow-unauthenticated -y make wget openjdk-8-jdk gcc libcurl4-openssl-dev python-pip bridge-utils apt-transport-https ca-certificates
 pip install jsonschema
 
+# Install fd.io certificate
+HOST=nexus.fd.io
+PORT=443
+TRUST_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"
+bash -c "echo -n | openssl s_client -showcerts -connect $HOST:$PORT 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' >> $TRUST_CERT_FILE"
+
 # Download artifacts for virtual firewall
 mkdir /opt/honeycomb
 cd /opt
@@ -84,10 +90,13 @@ mv sample-distribution-$DEMO_ARTIFACTS_VERSION honeycomb
 sed -i 's/"restconf-binding-address": "127.0.0.1",/"restconf-binding-address": "0.0.0.0",/g' honeycomb/sample-distribution-$DEMO_ARTIFACTS_VERSION/config/honeycomb.json
 rm *.tar.gz
 
+cp  /opt/VES/evel/evel-library/code/VESreporting/onap-ca.crt /opt/config/onap-ca.crt
+
 chmod +x v_firewall_init.sh
 chmod +x vfirewall.sh
 chmod +x /opt/VES/evel/evel-library/code/VESreporting/go-client.sh
 
+
 # Install VPP
 export UBUNTU="trusty"
 export RELEASE=".stable.1609"