anyproxy/cert/gen-rootCA
2014-08-22 17:30:53 +08:00

13 lines
344 B
Bash
Executable File

#!/bin/bash
outputPath=$1
cd $outputPath
openssl genrsa -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -days 36500 -out rootCA.crt \
-subj "/C=CN/ST=SH/L=SH/O=AnyProxy/OU=Section/CN=Anyproxy SSL Proxying/emailAddress=AnyProxy@AnyProxy"
echo "============="
echo "rootCA generated at :"
pwd
echo "============="
exit 0