open-consul/test/hostname/generate.sh

7 lines
225 B
Bash
Raw Normal View History

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