Skip to content

Instantly share code, notes, and snippets.

@ryuta-ito
Last active June 27, 2016 11:52
Show Gist options
  • Save ryuta-ito/7c0c26ff0bd6c2233aa49d79a69675fd to your computer and use it in GitHub Desktop.
Save ryuta-ito/7c0c26ff0bd6c2233aa49d79a69675fd to your computer and use it in GitHub Desktop.
# secret key
openssl genrsa 2048 > server.key
# certificate signing request
openssl req -new -key server.key <<EOF > server.csr
JP
Tokyo
Chiyoda
company
cd
192.168.1.13
example@email.com
pass
pass
EOF
# server cirtificate(public key)
openssl x509 -in server.csr -sha256 -days 365 -req -signkey server.key > server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment