Pixiv-Nginx/自签证书傻瓜式批处理包/【限初次使用】一键生成根证书和子证书.bat
ShioMile d52796603b
pref: 修复维基百科 ip、新增Nyaa;新增自签证书批处理包 (#48)
* fix Wikipedia ip

198.35.26.96 早已被封锁;
103.102.166.224 不稳定。

* add nyaa.si

* update hosts

* add batch file for self-sign cert

* Add files via upload

* Delete crtserial.srl

* fix bat

* fix: remove unexist extensions

* add gif teaching
2020-10-10 01:03:18 +08:00

8 lines
380 B
Batchfile

echo 01 > crtserial.srl
break > index.txt
openssl genrsa -out pixiv.net.key 2048
openssl genrsa -out rootCA.key 2048
openssl req -new -x509 -key rootCA.key -out rootCA.crt -days 3650 -config config_rootCA.txt
openssl req -new -sha256 -key pixiv.net.key -out pixiv.net.csr -config config_childCA.txt
openssl ca -config config_signCA.txt -in pixiv.net.csr -out pixiv.net.crt