Moved out root ca creation.

FossilOrigin-Name: 53c7e66ee78ed021cda86a6a3ca748c2528104bf70054e5ecf1d64c5153be227
This commit is contained in:
7u83@mail.ru 2014-08-10 19:32:26 +00:00
parent 3c62b2e6c3
commit bfd32e5925
1 changed files with 2 additions and 7 deletions

View File

@ -1,14 +1,9 @@
#!/bin/sh
rm index.txt
rm serial
rm index.*
rm serial.*
echo '1000' > serial
touch index.txt
echo Creating Root CA
openssl genrsa -des3 -out root-ca.key 1536 -config openssl.cnf
openssl req -new -x509 -days 3650 -key root-ca.key -out root-ca.crt -config openssl.cnf
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