残缺极品 发表于 2018-11-14 13:09:30

神奇的nginx之https支持

# openssl req -new -key test.key -out test.csr  You are about to be asked to enter information that will be incorporated
  into your certificate request.
  What you are about to enter is what is called a Distinguished Name or a DN.
  There are quite a few fields but you can leave some blank
  For some fields there will be a default value,
  If you enter '.', the field will be left blank.
  -----
  Country Name (2 letter code) :CN
  State or Province Name (full name) []:ZheJiang
  Locality Name (eg, city) :QuZhou
  Organization Name (eg, company) :
  Organizational Unit Name (eg, section) []:
  Common Name (eg, your name or your server's hostname) []:
  Email Address []:
  Please enter the following 'extra' attributes
  to be sent with your certificate request
  A challenge password []:
  An optional company name []:
  # 需要使用csr文件与私钥一起生成.crt文件
  # openssl x509 -req -days 365 -in test.csr -signkey test.key -out test.crt
  Signature ok
  subject=/C=CN/ST=ZheJiang/L=QuZhou/O=Default Company Ltd
  Getting Private key

页: [1]
查看完整版本: 神奇的nginx之https支持