Last active
August 1, 2022 09:38
-
-
Save pojntfx/3af61a664dbd3d0459cef55d5c4398d2 to your computer and use it in GitHub Desktop.
Create a self-signed SSL certificate with SAN
This file contains hidden or 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
openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes \ | |
-keyout server.key -out server.crt -subj "/CN=localhost" \ | |
-addext "subjectAltName=DNS:localhost,DNS:*.webview.localhost,IP:100.64.154.251" |
@jenvigo For when you also want the certificate to be valid for an IP address, not only for the domain :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is the ip 100.64.154.251 for?