mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-24 16:51:29 +00:00
调整rootCA的参数,调整过期时间
This commit is contained in:
parent
f0c42dce72
commit
35da6fd385
@ -42,7 +42,7 @@ openssl req -sha256 -new -key $outputPath$domain.key -out $outputPath$domain.csr
|
|||||||
-subj "/C=$country/ST=$state/L=$locality/O=$organization/OU=$organizationalunit/CN=$commonname/emailAddress=$email"
|
-subj "/C=$country/ST=$state/L=$locality/O=$organization/OU=$organizationalunit/CN=$commonname/emailAddress=$email"
|
||||||
|
|
||||||
#Generating a Self-Signed Certificate
|
#Generating a Self-Signed Certificate
|
||||||
openssl x509 -req -sha256 -days 365 -in $outputPath$domain.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out $outputPath$domain.crt
|
openssl x509 -req -sha256 -days 3650 -in $outputPath$domain.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out $outputPath$domain.crt
|
||||||
# -signkey $outputPath$domain.key
|
# -signkey $outputPath$domain.key
|
||||||
#openssl x509 -req -in host.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out host.crt -days 365
|
#openssl x509 -req -in host.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out host.crt -days 365
|
||||||
echo "Finished"
|
echo "Finished"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
outputPath=$1
|
outputPath=$1
|
||||||
cd $outputPath
|
cd $outputPath
|
||||||
openssl genrsa -out rootCA.key 2048
|
openssl genrsa -out rootCA.key 2048
|
||||||
openssl req -x509 -new -nodes -key rootCA.key -days 36500 -out rootCA.crt \
|
openssl req -sha256 -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"
|
-subj "/C=CN/ST=SH/L=SH/O=AnyProxy/OU=Section/CN=Anyproxy SSL Proxying/emailAddress=AnyProxy@AnyProxy"
|
||||||
echo "============="
|
echo "============="
|
||||||
echo "rootCA generated at :"
|
echo "rootCA generated at :"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user