Files
2026-04-03 14:23:18 +02:00
..
2025-03-21 14:09:34 +01:00
2025-03-21 14:09:34 +01:00

Generate a valid certificate and private key:

# OpenSSL 1.1.1+
openssl req -x509 -newkey rsa:4096 -sha256 -days 9999 -nodes \
  -keyout key.pem -out cert.pem -subj "/CN=localhost" \
  -addext "subjectAltName=DNS:localhost,IP:127.0.0.1,IP:::1"

Check a certificate:

openssl x509 -in cert.pem -text