anyproxy/cert/gen-rootCA

12 lines
234 B
Plaintext
Raw Normal View History

2014-08-08 16:30:53 +08:00
#!/bin/bash
2014-08-11 16:43:14 +08:00
outputPath=$1
cd $outputPath
2014-08-08 16:30:53 +08:00
openssl genrsa -out rootCA.key 2048
2014-08-13 11:51:39 +08:00
openssl req -x509 -new -nodes -key rootCA.key -days 36500 -out rootCA.crt
echo "============="
echo "rootCA generated at :"
pwd
echo "============="
exit 0