add bin.js

This commit is contained in:
加里
2014-08-13 11:51:39 +08:00
parent cdb2dbd744
commit a9d56ef859
11 changed files with 361 additions and 100 deletions

View File

@@ -16,10 +16,10 @@ email=a@b.com
#Optional
password=a
if [ -z "$outputPath$domain" ]
if [ -z "$domain" ]
then
echo "Argument not present."
echo "Useage $0 [common name]"
echo "Useage $0 [domain] [outputPath]"
exit 99
fi

View File

@@ -3,4 +3,11 @@
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
echo "============="
echo "rootCA generated at :"
pwd
echo "please trust them and add to your system keychain"
echo "============="
exit 0