Files
ziti/tests/pki/scripts/generate_ott_csr.sh
T
Andrew Martinez a570eae22f GH-18 PKi to lf
2019-12-18 13:26:51 -05:00

18 lines
312 B
Bash

#!/bin/bash -i
echo "Enter a name for the output cert, followed by [enter]"
read name
openssl genrsa -out $name.key.pem 2048
openssl req -new -key $name.key.pem -out $name.csr
echo ""
echo "Outputs:"
echo " csr: $name.csr"
echo " key: $name.key.pem"
echo ""
echo "CSR contents:"
echo ""
cat $name.csr