adaway/Resources/certificate/generate.sh
2025-11-20 14:05:12 +01:00

9 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