1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
210 B

#!/usr/bin/env bash
set -exo pipefail
FQDN="${1:?Please specify a FQDN.}"
openssl req \
-x509 \
-nodes \
-sha256 \
-days 365 \
-newkey \
rsa:2048 \
-keyout "${FQDN}.key" \
-out "${FQDN}.crt"