aboutsummaryrefslogtreecommitdiffstats
path: root/spec/tls/config1/prepare.sh
blob: a8ec282229acdaa2d798d2699a89d9ce2f34080f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

certs="./certs"

for domain in {,share.}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