github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/e2e/testdata/gen-certs.sh (about) 1 #!/usr/bin/env sh 2 set -eu 3 4 # This script is used to generate the test-certificates in the notary-server and 5 # evil-notary-server directories. Run this script to update the certificates if 6 # they expire. 7 GO111MODULE=off go get -u github.com/dmcgowan/quicktls 8 cd notary 9 quicktls -org=Docker -with-san notary-server notaryserver evil-notary-server evilnotaryserver localhost 127.0.0.1 10 cat ca.pem >> notary-server.cert 11 mv ca.pem root-ca.cert 12 cp notary-server.cert notary-server.key root-ca.cert ../notary-evil/