我的代码是:
var query = System.Web.HttpUtility.ParseQueryString(req.RequestUri.Query);
string certificate = = query.Get("issuerCertificate");
byte[] bytes = Encoding.ASCII.GetBytes(certificate);
X509Certificate2 cer = new X509Certificate2(bytes);
预先感谢
答案 0 :(得分:0)
从查询字符串参数发送证书时,在某些空格之间的证书内部。所以我通过添加application / json删除空格。现在我的证书运行正常。