从 .NET Core 中的 pfx 文件中提取多个公钥

问题描述

一个 .pfx 文件可以包含多个公钥,但 X509Certificate2 import支持导入一个证书。请参阅链接中的备注部分

Note that a PFX/PKCS12 certificate can contain more than one certificate. In that case,the first 
certificate associated with a private key is used or,if no private key is found,the first 
certificate is used.

我需要导入 .pfx 文件中的所有公钥,而不仅仅是第一个。如何在 .NET Core 中执行此操作?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)