Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Certificate configuration for dotnet Ubuntu 20.04 localhost https dev
# Based on by user @chrisvdb cc-by-sa rev 2020.5.28.36925
# Not currently working for me on Ubuntu 20.04 though!
default_bits = 2048
default_keyfile = localhost.key
distinguished_name = req_distinguished_name
req_extensions = req_ext
x509_extensions = v3_ca
commonName = localhost
commonName_default = localhost
commonName_max = 64
subjectAltName = @alt_names
subjectAltName = @alt_names
basicConstraints = critical, CA:false
keyUsage = keyCertSign, cRLSign, digitalSignature, keyEncipherment
DNS.1 = localhost
DNS.2 =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment