File

spec/tls/config2/prepare.sh @ 13874:bfa8ac5881a0 default tip

mod_http_files: Fail if missing the required 'http_files_dir' setting
author Kim Alvefur <zash@zash.se>
date Tue, 13 May 2025 22:38:34 +0200
parent 13816:4122978f2575
line wrap: on
line source

#!/bin/bash

certs="./certs"

for domain in {,xmpp.}example.com; do
	openssl req -x509 \
	  -newkey rsa:4096 \
	  -keyout "${certs}/${domain}.key" \
	  -out "${certs}/${domain}.crt" \
	  -sha256 \
	  -days 365 \
	  -nodes \
	  -subj "/CN=${domain}" 2>/dev/null;
done