Skip to content

Instantly share code, notes, and snippets.

@ajayhn
Last active March 4, 2016 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajayhn/4a9392bbd8a9b9105ec8 to your computer and use it in GitHub Desktop.
Save ajayhn/4a9392bbd8a9b9105ec8 to your computer and use it in GitHub Desktop.
automated-self-signed-cert
mkdir -p certs && openssl req -newkey rsa:4096 -nodes -sha256 -keyout certs/domain.key -x509 -days 365 -out certs/domain.crt -subj "/C=US/ST=California/O=ENG/CN=$(hostname -f)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment