💾 Archived View for tozip.chickenkiller.com › mkcerts captured on 2023-04-26 at 13:21:00.

View Raw

More Information

⬅️ Previous capture (2023-03-20)

-=-=-=-=-=-=-

#!/bin/bash

# 2023-03-12	Created. Works. openssl includes -addext field to keep Go 1.15 happy


FQDN=`hostname -f`
#FQDN=localhost
ODIR=$HOME/.gemini
mkdir -p $ODIR

openssl req -new -subj "/CN=$FQDN" -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -addext "subjectAltName = DNS:$FQDN" -days 36500 -nodes -out $ODIR/cert.pem -keyout $ODIR/key.pem