add a nginx with ssl for easier testing

This commit is contained in:
Chris Lu
2026-01-08 09:59:31 -08:00
parent 9012069bd7
commit f02e283ad2
6 changed files with 226 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -e
# Generate a private key
openssl genrsa -out key.pem 2048
# Generate a self-signed certificate
openssl req -new -x509 -key key.pem -out cert.pem -days 365 \
-subj "/C=US/ST=State/L=City/O=Organization/OU=Unit/CN=localhost"
echo "Certificate (cert.pem) and Key (key.pem) generated successfully in $(pwd)"