...

Text file src/github.com/in-toto/in-toto-golang/test-infra/mint-cert.sh

Documentation: github.com/in-toto/in-toto-golang/test-infra

     1#!/bin/bash
     2
     3docker exec test-infra_spire-server_1 \
     4/opt/spire/bin/spire-server x509 mint \
     5-socketPath /run/spire/sockets/spire-registration.sock \
     6-spiffeID spiffe://example.com/$1 \
     7-write .
     8
     9docker exec test-infra_spire-server_1 cat svid.pem > ./test/tmp/$1-svid.pem
    10docker exec test-infra_spire-server_1 cat key.pem > ./test/tmp/$1-key.pem
    11docker exec test-infra_spire-server_1 cat bundle.pem > ./test/tmp/$1-bundle.pem

View as plain text