当前位置:网站首页>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 !!!
边栏推荐
- This "little routine" is set on the dough cake of instant noodles. No wonder programmers are always hungry
- 2.6 using recursion and stack - [tower of Hanoi problem]
- Dijkstra AcWing 850. Dijkstra求最短路 II
- Sweetheart leader: Wang Xinling
- 线性DP AcWing 897. 最长公共子序列
- 线性DP AcWing 899. 编辑距离
- Leetcode - Sword finger offer 37, 38
- bellman-ford AcWing 853. 有边数限制的最短路
- 分布式机器学习框架与高维实时推荐系统
- CPU指令集介绍
猜你喜欢

This "little routine" is set on the dough cake of instant noodles. No wonder programmers are always hungry

Initial JDBC programming

甜心教主:王心凌

CDH6之Sqoop添加数据库驱动

哈希表 AcWing 841. 字符串哈希

浏览器node事件循环

Win10 system OmniPeek wireless packet capturing network card driver failed to install due to digital signature problem solution

Adding database driver to sqoop of cdh6

Go learning notes - multithreading

Map and set
随机推荐
Go learning notes - go based interprocess communication
CDA data analysis -- Introduction and use of aarrr growth model
Dijkstra AcWing 850. Dijkstra求最短路 II
Shutter encapsulated button
Brush questions --- binary tree --2
Introduction to CPU instruction set
Input box assembly of the shutter package
ArrayList与LinkedList效率的对比
计数类DP AcWing 900. 整数划分
分布式机器学习框架与高维实时推荐系统
Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?
drools执行指定的规则
浏览器存储方案
Go学习笔记—多线程
JS10day(api 阶段性完结,正则表达式简介,自定义属性,过滤敏感词案例,注册模块验证案例)
Deep understanding of P-R curve, ROC and AUC
Bom Dom
Go学习笔记—基于Go的进程间通信
单指令多数据SIMD的SSE/AVX指令集和API
Drools executes the specified rule