1.准备环境

下载openssl for windows

2.生成证书

openssl genrsa -des3 -out openssl.key 1024

openssl req -new -x509 -key openssl.key -out openssl.crt -days 3650

openssl rsa -in openssl.key -out openssl_nopass.key

具体操作
5分钟完成nginx ssl配置
 

报错 :Unable to load config info from /usr/local/ssl/openssl.cnf

下载: openssl.conf  使用参数 -config openssl.conf 指定

 

证书文件


5分钟完成nginx ssl配置
 

3.nginx 配置ssl

5分钟完成nginx ssl配置
 

 

4.验证结果


5分钟完成nginx ssl配置
完成! 

 

linux与windows配置差不多.

 

可以使用openssl自认证证书,商用需要使用第三方机构认证

openssl req -new -key openssl.key -out openssl.csr

 

openssl x509 -req -days 3650 -in openssl.csr -CA openssl.crt -CAkey openssl.key -CAcreateserial -out openssl.crt 

 

 

 参考:

张宴:全球可信并且唯一免费的HTTPS(SSL)证书颁发机构:StartSSL

免费openssl 生成ssl证书[ssl证书生成]

如何使用OpenSSL创建证书

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2021-07-11
  • 2021-04-27
  • 2022-01-11
  • 2021-11-30
猜你喜欢
  • 2022-01-04
  • 2021-06-10
  • 2021-05-16
  • 2021-11-24
  • 2021-09-26
  • 2021-11-21
  • 2022-12-23
相关资源
相似解决方案