Moved out root ca creation.
FossilOrigin-Name: 53c7e66ee78ed021cda86a6a3ca748c2528104bf70054e5ecf1d64c5153be227
This commit is contained in:
parent
3c62b2e6c3
commit
bfd32e5925
@ -1,14 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
rm index.*
|
||||||
rm index.txt
|
rm serial.*
|
||||||
rm serial
|
|
||||||
echo '1000' > serial
|
echo '1000' > serial
|
||||||
touch index.txt
|
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
|
echo Creating AC Req
|
||||||
openssl req -newkey rsa:1024 -keyout ac.key -config openssl.cnf -out 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
|
openssl ca -config openssl.cnf -out ac.crt -infiles ac.req
|
||||||
|
Loading…
Reference in New Issue
Block a user