diff host/local_https.sh @ 2009:f1d9679308f0 default tip

fix local https
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 01 Sep 2025 05:15:44 -0600
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/host/local_https.sh	Mon Sep 01 05:15:44 2025 -0600
@@ -0,0 +1,10 @@
+#!/bin/bash
+set -e
+
+DOMAIN=$1
+
+cd sites/$DOMAIN
+
+openssl req -x509 -newkey rsa:2048 -nodes -keyout "$DOMAIN.key" -out fullchain.cer -days 365 \
+  -subj "/CN=$DOMAIN" \
+  -addext "subjectAltName=DNS:$DOMAIN,IP:127.0.0.1"