生成crt证书:
安装openssl
winget install -e --id FireDaemon.OpenSSL
![](https://i-blog.csdnimg.cn/direct/64f2b7971ec34a59af3c7d6b8abe2c0f.png)
生成cert
openssl req -x509 -newkey rsa:2048 -keyout private.key -out certificate.crt -days 365 -nodes -subj "/CN=localhost"
![](https://i-blog.csdnimg.cn/direct/c82f03126b034a4294d9b87064612c66.png)
![](https://i-blog.csdnimg.cn/direct/a7fcc8041b794472a252b665b373d784.png)
转换pfx
openssl pkcs12 -export -out certificate.pfx -inkey private.key -in certifica