Skip to content

Commit 81e4a7d

Browse files
authored
Create self-signed-cert-for-localhost
1 parent 7a13c08 commit 81e4a7d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

self-signed-cert-for-localhost

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
openssl req -x509 -out localhost.crt -keyout localhost.key \
2+
-newkey rsa:2048 -nodes -sha256 \
3+
-subj '/CN=localhost' -extensions EXT -config <( \
4+
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

0 commit comments

Comments
 (0)