view host/local_https.sh @ 2017:65f36a905e1e default tip

revert and just change Compiled.VERSION
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 02 Oct 2025 14:15:48 -0600
parents f1d9679308f0
children
line wrap: on
line source

#!/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"