mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-07-29 09:27:42 +00:00
add bin.js
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
Reference in New Issue
Block a user