#!/bin/bash mkdir -p example.com example.org # create our own CA so we can use rustls without it complaining about using a # CA cert as end cert openssl req -x509 -newkey rsa:4096 -keyout ca_key.rsa -out ca_cert.pem -days 3650 -nodes -subj "/CN=example CA" for domain in "example.com" "example.org" do openssl genpkey -out $domain/key.rsa -algorithm RSA -pkeyopt rsa_keygen_bits:4096 cat >openssl.conf <