Using X509Certificate2 on Mono - loading with both public and private key?

不羁的心 提交于 2019-12-01 13:25:02

This constructor throws an exception:

byte[] pkcs12 = ...;
X509Certificate2 cert = X509Certificate2(pkcs12);

This constructor works:

byte[] pkcs12 = ...;
X509Certificate2 cert = X509Certificate2(pkcs12, string.Empty);

This seems to be a bug so I am going to fix it and send patch to the upstream developers. I will let you know of the progress.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!