pfx证书包含公钥和私钥,并且有密码保护。

在windows系统里,双击pfx文件可以把它导入到浏览器里面,然后通过浏览器可以导出cer文件。就是客户端用的证书文件(公钥)。

nginx https配置

{
    server{
        listen 443 ssl;
        server_name localhost;
        ssl on;  

         ssl_certificate 714008456@qq.com_sha256_cn.crt;  
        ssl_certificate_key 714008456@qq.com_sha256_cn.rsa;
        ssl_session_timeout  5m;
         ssl_protocols SSLv2 SSLv3 TLSv1;

         ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
        ssl_prefer_server_ciphers  on;

        location / {
            root   html;
            index  index.html index.htm;
        }
    }
}  

 

相关文章:

  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-14
  • 2021-05-06
猜你喜欢
  • 2021-11-23
  • 2021-12-25
  • 2021-08-25
  • 2022-12-23
  • 2021-05-05
  • 2021-10-22
  • 2021-04-12
相关资源
相似解决方案