html5/css教程

javascript教程

asp教程

php教程

jsp教程

C#/.NET教程

Python教程

网络营销

建站经验

点击排行

您现在的位置:首页 > 网络教程 > asp技巧

ASP微信支付,微信公众号证书安装方法

来源:中文源码网    浏览:1733 次    日期:2024-03-26 13:30:45

方法一:免安装证书接口ASP微信公众号支付接口源码对接

在线测试支付效果(微信扫码测试公众号支付效果)

接口对接服务热线:180-687-28630 QQ:120094883点击这里给我发消息


方法二:安装证书版

1、首先需要安装证书

到微软官方下载winhttpcertcfg.exe

下载地址:http://www.microsoft.com/en-us/download/details.aspx?id=19801

使用说明:https://msdn.microsoft.com/en-us/library/aa384088.aspx#_using

选择一个位置安装即可,为了方便输入,建议安装到:C:\cert_tools\

2、安装证书

安装第一步的工具后,执行以下命令,即可安装证书成功。
假如 证书工具安装在C:\cert_tools\,证书放在 D:\Project\WechatASP

2.1、导入证书

C:\cert_tools\winhttpcertcfg -g -i "D:\Project\WechatASP\apiclient_cert.p12" -c LOCAL_MACHINE\My -a "Network Service" -p 微信商户ID


如果成功会提示:

Microsoft (R) WinHTTP Certificate Configuration Tool
Copyright (C) Microsoft Corporation 2001.
Imported certificate:
SN=12xxxxxx
CN=有限公司
OU=MMPay
O=Tencent
L=Shenzhen
S=Guangdong
C=CN

2.2、设置 Network Serivce 拥有证书使用权限

C:\cert_tools\winhttpcertcfg -g -c LOCAL_MACHINE\My -s "MMPay" -a "Network Service"



如果成功会提示:

Microsoft (R) WinHTTP Certificate Configuration Tool
Copyright (C) Microsoft Corporation 2001.
Matching certificate:
SN=12xxxxxx
CN=有限公司
OU=MMPay
O=Tencent
L=Shenzhen
S=Guangdong
C=CN
Private key access has already been granted for account:
NT AUTHORITY\NETWORK SERVICE

2.3、设置 Everyone 拥有证书使用权限

C:\cert_tools\winhttpcertcfg -g -c LOCAL_MACHINE\My -s "MMPay" -a "EveryOne"



如果成功会提示

精彩推荐