mirror of
https://github.com/mashirozx/Pixiv-Nginx.git
synced 2024-11-24 14:48:11 +08:00
9b3303faa0
self-signed certificate
8 lines
435 B
Batchfile
8 lines
435 B
Batchfile
echo 01 > crtserial.srl
|
|
break > index.txt
|
|
.\openssl\openssl genrsa -out pixiv.net.key 2048
|
|
.\openssl\openssl genrsa -out rootCA.key 2048
|
|
.\openssl\openssl req -new -x509 -key rootCA.key -out rootCA.crt -days 3650 -config config_rootCA.txt
|
|
.\openssl\openssl req -new -sha256 -key pixiv.net.key -out pixiv.net.csr -config config_childCA.txt
|
|
.\openssl\openssl ca -config config_signCA.txt -in pixiv.net.csr -out pixiv.net.crt
|
|
pause |