Skip to content

Instantly share code, notes, and snippets.

@riceooks
riceooks / cert.conf
Last active October 31, 2024 14:34
SSL Generate for Windows
[ req ]
default_bits = 2048
default_keyfile = server-key.pem
distinguished_name = subject
req_extensions = req_ext
x509_extensions = x509_ext
string_mask = utf8only
[ subject ]
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active January 12, 2025 12:57
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).