Last active
August 29, 2015 13:56
-
-
Save yanxi123-com/8886981 to your computer and use it in GitHub Desktop.
生成 SSL 证书
This file contains hidden or 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
| # http://blog.didierstevens.com/2008/12/30/howto-make-your-own-cert-with-openssl/ | |
| openssl genrsa -out ca.key 2048 | |
| openssl req -new -x509 -days 3650 -key ca.key -out ca.crt | |
| openssl genrsa -out server.key 2048 | |
| openssl req -new -key server.key -out server.csr # common name 要匹配服务器域名 nchat.qiri.com | |
| openssl x509 -req -days 3650 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment