feat: Android APP V1 - Experimental Alpha

This commit is contained in:
2026-06-05 07:40:25 +02:00
parent bf4e6891d1
commit 9a1305f976
179 changed files with 8031 additions and 120 deletions

View File

@@ -15,13 +15,21 @@ fi
mkdir -p "$CERT_DIR"
# Optional: include a LAN/public IP in the certificate SAN (required when clients connect by IP).
# Example: SERVER_IP=46.59.68.77 ./generate-cert.sh
SAN="DNS:localhost,IP:127.0.0.1,IP:0.0.0.0"
if [ -n "${SERVER_IP:-}" ]; then
SAN="$SAN,IP:$SERVER_IP"
echo "Including SERVER_IP=$SERVER_IP in certificate SAN."
fi
echo "Generating self-signed certificate..."
openssl req -x509 -nodes -days 3650 \
-newkey rsa:2048 \
-keyout "$CERT_DIR/localhost.key" \
-out "$CERT_DIR/localhost.crt" \
-subj "/CN=localhost" \
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1,IP:0.0.0.0"
-addext "subjectAltName=$SAN"
echo "Done. Certificate written to:"
echo " $CERT_DIR/localhost.crt"