问题描述
我正在尝试将数字签名添加到PDF文档中.我的证书将存储在IE商店中,用户将从中进行选择.为此,我使用了密码学类.在他选择了用于签名的证书之后,我将其导出并将该文件传递给iTextSharp,它负责数字签名.
我的问题是,当我从IE存储中导出证书时,它不询问密码,导出的证书中没有密码.因此,对于证书没有安全性/保护性,这是非常令人惊讶的.
任何人都可以简单地导出并使用?导入证书时,我必须提供一个密码,那么该密码有什么用?我需要验证导入由证书颁发机构提供的证书时提供的密码.有什么解决方案?
谢谢
Hi,
I am trying to add a digital signature to a PDF document. My certificate will be stored in IE store and user will select from that. For this I have used Cryptography Class. After he selects the certificate for signature, I m exporting it and passing that file to iTextSharp & it takes care of the digital signature.
My problem is, when I export the certificate from IE store it doesn''t ask for the password, exported certificate has no password. So, this is quite surprising that no security/protection for Certificate...
Anyone can simply export that & use? At the time of importing certificate I have to give a password, whats the use of that then? I need to validate the password given at the time of importing the certificate that is given by Certificate Authorities. what can be the solution?
Thanks
推荐答案
这篇关于C#.Net中的数字签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!