问题描述
我需要编写一个应用程序来使用x509证书对XML字符串进行签名和加密,x509证书可以由Java客户端使用Entrust Security Toolkit读取.我编写了一些利用System.Security.Cryptography.X509Certificates和System.Security.Cryptography.Pkcs的类 它实质上在msdn http://msdn.microsoft.com/zh-cn/library/ms180961.aspx 我能够验证邮件是否已正确加密并正确签名,但问题是Entrust工具包向您报告了邮件仅被签名或加密,具体取决于 命令在我的代码中执行.委托的建议是编写代码以与他们的工具箱互操作,或者一步找到一种加密和签名消息的方法.这对我来说没有多大意义,因为我看到的传达信息似乎使用了两个步骤.我也 尝试了Bouncey Castle和Chilkat图书馆,但那里没有欢乐.
I need to write an application to sign and encrypt an xml string using x509 certificates that can be read by a Java client using the Entrust Security Toolkit. I've written some classes that utilise System.Security.Cryptography.X509Certificates and System.Security.Cryptography.Pkcs which essentially mirror this example on msdn http://msdn.microsoft.com/en-us/library/ms180961.aspx I am able to verify the messages are infact encrypted and signed correctly but the problem is that the Entrust toolkit reports back that the message is only signed, or encrypted depending on the order I do it in my code. Entrusts advice is to write code to interop with thier toolkit, or find a method of encrypting and signing the message in one step. This doesn't make a lot of sense to me as evey message I have seen seems to use two steps. I've also trid Bouncey Castle and Chilkat libraries but no joy there.
有人对Entrust证书有类似的经验吗?
Anyone had a simliar experience with Entrust certificates?
欢呼
推荐答案
感谢您的问题,我们正在研究这种情况,可能需要一些时间才能回复您.
Thank you for your question, we're doing research on this case, it might take some time before we get back to you.
这篇关于PKCS托管和加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!