当前位置:网站首页>About wechat enterprise payment to change x509certificate2 read certificate information, publish to the server can not access the solution
About wechat enterprise payment to change x509certificate2 read certificate information, publish to the server can not access the solution
2022-07-02 12:39:00 【Time chaser】
Preface :
Recently, we have made a function of calling wechat enterprise to pay the user's change , It's really strange , There is no problem in my local debugging , But when I publish to the service, I can't read my certificate information all the time . The code read is as follows , It is provided by wechat official documents X509Certificate2 How to read the certificate :
string path = AppDomain.CurrentDomain.BaseDirectory + @"WXCertificate\"; // The relative path is used X509Certificate2 cert = new X509Certificate2(path + WxPayConfig.SSLCERT_PATH, WxPayConfig.SSLCERT_PASSWORD);// File path , File password
Later Baidu learned that it put the certificate on the server , First of all, you have to install the certificate :
Certificate install Up
Click on [ Start ] -> [ function ] -> Input [mmc] Get into “ Console ” Interface -> choice [ file ] -> [ add to / Delete Management unit ](Ctrl+M)
choice [ certificate ] -> [ Computer account ] -> [ next step ] -> [ complete ]
choice [ certificate ] -> [ Import ] Just import your certificate file
Wait, don't worry , Another important step , You also need to turn on IIS The autoload configuration file in the program pool configuration of will False Set to True That's all right. , Get up and try !!
Pictured :
summary :
From one o'clock in the morning , There's always something unexpected bug It bothers us all the time , But we must believe that we can solve it , Slowly find a way to solve it ! come on. , Sao Nian !!!
边栏推荐
- Drools executes the specified rule
- Programmers can't find jobs after the age of 35? After reading this article, you may be able to find the answer
- BOM DOM
- Anxiety of a 211 programmer: working for 3 years with a monthly salary of less than 30000, worried about being replaced by fresh students
- Introduction to CPU instruction set
- JS8day(滚动事件(scroll家族),offset家族,client家族,轮播图案例(待做))
- Lekao: 22 year first-class fire engineer "technical practice" knowledge points
- Less than three months after the programmer was hired, the boss wanted to launch the app within one month. If he was dissatisfied, he was dismissed immediately
- 线性DP AcWing 897. 最长公共子序列
- [ybtoj advanced training guidance] judgment overflow [error]
猜你喜欢

Writing method of then part in drools

AAAI 2022 | Peking University & Ali Dharma Institute: pruning and compression of pre training language model based on comparative learning

Anti shake throttle

JS8day(滚动事件(scroll家族),offset家族,client家族,轮播图案例(待做))

Map and set
![2.6 using recursion and stack - [tower of Hanoi problem]](/img/fc/45038170dafd104691c93716b103cf.jpg)
2.6 using recursion and stack - [tower of Hanoi problem]

Simple understanding of ThreadLocal

Docker compose configuration mysql, redis, mongodb

Less than three months after the programmer was hired, the boss wanted to launch the app within one month. If he was dissatisfied, he was dismissed immediately

浏览器node事件循环
随机推荐
WSL 2 will not be installed yet? It's enough to read this article
kubenetes中port、targetPort、nodePort、containerPort的区别与联系
CDA data analysis -- common knowledge points induction of Excel data processing
Calculate the maximum path sum of binary tree
drools中then部分的写法
[I'm a mound pytorch tutorial] learning notes
Redis transaction mechanism implementation process and principle, and use transaction mechanism to prevent inventory oversold
CDA data analysis -- Introduction and use of aarrr growth model
MySQL and PostgreSQL methods to grab slow SQL
Go learning notes - multithreading
IPhone 6 plus is listed in Apple's "retro products" list
接口测试面试题目,你都会了吗?
Less than three months after the programmer was hired, the boss wanted to launch the app within one month. If he was dissatisfied, he was dismissed immediately
AAAI 2022 | Peking University & Ali Dharma Institute: pruning and compression of pre training language model based on comparative learning
Openssh remote enumeration username vulnerability (cve-2018-15473)
BOM DOM
When uploading a file, the server reports an error: iofileuploadexception: processing of multipart / form data request failed There is no space on the device
寻找二叉树中任意两个数的公共祖先
Map and set
CPU指令集介绍