当前位置:网站首页>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 !!!
边栏推荐
猜你喜欢
随机推荐
Redis transaction mechanism implementation process and principle, and use transaction mechanism to prevent inventory oversold
堆(優先級隊列)
CDH存在隐患 : 该角色的进程使用的交换内存为xx兆字节。警告阈值:200字节
哈希表 AcWing 841. 字符串哈希
Drools executes the specified rule
AI中台技术调研
The differences and relationships among port, targetport, nodeport and containerport in kubenetes
2.6 using recursion and stack - [tower of Hanoi problem]
Anti shake throttle
Use sqoop to export ads layer data to MySQL
Heap (priority queue)
Brush questions --- binary tree --2
Shuttle encapsulated AppBar
线性DP AcWing 897. 最长公共子序列
Multiply LCA (nearest common ancestor)
CDA data analysis -- common knowledge points induction of Excel data processing
VLAN experiment
Anxiety of a 211 programmer: working for 3 years with a monthly salary of less than 30000, worried about being replaced by fresh students
js 迭代器 生成器 异步代码处理 promise+生成器 -> await/async
Drools executes string rules or executes a rule file








