build_certs.sh 483 B

1234567
  1. #!/bin/sh
  2. rm *.pem *.csr
  3. cfssl genkey -initca root-csr.json | cfssljson -bare root
  4. cfssl gencert -ca root.pem -ca-key root-key.pem -config root-config.json int-csr.json | cfssljson -bare int
  5. cfssl gencert -ca int.pem -ca-key int-key.pem -config int-config.json -profile server leaf-server-csr.json | cfssljson -bare leaf-server
  6. cfssl gencert -ca int.pem -ca-key int-key.pem -config int-config.json -profile client leaf-client-csr.json | cfssljson -bare leaf-client
  7. rm *.csr *-key.pem