使用 OpenSSL 将 public 密钥与私钥和 CA 结合到 PFX

Combine public key with private key and CA to PFX using OpenSSL

如何将带有私有证书和 CA 的证书合并到 pfx 文件中,以便它们都可以一次性安装。

这些证书是从 https://www.sslforfree.com

生成的

openssl pkcs12 -export -in certificate.crt -inkey private.key -certfile ca_bundle.crt -out certificate_merged.pfx