github.com/Aestek/consul@v1.2.4-0.20190309222502-b2c31e33971a/test/hostname/generate.sh (about)

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