且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

读取PEM格式的RSA私钥并从证书中读取公钥

更新时间:2023-01-18 09:54:45

您可能会找到 Bouncycastle C#库对于解决您的问题很有价值。有一个PEMReader类应该能够读取您的PEM文件并将其内容转换为Bouncycastle加密对象。还有一个DotNetUtilities类可以在Bouncycastle和.NET加密对象之间建立桥梁。

You may find the Bouncycastle C# library to be of value in your problem. There is a PEMReader class that should be able to read in your PEM file and convert the contents to Bouncycastle cryptography objects. And there is a DotNetUtilities class to provide a bridge between Bouncycastle and .NET cryptography objects.