Start a Vault lab with podman on fedora. Go to /vagrant and start vault with
./vault-lab.sh
This lab start a couple of Vault servers :
- One Vault server that generate one infra PKI, i.e., PKI for others Vault servers
- One Vault transit for auto unseal a cluster
- Three Vault servers with embedded raft storage that compose one cluster
- One Traefik load balancer expose on https://vault:8443
The cluster define one PKI with a root and a intermediate CA.
To generate certificate / private key :
- Source the cluster environment variable file
. cluster/vault-cluster.env
- Use Vault to generate private keys and certficates
vault write -format=json pki-int/issue/pki-int-role common_name=test.org alt_names=other.org ip_sans=10.0.0.1