Last active
August 19, 2024 20:03
-
-
Save MOZGIII/05737fc07b82029c42b158db5627825d to your computer and use it in GitHub Desktop.
TLS cert gen from existing key and with SANs
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
openssl req -x509 -new -key server.key -sha256 -days 3650 -nodes \ | |
-out server.crt -subj "/CN=server" \ | |
-addext "subjectAltName=DNS:server.local,DNS:server,DNS:localhost,IP:127.0.0.1" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment