Skip to content

Self Signed Certificates

Subject Alternative Name (SAN)

Do you have the SAN?

openssl s_client -connect example.com:443 </dev/null 2>/dev/null | openssl x509 -noout -text | grep DNS:

source

Generators

🏆 mkcert

apt update && apt install -y golang-go &&  git clone https://github.com/FiloSottile/mkcert && cd mkcert &&   go build -ldflags "-X main.Version=$(git describe --tags)"

OMGWTFSSL

podman run -e SSL_SUBJECT="registry.brie.lol" -e SSL_DNS="registry.brie.lol" -e SSL_SUBJECT="registry.brie.lol"   paulczar/omgwtfssl

The certs that are printed to STDOUT contain annoying leading spaces:

sed -i  -e 's/^[ \t]*//' registry.brie.lol.crt
sed -i  -e 's/^[ \t]*//' registry.brie.lol.key