aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/vFW/scripts
diff options
context:
space:
mode:
authorMarco Platania <platania@research.att.com>2020-01-20 10:13:05 -0500
committerMarco Platania <platania@research.att.com>2020-01-20 10:13:05 -0500
commit0e9bf965dd84e82625fd7e4c7d523200e2784ae9 (patch)
treedd1996c4d85c63c1ede230cb9c80de0fc712cc31 /vnfs/vFW/scripts
parent08c029aa4bc814599cf75b5db692ae3266b830b3 (diff)
Add fd.io cert manually to demo VNFs
Issue-ID: INT-1415 Signed-off-by: Marco Platania <platania@research.att.com> Change-Id: Icd03fa50868fe6f8ab64e6b6a0b3baff1f1f574b
Diffstat (limited to 'vnfs/vFW/scripts')
-rwxr-xr-xvnfs/vFW/scripts/v_firewall_install.sh6
-rwxr-xr-xvnfs/vFW/scripts/v_firewall_install_arm64.sh6
-rwxr-xr-xvnfs/vFW/scripts/v_packetgen_install.sh6
-rwxr-xr-xvnfs/vFW/scripts/v_packetgen_install_arm64.sh6
4 files changed, 24 insertions, 0 deletions
diff --git a/vnfs/vFW/scripts/v_firewall_install.sh b/vnfs/vFW/scripts/v_firewall_install.sh
index d9767142..95604386 100755
--- a/vnfs/vFW/scripts/v_firewall_install.sh
+++ b/vnfs/vFW/scripts/v_firewall_install.sh
@@ -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
diff --git a/vnfs/vFW/scripts/v_firewall_install_arm64.sh b/vnfs/vFW/scripts/v_firewall_install_arm64.sh
index c97fa91f..e3c0d377 100755
--- a/vnfs/vFW/scripts/v_firewall_install_arm64.sh
+++ b/vnfs/vFW/scripts/v_firewall_install_arm64.sh
@@ -65,6 +65,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
diff --git a/vnfs/vFW/scripts/v_packetgen_install.sh b/vnfs/vFW/scripts/v_packetgen_install.sh
index 15732a1a..b8727711 100755
--- a/vnfs/vFW/scripts/v_packetgen_install.sh
+++ b/vnfs/vFW/scripts/v_packetgen_install.sh
@@ -54,6 +54,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 code for packet generator
mkdir /opt/honeycomb
cd /opt
diff --git a/vnfs/vFW/scripts/v_packetgen_install_arm64.sh b/vnfs/vFW/scripts/v_packetgen_install_arm64.sh
index 00e23f53..1c6e306a 100755
--- a/vnfs/vFW/scripts/v_packetgen_install_arm64.sh
+++ b/vnfs/vFW/scripts/v_packetgen_install_arm64.sh
@@ -55,6 +55,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 code for packet generator
mkdir /opt/honeycomb
cd /opt