From 9b0c49486855c84e3c24eeffdf71045748a0837b Mon Sep 17 00:00:00 2001 From: Kiran Kamineni Date: Thu, 26 Apr 2018 21:57:47 -0700 Subject: Updating files with root ca certificate Previous patch was missing the root ca file. Needed in case clients provide their own cert Issue-ID: AAF-265 Change-Id: I4dcdf6d424e4837aadfc01fc7caba8df93623658 Signed-off-by: Kiran Kamineni --- sms-service/bin/build_sms_image.sh | 6 ++++-- sms-service/bin/smsdockerfile | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sms-service') diff --git a/sms-service/bin/build_sms_image.sh b/sms-service/bin/build_sms_image.sh index cd3663f..46685b6 100755 --- a/sms-service/bin/build_sms_image.sh +++ b/sms-service/bin/build_sms_image.sh @@ -28,6 +28,7 @@ function generate_binary { } function copy_certificates { + cp ../src/sms/auth/aaf_root_ca.cer . cp ../src/sms/auth/aaf-sms.api.simpledemo.onap.org.pem . cp ../src/sms/auth/aaf-sms.api.simpledemo.onap.org.pr . } @@ -35,7 +36,8 @@ function copy_certificates { function cleanup { rm sms rm aaf-sms.api.simpledemo.onap.org.pem - rm af-sms.api.simpledemo.onap.org.pr + rm aaf-sms.api.simpledemo.onap.org.pr + rm aaf_root_ca.cer } function build_image { @@ -61,4 +63,4 @@ generate_binary copy_certificates build_image push_image -cleanup \ No newline at end of file +cleanup diff --git a/sms-service/bin/smsdockerfile b/sms-service/bin/smsdockerfile index 50704b2..14327dc 100644 --- a/sms-service/bin/smsdockerfile +++ b/sms-service/bin/smsdockerfile @@ -7,6 +7,7 @@ LABEL maintainer="vamshi krishna " EXPOSE 10443 RUN mkdir -p /sms/auth +ADD aaf_root_ca.cer /sms/cert/aaf_root_ca.cer ADD aaf-sms.api.simpledemo.onap.org.pem /sms/cert/aaf-sms.api.simpledemo.onap.org.pem ADD aaf-sms.api.simpledemo.onap.org.pr /sms/cert/aaf-sms.api.simpledemo.onap.org.pr ADD sms /sms/bin/sms -- cgit 1.2.3-korg