如何使用用户的私钥进行数字签名? [英] How to digitally signed using the private key of the user?

查看:477
本文介绍了如何使用用户的私钥进行数字签名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用用户的私钥进行数字签名。签名包括包含X.509证书详细信息的密钥信息元素。这是电子归档服务器验证签名者所必需的。 SOAP请求中的以下元素必须签名

•时间戳

•用户名口号

•正文



我尝试了什么:



我在google搜索后实现了很多代码,但没有什么是明确的实现程序。客户端是c#,但服务是Java。所以请尽快帮助我。

How to Digitally signed using the private key of the user. Signature include key info element that contains X.509 certificate details. This is needed for e-Filing server to validate the signer. The below elements in the SOAP request has to be signed
• Timestamp
• UsernameToken
• Body

What I have tried:

I am implementing many code after google search but nothing is clear implementation procedure. Here the client side is c# but the service is in Java. So please help me as soon as possible.

推荐答案

PayPal API C#客户端源代码 [ ^ ]使用X.509证书。看看他们如何在源代码中实现它: CertificateManager .cs [ ^ ]
PayPal API C# Client Source Code[^] uses a X.509 certificate. Have a look at how they implement it in their source code: CertificateManager.cs[^]


这篇关于如何使用用户的私钥进行数字签名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆