SQSCANGHA-112 Fix redirect test to deal with TLS

This commit is contained in:
Jeremy Davis
2025-09-10 13:24:57 +02:00
committed by Julien HENRY
parent cbabf0572a
commit ee80e84272
4 changed files with 27 additions and 6 deletions

10
.github/qa-nginx-redirecting/generate-ssl.sh vendored Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Generate self-signed SSL certificate for localhost with 1-day expiry
openssl req -x509 -nodes -days 1 -newkey rsa:2048 \
-keyout nginx.key \
-out nginx.crt \
-subj "/C=US/ST=CA/L=Local/O=Test/CN=localhost" \
-addext "subjectAltName=DNS:localhost,IP:127.0.0.1"
echo "SSL certificates generated with 1-day expiry: nginx.crt and nginx.key"