nginx代理的时候,需要填写证书的crt跟rsa文件路径,通过iis导出的证书是pfx文件(不知道nginx能不能直接用pfx文件,没有查看过相关资料),所以要通过pfx文件生成crt、rsa文件。

首先用到的工具openssl源码:(https://www.openssl.org/source/)简易安装程序:(http://slproweb.com/products.html)

win64安装程序

链接:https://pan.baidu.com/s/1MscTxbfGQJzABS5tqsNulQ
提取码:oxja

安装openssl后,把pfx文件拷贝到openssl的bin目录下,使用以下命令:

openssl pkcs12 -in ***.pfx -nodes -out ***.pem
openssl rsa -in ***.pem -out ***.key
openssl x509 -in ***.pem -out ***.crt

相关文章:

  • 2021-05-20
  • 2022-02-11
  • 2021-08-15
  • 2022-01-04
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-02
  • 2021-08-10
  • 2022-12-23
  • 2021-11-17
  • 2021-10-05
相关资源
相似解决方案