#!/bin/bash mkdir -p example.com example.org for domain in "example.com" "example.org" do # create private key openssl genpkey -outform DER -out $domain/key.der -algorithm RSA -pkeyopt rsa_keygen_bits:4096 # create config file: # the generated certificates must not be CA-capable, otherwise rustls complains cat >openssl.conf <