actube/ssl/mkcerts.sh
7u83@mail.ru bfd32e5925 Moved out root ca creation.
FossilOrigin-Name: 53c7e66ee78ed021cda86a6a3ca748c2528104bf70054e5ecf1d64c5153be227
2014-08-10 19:32:26 +00:00

15 lines
392 B
Bash
Executable File

#!/bin/sh
rm index.*
rm serial.*
echo '1000' > serial
touch index.txt
echo Creating AC Req
openssl req -newkey rsa:1024 -keyout ac.key -config openssl.cnf -out ac.req
openssl ca -config openssl.cnf -out ac.crt -infiles ac.req
echo Creating Wtp Cert
openssl req -newkey rsa:1024 -keyout wtp.key -config openssl.cnf -out wtp.req
openssl ca -config openssl.cnf -out wtp.crt -infiles wtp.req