Created
December 22, 2023 12:25
-
-
Save dannluciano/d12d7179b80453e015a15dfa33e7b731 to your computer and use it in GitHub Desktop.
Generate Openssl Self-Signed Certificate
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/bash | |
openssl req -x509 -sha256 -nodes -newkey rsa:4096 -keyout priv.key -days 3660 -out cert.pem -subj "/C=XX/O=Default Company/OU=XX/CN=selfsigned.ssh3" -addext "subjectAltName = DNS:selfsigned.ssh3,DNS:*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment