summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsms-service/bin/build_sms_image.sh10
-rw-r--r--sms-service/bin/smsdockerfile4
-rw-r--r--sms-service/src/sms/certs/aaf-sms.pr30
-rw-r--r--sms-service/src/sms/certs/aaf-sms.pub63
-rw-r--r--sms-service/src/sms/certs/aaf_root_ca.cer31
5 files changed, 1 insertions, 137 deletions
diff --git a/sms-service/bin/build_sms_image.sh b/sms-service/bin/build_sms_image.sh
index 5dead3f..9384843 100755
--- a/sms-service/bin/build_sms_image.sh
+++ b/sms-service/bin/build_sms_image.sh
@@ -33,17 +33,8 @@ function generate_binary {
cp ../target/preload .
}
-function copy_certificates {
- cp ../src/sms/certs/aaf_root_ca.cer .
- cp ../src/sms/certs/aaf-sms.pub .
- cp ../src/sms/certs/aaf-sms.pr .
-}
-
function cleanup {
rm sms preload
- rm aaf-sms.pub
- rm aaf-sms.pr
- rm aaf_root_ca.cer
}
function build_image {
@@ -66,7 +57,6 @@ function push_image {
}
generate_binary
-copy_certificates
build_image
push_image
cleanup
diff --git a/sms-service/bin/smsdockerfile b/sms-service/bin/smsdockerfile
index 829f89b..19f44d9 100644
--- a/sms-service/bin/smsdockerfile
+++ b/sms-service/bin/smsdockerfile
@@ -7,10 +7,8 @@ LABEL maintainer="vamshi krishna <vn00480215@techmahindra.com>"
EXPOSE 10443
RUN addgroup aaf && adduser -H -D -g "" -G aaf aaf && \
mkdir -p /sms/auth && \
+ mkdir -p /sms/certs && \
chown -R aaf:aaf /sms
-ADD aaf_root_ca.cer /sms/certs/aaf_root_ca.cer
-ADD aaf-sms.pub /sms/certs/aaf-sms.pub
-ADD aaf-sms.pr /sms/certs/aaf-sms.pr
ADD sms /sms/bin/sms
RUN chmod +x /sms/bin/sms
ADD preload /sms/bin/preload
diff --git a/sms-service/src/sms/certs/aaf-sms.pr b/sms-service/src/sms/certs/aaf-sms.pr
deleted file mode 100644
index 25f3c00..0000000
--- a/sms-service/src/sms/certs/aaf-sms.pr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V4gh1IZNnpLFedvkxe9QTm4FaXxr8
-maPMqRj7e1QlCrde4TisHsgxL1g7MemX2bVmh0PAzA+kjSbI3g0qctNMPytuTqb/
-8KuwvctuWK7pvmjl6q6UnbOVU7QBKatcPYW9EqubyOzazn4tvrdEjhQFtAvnpLZN
-2FPhaeEna+wVQpqukdZuhRtmjlvvqrtmzEmzu59Swk6WDeDOKa24pLjXtgTiyLt5
-p88bhikc+W/IQs9OmJ2xamlEn7Gg2S58dyt8UHsUUqtT/qpPAhKYs2P9CPeW2fOS
-fmid6JEtsyCLEbdvOp/Bvy3dSgiQtyH58bewN3iQjP4744A6Sx/L7GjrYp4Ax0SU
-2N4b8HM/znrVT7fHhcELOsVVrDDqcZcExOi2LaC1gzJq37g+C2QREVVaVhNv8mss
-A9axWTniJQCRC1qRmVsPklzljaYlybAmtriyeKE3iIvjaTBZk5D6D5Hf47WVE4v1
-u1uZJSr7AvJ619vyEb2VV3aLzLln7h8Ml0B8JWz/P2d5w6NSJhH+NiUUNKeN4b2P
-Qk3xn3kP01x77lzWm1Ls1E41UXXvLaNhojFnCH44M4zMx6+Bq8rkPvq7cEsdVDIx
-W8A3/WpGTrdJjJ+UJAIkTTxxGWmFBSRgX/dkjeo0pEFCHx9mQQwZzGTpLCW9Ympu
------END RSA PRIVATE KEY-----
diff --git a/sms-service/src/sms/certs/aaf-sms.pub b/sms-service/src/sms/certs/aaf-sms.pub
deleted file mode 100644
index ba0aecf..0000000
--- a/sms-service/src/sms/certs/aaf-sms.pub
+++ /dev/null
@@ -1,63 +0,0 @@
-subject=CN = aaf-sms, emailAddress = , OU = aaf-sms@aaf-sms.onap.org, OU = OSAAF, O = ONAP, C = US
-issuer=C = US, O = ONAP, OU = OSAAF, CN = intermediateCA_9
-notBefore=Jun 3 20:08:21 2019 GMT
-notAfter=Jun 3 20:08:21 2020 GMT
-SHA256 Fingerprint=63:B8:81:E0:77:67:66:85:10:61:73:C2:5A:01:D1:2A:EC:7F:AF:AD:FC:86:D6:40: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ggdhYWYtc21zgg9hYWYtc21z
-LWRiLm9uYXCCH2FhZi1zbXMuYXBpLnNpbXBsZWRlbW8ub25hcC5vcmeCDGFhZi1z
-bXMub25hcIIbYWFmLXNtcy5zaW1wbGVkZW1vLm9uYXAub3JnMA0GCSqGSIb3DQEB
-CwUAA4IBAQBUGIskbnj1lKkI2QikMnCpZ1sietzfTT1frbyvxANxM+RnqWcdHN3p
-uoxHQ1pBzXB189tgQUCbetiDnaRv2K2O4xW0P8CxNd9fhZfypOi9Uz2PC8G2ScJX
-vkxDACfT8XVO/uion4qQJ3UFMkiOl67V4HpSwuZuWV+iuBhJRgxNylFfK4kVlf0T
-bs4LsD3mB1T8u33L3tOe/01IJ5Ccd46Z7g/s870Q5522XVGnI5PSIHl7PP0CJYmZ
-R79OhGzMh+0eO1dPBeZeDUA/DQrBJ04kRWtjT3C82V/4XyyAzDe0QnUQxqBkK39Q
-ETGeDlUwYU6N/1Tvo6MSpCC8yQs6GaD0
------END CERTIFICATE-----
-
-subject=C = US, O = ONAP, OU = OSAAF, CN = intermediateCA_9
-issuer=OU = OSAAF, O = ONAP, C = US
-notBefore=Aug 17 18:51:37 2018 GMT
-notAfter=Aug 17 18:51:37 2023 GMT
-SHA256 Fingerprint=3B:33:F0:D2:94:FC:58:FC:13:9D:ED:AD:C3:D9:97:96:93:44:52:CC:1F:4D:F3:B3:7F:76:90:BB:E0:07:33:91
------BEGIN CERTIFICATE-----
-MIIEdTCCAl2gAwIBAgIBBzANBgkqhkiG9w0BAQsFADAsMQ4wDAYDVQQLDAVPU0FB
-RjENMAsGA1UECgwET05BUDELMAkGA1UEBhMCVVMwHhcNMTgwODE3MTg1MTM3WhcN
-MjMwODE3MTg1MTM3WjBHMQswCQYDVQQGEwJVUzENMAsGA1UECgwET05BUDEOMAwG
-A1UECwwFT1NBQUYxGTAXBgNVBAMMEGludGVybWVkaWF0ZUNBXzkwggEiMA0GCSqG
-SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCv0HHUkba3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buW1e3ekLqntgbky
-uKKISHqVJuw/vXHl1jNibEo9+JuQ88VNuAcm7WpGUogeCa2iAlPTckPZei+MwZ8w
-tpvxTyYlZEC8DWzY1VC29+W2N5cvh01e2E3Ql08W1zL63dqrgdEZ3VWjzooYi4ep
-BmMXTvouW+Flyvcw/0oTcfN0biDIt0mCkZ5CQVjfGL9DTOYteR5hw+k=
------END CERTIFICATE----- \ No newline at end of file
diff --git a/sms-service/src/sms/certs/aaf_root_ca.cer b/sms-service/src/sms/certs/aaf_root_ca.cer
deleted file mode 100644
index e9a50d7..0000000
--- a/sms-service/src/sms/certs/aaf_root_ca.cer
+++ /dev/null
@@ -1,31 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIFPjCCAyagAwIBAgIJAJ6u7cCnzrWdMA0GCSqGSIb3DQEBCwUAMCwxDjAMBgNV
-BAsMBU9TQUFGMQ0wCwYDVQQKDARPTkFQMQswCQYDVQQGEwJVUzAeFw0xODA0MDUx
-NDE1MjhaFw0zODAzMzExNDE1MjhaMCwxDjAMBgNVBAsMBU9TQUFGMQ0wCwYDVQQK
-DARPTkFQMQswCQYDVQQGEwJVUzCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoC
-ggIBAMA5pkgRs7NhGG4ew5JouhyYakgYUyFaG121+/h8qbSdt0hVQv56+EA41Yq7
-XGie7RYDQK9NmAFF3gruE+6X7wvJiChp+Cyd7sFMnb65uWhxEdxWTM2BJFrgfzUn
-H8ZCxgaCo3XH4PzlKRy2LQQJEJECwl/RZmRCXijMt5e9h8XoZY/fKkKcZZUsWNCM
-pTo266wjvA9MXLmdgReRj0+vrCjrNqy+htwJDztoiHWiYPqT6o8EvGcgjNqjlZx7
-NUNf8MfLDByqKF6+wRbHv1GKjn3/Vijd45Fv8riyRYROiFanvbV6jIfBkv8PZbXg
-2VDWsYsgp8NAvMxK+iV8cO+Ck3lBI2GOPZbCEqpPVTYbLUz6sczAlCXwQoPzDIZY
-wYa3eR/gYLY1gP2iEVHORag3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