问题描述
我要寻找的方式来解码.NET中的PKCS#12文件,我需要提取私钥和任何证书,这样我可以编程方式访问以下。
I am looking for ways to decode a PKCS#12 file in .NET, I need to extract the private key and any certificates so that i can programatically access the following.
- 系数
- publicExponent
- privateExponent
- prime1
- prime2
- exponent1
- exponent2
- 系数
- modulus
- publicExponent
- privateExponent
- prime1
- prime2
- exponent1
- exponent2
- coefficient
我需要这个资讯,这样我可以成功地使用PKCS#11上创建一个USB令牌的私钥和cetificate。
I need this informatio so that i can successfully use PKCS#11 to create a private key and cetificate on a USB token.
我发现,使用输出此数据的网站。我非常兴奋,当我发现然而后的功能拆分PKCS#12文件不是招' ŧ尚未实施。如果任何人知道任何altenatives的我不知道。
I have found a website that uses OpenSSL to output this data. I was pretty excited when I found OpenSSL.NET however the functionallity to split PKCS#12 files hasn't been implemented yet. I was wondering if anyone knew of any altenatives.
感谢
罗汉
推荐答案
我用充气城堡API extensibly在最近的一个项目,它的Java端口上,它可以创造奇迹,完美无缺。
I've used bouncy castle API extensibly on a recent project, on its Java port, and it works wonders, flawlessly.
我敢打赌,他们的C#是没有太大的不同,以及它在什么是针对一个很好的工作。
I bet their C# isn't much different, and it does a really good work at what is targeted.
的
这篇关于解码PKCS#12文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!