Last active
June 27, 2016 11:52
-
-
Save ryuta-ito/7c0c26ff0bd6c2233aa49d79a69675fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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