Skip to content

Instantly share code, notes, and snippets.

@rmoriz
Last active December 2, 2015 14:38
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 rmoriz/62d9df7d18e00f98ab1b to your computer and use it in GitHub Desktop.
Save rmoriz/62d9df7d18e00f98ab1b to your computer and use it in GitHub Desktop.
Create a private key & self-signed certificate with OpenSSL using a single command
openssl req -x509 \
-nodes \
-newkey rsa:4096 \
-sha256 \
-keyout key.pem \
-out cert.pem \
-days 365 \
-subj "/C=DE/ST=Bavaria/L=Pullach/O=Bundessstelle für Cloud-Aufgaben/CN=owncloud.local"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment