actube/ssl/mkcerts.sh
7u83@mail.ru 19b49aa95f Played around with different startdate and enddate.
FossilOrigin-Name: 7ccc7cfd165a1324a8b41bab7593c4641f7ee7da460eb1efe9b93ac878a43c75
2014-08-11 15:31:04 +00:00

16 lines
501 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 -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