Windows中Nginx的证书生成

安装nginx

参见https://www.cnblogs.com/lioa/p/12567484.html

 安装OpenSSL

      配置HOME:

      

      配置到path变量中。

      

  • 创建私钥: 

      openssl genrsa -des3 -out ts.key 1024

      

      注意:这里不要唤醒win10 的openSSL。

  •   创建csr证书:

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

      

  • 删除密码:

      复制一份ts.key 到ts_fb.key

      openssl rsa -in ts-fb.key -out ts.key

      

  •   创建crt证书:

     openssl x509 -req -days 365 -in ts.csr -signkey ts.key -out ts.crt     

    

    生成的结果:

    

原文地址:https://www.cnblogs.com/lioa/p/12580968.html