我想签署将在服务器上验证的 xml 文档。我不知道如何使用 .cer 和 .pfx 文件等数字证书对 xml 文件进行签名和加密。我用谷歌搜索并找到了各种例子,但无法理解标准方式,即
What are the step by step process to sign and encrypt the xml file
这里有一个问题是,
i want to sign and encrypt the file on client(.net c# code) in such a way that it could be validated and decrypt at server(java code)
最佳答案
如果您想在 C# 和 Java 中执行此操作,您可能需要看看 BouncyCaSTLe。这是一个流行的加密库,它支持 C# 和 Java。
关于c# - 使用 x509 证书和加密的数字签名,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10244548/