User Tools

Site Tools


howtos:generate_a_self-signed_certificate_for_localhost

This is an old revision of the document!


openssl req -x509 -out localhost.crt -keyout localhost.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
howtos/generate_a_self-signed_certificate_for_localhost.1543782889.txt.gz · Last modified: 02/12/2018 21:34 by 127.0.0.1