actube/ssl/mkcerts.sh

16 lines
501 B
Bash
Raw Normal View History

#!/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 -startdate 700101000000 -enddate 300101000000 -config openssl.cnf -out ac.crt -infiles 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