Skip to content

Instantly share code, notes, and snippets.

@jaymecd
jaymecd / self-signed-root-ca-and-certificates.sh
Created January 7, 2016 22:04
Create Root CA and self-signed Certificate for local TLS testing.
#!/usr/bin/env bash
set -e
# Full Qualified Domain Name
FQDN="${1:-localhost.dev}"
FQDN="$(echo "${FQDN}" | tr 'A-Z' 'a-z')"
# Optional settings
COUNTRY="DE"