Skip to content

Instantly share code, notes, and snippets.

@alh13
Created February 6, 2013 17:28
Show Gist options
  • Select an option

  • Save alh13/4724225 to your computer and use it in GitHub Desktop.

Select an option

Save alh13/4724225 to your computer and use it in GitHub Desktop.
openssl commands for certificate manipulation
Generate a key:
openssl genrsa 2048 > <hostname>.key
Generate a CSR:
openssl req -new -key <hostname>.key -out <hostname>.csr
Generate a self-signed cert:
openssl req -new -x509 -nodes -days 365 -sha1 -key <hostname>.key > <hostname>.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment