如何在C#中使用.cer文件发送经过数字签名的邮件 [英] how to send digitally signed mail in c# with .cer file
问题描述
您好,先生,
我面临发送经过数字签名的电子邮件的问题.
当我运行程序邮件成功发送.
但是,从iis开始时,它给了我错误.
Erroe在下面,
-------------------------------------------------- -------------------------------
WindowsError:系统找不到指定的文件.错误代码:0x2使用新的密钥集重试...登录的用户:bo_test无法获取加密服务提供程序createDetachedSignature.csp:系统找不到指定的文件. logging_on_user:bo_test无法创建分离的签名signer_address:esign@domain.com无法准备要发送的电子邮件. (3)
-------------------------------------------------- -------------------------------
请给我建议或解决此问题的方法.
紧急.
谢谢.</pre>
Hello Sir,
I am facing the problem for send digitally signed email.
When i run programme mail is sent successfully.
But when from iis then it's give me error.
Erroe is below,
---------------------------------------------------------------------------------
WindowsError: The system cannot find the file specified. errorCode: 0x2 Retry with new keyset... logged_on_user: bo_test Failed to get Cryptographic Service Provider createDetachedSignature.csp: The system cannot find the file specified. logged_on_user: bo_test Failed to create detached signature signer_address: esign@domain.com Failed to prepare email for sending. (3)
---------------------------------------------------------------------------------
Please Give me suggestion or solution to solve this problem.
It's urgent.
Thanks.</pre>
推荐答案
似乎有一些权限/安全性问题.请查找执行代码和创建证书所需的所有特权.可能需要假冒.
It looks like some permissions/security issues. Kindly look for what all priviledges are needed in order to execute code and create the certificate. Might be impersonation is needed.
这篇关于如何在C#中使用.cer文件发送经过数字签名的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!