2014-08-02 07:14:14 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
rm index.txt
|
|
|
|
rm serial
|
|
|
|
echo '1000' > serial
|
|
|
|
touch index.txt
|
|
|
|
|
|
|
|
echo Creating Root CA
|
2014-08-10 12:19:29 +02:00
|
|
|
openssl genrsa -des3 -out root-ca.key 1536 -config openssl.cnf
|
2014-08-02 07:14:14 +02:00
|
|
|
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
|
|
|
|
|
|
|
|
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
|
|
|
|
|