Created
October 23, 2021 14:36
-
-
Save craffate/b6ff2b0100a562c65dd59a49333af883 to your computer and use it in GitHub Desktop.
Generates a self-signed certificate for localhost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=GB/ST=Wonderland/L=Wonderland/O=Alice/CN=localhost" -keyout localhost.key -out localhost.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment