From: Remigiusz Janeczek Date: Fri, 2 Jul 2021 08:38:05 +0000 (+0200) Subject: [OOM-CERT-SERVICE] Fix makefile requests X-Git-Tag: 2.4.0~20 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b3faacf4ba4023f29f13aa7806acd660bbf1483e;p=oom%2Fplatform%2Fcert-service.git [OOM-CERT-SERVICE] Fix makefile requests Issue-ID: OOM-2753 Signed-off-by: Remigiusz Janeczek Change-Id: Ic295f805b8aea6f13b95e6c972037066471a5faa --- diff --git a/Makefile b/Makefile index 5827199b..1a6569bd 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ send-initialization-request: @echo "##### Generate CSR and Key #####" openssl req -new -newkey rsa:2048 -nodes -keyout `pwd`/compose-resources/certs-from-curl/ir.key \ -out `pwd`/compose-resources/certs-from-curl/ir.csr \ - -subj "/C=US/ST=California/L=San-Francisco/O=ONAP/OU=Linux-Foundation/CN=onap.org" \ + -subj "/C=US/ST=California/L=San-Francisco/OU=ONAP/O=Linux-Foundation/CN=onap.org" \ -addext "subjectAltName = DNS:test.onap.org" @echo "##### Send Initialization Request #####" curl -sN https://localhost:8443/v1/certificate/RA -H "PK: $$(cat ./compose-resources/certs-from-curl/ir.key | base64 | tr -d \\n)" \ @@ -52,7 +52,7 @@ send-key-update-request: verify-initialization-request-files-exist @echo "##### Generate CSR and Key #####" openssl req -new -newkey rsa:2048 -nodes -keyout `pwd`/compose-resources/certs-from-curl/kur.key \ -out `pwd`/compose-resources/certs-from-curl/kur.csr \ - -subj "/C=US/ST=California/L=San-Francisco/O=ONAP/OU=Linux-Foundation/CN=onap.org" \ + -subj "/C=US/ST=California/L=San-Francisco/OU=ONAP/O=Linux-Foundation/CN=onap.org" \ -addext "subjectAltName = DNS:test.onap.org" @echo "##### Send Key Update Request #####" curl -sN https://localhost:8443/v1/certificate-update/RA -H "PK: $$(cat ./compose-resources/certs-from-curl/kur.key | base64 | tr -d \\n)" \ @@ -67,9 +67,9 @@ send-certification-request: verify-initialization-request-files-exist @echo "##### Generate CSR and Key #####" openssl req -new -newkey rsa:2048 -nodes -keyout `pwd`/compose-resources/certs-from-curl/cr.key \ -out `pwd`/compose-resources/certs-from-curl/cr.csr \ - -subj "/C=US/ST=California/L=San-Francisco/O=ONAP/OU=Linux-Foundation/CN=new-onap.org" \ + -subj "/C=US/ST=California/L=San-Francisco/OU=ONAP/O=Linux-Foundation/CN=new-onap.org" \ -addext "subjectAltName = DNS:test.onap.org" - @echo "##### Send Key Update Request #####" + @echo "##### Send Certification Request #####" curl -sN https://localhost:8443/v1/certificate-update/RA -H "PK: $$(cat ./compose-resources/certs-from-curl/cr.key | base64 | tr -d \\n)" \ -H "CSR: $$(cat ./compose-resources/certs-from-curl/cr.csr | base64 | tr -d \\n)" \ -H "OLD_PK: $$(cat ./compose-resources/certs-from-curl/ir.key | base64 | tr -d \\n)" \