From 3b256db4a3122b5aec147ace803cf12dee8f5913 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 9 Apr 2020 17:42:43 +0200 Subject: [PATCH] Add script to regenerate test-certificate fixtures Signed-off-by: Sebastiaan van Stijn --- e2e/testdata/gen-certs.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 e2e/testdata/gen-certs.sh diff --git a/e2e/testdata/gen-certs.sh b/e2e/testdata/gen-certs.sh new file mode 100755 index 0000000000..51e74e9918 --- /dev/null +++ b/e2e/testdata/gen-certs.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh +set -eu + +# This script is used to generate the test-certificates in the notary-server and +# evil-notary-server directories. Run this script to update the certificates if +# they expire. +GO111MODULE=off go get -u github.com/dmcgowan/quicktls +cd notary +quicktls -org=Docker -with-san notary-server notaryserver evil-notary-server evilnotaryserver localhost 127.0.0.1 +cat ca.pem >> notary-server.cert +mv ca.pem root-ca.cert +cp notary-server.cert notary-server.key root-ca.cert ../notary-evil/