optimize self-signed certs

This commit is contained in:
加里
2014-08-22 17:00:20 +08:00
parent baf7f0e289
commit f438bed1e6
3 changed files with 10 additions and 7 deletions

View File

@@ -3,7 +3,8 @@
outputPath=$1
cd $outputPath
openssl genrsa -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -days 36500 -out rootCA.crt
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/emailAddress=AnyProxy@AnyProxy"
echo "============="
echo "rootCA generated at :"
pwd