Skip to content

Instantly share code, notes, and snippets.

@jnovack
Last active July 13, 2017 19:29
Show Gist options
  • Save jnovack/15904ba53e1aca08225f361d076d6049 to your computer and use it in GitHub Desktop.
Save jnovack/15904ba53e1aca08225f361d076d6049 to your computer and use it in GitHub Desktop.
OpenSSL Self-Signed Certificate
#!/bin/sh
openssl req -x509 -nodes -newkey rsa:4096 -keyout key.pem -out certificate.pem -days 720 \
-subj "/C=XX/ST=State/L=City/O=Department/OU=Organization/CN=localhost.localdomain"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment