Skip to content

Instantly share code, notes, and snippets.

@yanxi-me

yanxi-me/gist:8886981

Last active Aug 29, 2015
Embed
What would you like to do?
生成 SSL 证书
# 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