欢迎来到安信科技官方网站!【www.anxin66.com】
18112005550
工作时间: 8:30-21:30
新闻中心
News Center

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

资讯分类: 资源共享  浏览: 2017年6月29日

 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=<strong>有限公司
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=<strong>有限公司
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"

 

 

如果成功会提示:

 
Microsoft (R) WinHTTP Certificate Configuration Tool
Copyright (C) Microsoft Corporation 2001.
 
Matching certificate:
SN=12xxxxxx
CN=<strong>*有限公司
OU=MMPay
O=Tencent
L=Shenzhen
S=Guangdong
C=CN
 
Granting private key access for account:
    \Everyone
 
Copyright © 2007-2022 安信科技(十五周年纪念版) All Rights Reserved  备案号:苏ICP备15047094号-3 
网站首页 |  新闻资讯 |  服务项目 |  软件产品 |  试用下载 |  需求提交 |  模版建站 |  关于安信 |  产品授权 |  联系我们 |  定制开发 | 
服务热线:181-1200-5550  客服QQ: 120094883  | 邮箱:120094883#qq.com(#改@)