Skip to content

Instantly share code, notes, and snippets.

@drewr
Created October 14, 2009 22:08
Show Gist options
  • Save drewr/210449 to your computer and use it in GitHub Desktop.
Save drewr/210449 to your computer and use it in GitHub Desktop.
#!/bin/sh
openssl genrsa -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 1095 -in server.csr -signkey server.key -out server.crt # self-sign
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment