From 6495fce0304c30b8a370e3ccfe0183dec7f9456f Mon Sep 17 00:00:00 2001 From: Didr <9605751+Didr@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:29:45 +0100 Subject: [PATCH] docs: add info about required PKI setup --- Makefile | 7 ++++++- README.md | 3 +++ pki/create_pki.sh | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ffd75c0f2..61cd6e73c 100755 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY : docker-build docker-push release +.PHONY : docker-build docker-push release pki NAME := vc LDFLAGS := -ldflags "-w -s --extldflags '-static'" @@ -8,6 +8,11 @@ SERVICES := verifier registry persistent mockas apigw issuer ui wallet verif PORT := 8888 W3C_TEST_SUITE_DIR := /tmp/w3c-test-suite +pki: + $(info Setting up PKI) + cd pki/; ./create_pki.sh + cd developer_tools/; ./gen_ec_sign_key.sh; ./gen_rsa_sign_key.sh + test: test-verifier test-verifier: diff --git a/README.md b/README.md index fb5b2cc66..3ca8f1fb0 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,9 @@ linux/amd64 is consider supported, other build options may work. `make restart` +### Setup PKI +`make pki` + ## Swagger ### Endpoint diff --git a/pki/create_pki.sh b/pki/create_pki.sh index 0faf3e272..17751d847 100755 --- a/pki/create_pki.sh +++ b/pki/create_pki.sh @@ -75,7 +75,7 @@ EOF # remove any generated config files if [ $conf_generated -eq 1 ]; then rm ${service_name}.conf - rm ca.conf + rm -f ca.conf fi if [ $ext_generated -eq 1 ]; then rm ${service_name}.ext