Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
2008:bba3e529e346 | 2009:f1d9679308f0 |
---|---|
1 #!/bin/bash | |
2 set -e | |
3 | |
4 DOMAIN=$1 | |
5 | |
6 cd sites/$DOMAIN | |
7 | |
8 openssl req -x509 -newkey rsa:2048 -nodes -keyout "$DOMAIN.key" -out fullchain.cer -days 365 \ | |
9 -subj "/CN=$DOMAIN" \ | |
10 -addext "subjectAltName=DNS:$DOMAIN,IP:127.0.0.1" |