Skip to content

Commit

Permalink
Include key script in start script.
Browse files Browse the repository at this point in the history
  • Loading branch information
masv3971 committed Oct 17, 2024
1 parent 798f132 commit 072d435
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
11 changes: 0 additions & 11 deletions gen_ec_sign_key.sh

This file was deleted.

12 changes: 11 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
#!/usr/bin/env bash
set -eo pipefail
printf "Starting vc docker-compose services\n"

./gen_ec_sign_key.sh
if [ ! -f private_ec256.pem ]; then
printf "Create signing key\n"
# generate a private key for a curve
openssl ecparam -name prime256v1 -genkey -noout -out private_ec256.pem

# generate corresponding public key
openssl ec -in private_ec256.pem -pubout -out public_ec256.pem
fi

printf "Starting vc docker-compose services\n"
docker compose -f docker-compose.yaml up -d --remove-orphans

0 comments on commit 072d435

Please sign in to comment.