u010071346
u010071346
采纳率0%
2015-10-14 01:51

微信扫码支付 退款 证书报错系统找不到指定的文件

//是否使用证书
if (isUseCert)
{
string path = HttpContext.Current.Request.PhysicalApplicationPath;

                ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);

** X509Certificate cer = new X509Certificate(path + Config.SSLCERT_PATH, SSLCERT_PASSWORD);**

                HttpWebRequest webrequest = (HttpWebRequest)HttpWebRequest.Create(url);
                webrequest.ClientCertificates.Add(cer);
                webrequest.Method = "post";
                HttpWebResponse webreponse = (HttpWebResponse)webrequest.GetResponse();
                Stream stream = webreponse.GetResponseStream();

            }
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • y1y2y4 端庄的地下党 2年前

    请问有微信证书可以借用下吗?需要调试接口,但目前自己的微信商户还未开通,谢谢了

    点赞 评论 复制链接分享

相关推荐