2023/02/22
How to make a self-signed TLS certificate:
#!/usr/bin/env bash
# stolen from https://stackoverflow.com/questions/10175812/how-to-generate-a-self-signed-ssl-certificate-using-openssl
openssl \
req -x509 \
-newkey rsa:4096 \
-keyout key.pem \
-out cert.pem \
-sha256 -days 365 -nodes -subj '/CN=localhost'