aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-07-02 10:38:05 +0200
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-07-02 10:38:05 +0200
commitb3faacf4ba4023f29f13aa7806acd660bbf1483e (patch)
tree43a6dac362beb3554483475438720c9ebbe0416a
parentc4d1b2c25080eaf887e806a3c24f04ada5a9ce31 (diff)
[OOM-CERT-SERVICE] Fix makefile requests
Issue-ID: OOM-2753 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: Ic295f805b8aea6f13b95e6c972037066471a5faa
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
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)" \