User Tools

Site Tools



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

Link to this comparison view

Both sides previous revisionPrevious revision
howtos:generate_a_self-signed_certificate_for_localhost [d/m/Y H:i] – external edit [d/m/Y H:i] (current) domingo
Line 1: Line 1:
 <code> <code>
-openssl req -x509 -out localhost.crt -keyout localhost.key \+openssl req -x509 -days 3650 -out localhost.crt -keyout localhost.key \
   -newkey rsa:2048 -nodes -sha256 \   -newkey rsa:2048 -nodes -sha256 \
   -subj '/CN=localhost' -extensions EXT -config <( \   -subj '/CN=localhost' -extensions EXT -config <( \
    printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")    printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
 </code> </code>
howtos/generate_a_self-signed_certificate_for_localhost.txt · Last modified: d/m/Y H:i by domingo