User Tools

Site Tools


howtos:generate_a_self-signed_certificate_for_localhost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
howtos:generate_a_self-signed_certificate_for_localhost [23/10/2018 07:37] – created domingohowtos:generate_a_self-signed_certificate_for_localhost [02/12/2018 21:34] – external edit 127.0.0.1
Line 1: Line 1:
  
 +<code>
 +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")
 +</code>
howtos/generate_a_self-signed_certificate_for_localhost.txt · Last modified: 21/05/2021 07:07 by domingo