异常来自 HRESULT:0xA0071001
使用证书对内容进行加密时报这个错误:异常来自 HRESULT:0xA0071001,有没有大神也遇到过这个问题的,请帮助解决一下,百度也找不到相关的内容
//进行证书加密
protected void toBookSign(object sender, EventArgs e)
{
CryptoAgentClass cfca = new CryptoAgentClass();
string data = data_request.Value;
string result = "";
//获取密码
string pwd = Config.cfcKey;
//正书路径
string PFXFilePath = Server.MapPath("\\book\\10000450379.pfx");
//证书签名
result = cfca.CFCA_SignData(PFXFilePath, pwd, data, true);
data_response.Value = result;
}