Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Generate self signed certificate for localhost

openssl req -x509 -out localhost.crt -keyout localhost.key 
-newkey rsa:2048 -nodes -sha256 
-subj '/CN=localhost' -extensions EXT -config <( 
printf "[dn]
CN=localhost
[req]
distinguished_name = dn
[EXT]
subjectAltName=DNS:localhost
keyUsage=digitalSignature
extendedKeyUsage=serverAuth")
Source by aboutssl.org #
 
PREVIOUS NEXT
Tagged: #Generate #signed #certificate #localhost
ADD COMMENT
Topic
Name
2+2 =