github.com/marwan-at-work/consul@v1.4.5/test/ca/generate.sh (about)

     1  #!/bin/bash
     2  set -e
     3  
     4  openssl req -new -sha256 -nodes -out ../key/ourdomain.csr -newkey rsa:2048 -keyout ../key/ourdomain.key -config ../key/ourdomain.cfg
     5  openssl ca -batch -config myca.conf -notext -in ../key/ourdomain.csr -out ../key/ourdomain.cer
     6  rm ../key/ourdomain.csr