diff options
author | Filip Krzywka <filip.krzywka@nokia.com> | 2018-08-06 09:31:40 +0200 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-08-29 22:51:03 +0000 |
commit | 93185789dca5b0f8c18d8fdea239458559eac7b1 (patch) | |
tree | b5edf4c720007427455e1f379b22d774df51942f /test/csit/plans/dcaegen2/hv-ves-testsuites/ssl/Makefile | |
parent | 3f20c45f7c61834a038a6964bbfdf34d376d923a (diff) |
Setup IT environment for HV-VES component
- containers start-up and shutdown
- containers logs copied to archives
- robot tests started successfully
Change-Id:Idfa24a8d6a2f41cc8e1374eb2bf2b5967f533f47
Issue-ID: DCAEGEN2-687
Signed-off-by: Filip Krzywka <filip.krzywka@nokia.com>
Diffstat (limited to 'test/csit/plans/dcaegen2/hv-ves-testsuites/ssl/Makefile')
-rw-r--r-- | test/csit/plans/dcaegen2/hv-ves-testsuites/ssl/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/csit/plans/dcaegen2/hv-ves-testsuites/ssl/Makefile b/test/csit/plans/dcaegen2/hv-ves-testsuites/ssl/Makefile new file mode 100644 index 000000000..5fddc6b1d --- /dev/null +++ b/test/csit/plans/dcaegen2/hv-ves-testsuites/ssl/Makefile @@ -0,0 +1,32 @@ +FILE=sample +CA_PASSWD=onap +SUBJ=/C=PL/ST=DL/L=Wroclaw/O=Nokia/OU=MANO +CA=trust + +sign: $(FILE).crt + +clean: + rm -f *.crt *.key *.srl *.csr + +generate-ca-certificate: $(CA).crt + +generate-private-key: $(FILE).key + +create-public-key: $(FILE).pub + +create-sign-request: $(FILE).csr + +$(CA).crt: + openssl req -new -x509 -keyout $(CA).key -out $(CA).crt -days 365 -passout pass:$(CA_PASSWD) -subj "$(SUBJ)" + +$(FILE).key: + openssl genpkey -algorithm RSA -out $(FILE).key -pkeyopt rsa_keygen_bits:2048 + +$(FILE).pub: $(FILE).key + openssl x509 -req -days 360 -in client.csr -CA $(CA).crt -CAkey $(CA).key -CAcreateserial -out client.crt + +$(FILE).csr: $(FILE).key + openssl req -new -sha256 -key $(FILE).key -out $(FILE).csr -subj "$(SUBJ)" + +$(FILE).crt: $(CA).crt $(FILE).csr + openssl x509 -req -days 360 -in $(FILE).csr -CA $(CA).crt -CAkey $(CA).key -out $(FILE).crt -CAcreateserial -passin pass:$(CA_PASSWD)
\ No newline at end of file |