Files
AndroidJava/AdAway/Resources/certificate/generate.sh
T
coco 7846a45f2c a
2026-07-03 15:47:27 +08:00

10 lines
285 B
Bash

rm localhost.*
# Add compatibility for MINGW
kernel=$(uname -s)
if [[ $kernel == MINGW* ]]; then
export MSYS_NO_PATHCONV=1
fi
openssl req -x509 -out localhost.crt -keyout localhost.key -newkey rsa:2048 -nodes -sha256 -days 1126 -subj /CN=localhost -extensions EXT -config ssl.conf