当前位置:网站首页>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 !!!
边栏推荐
- Leetcode - Sword finger offer 37, 38
- drools中then部分的写法
- JDBC 预防sql注入问题与解决方法[PreparedStatement]
- Calculate the maximum path sum of binary tree
- [ybtoj advanced training guide] similar string [string] [simulation]
- LeetCode—剑指 Offer 37、38
- 记录一下MySql update会锁定哪些范围的数据
- Use sqoop to export ads layer data to MySQL
- drools动态增加、修改、删除规则
- BOM DOM
猜你喜欢
Embedded Software Engineer career planning
Does C language srand need to reseed? Should srand be placed in the loop? Pseudo random function Rand
Map and set
2.7 binary tree, post order traversal - [FBI tree]
堆 AcWing 838. 堆排序
Redis sentinel mechanism and configuration
MySQL and PostgreSQL methods to grab slow SQL
PR 2021 quick start tutorial, learn about the and functions of the timeline panel
趣味 面试题
Floyd AcWing 854. Floyd求最短路
随机推荐
LeetCode—剑指 Offer 37、38
Win10 system OmniPeek wireless packet capturing network card driver failed to install due to digital signature problem solution
Shutter encapsulated button
Experiment of connecting mobile phone hotspot based on Arduino and esp8266 (successful)
spfa AcWing 851. spfa求最短路
Drools terminates the execution of other rules after executing one rule
arcgis js 4. Add pictures to x map
Use sqoop to export ads layer data to MySQL
Sub thread get request
通过反射执行任意类的任意方法
Anxiety of a 211 programmer: working for 3 years with a monthly salary of less than 30000, worried about being replaced by fresh students
寻找二叉树中任意两个数的公共祖先
2.7 binary tree, post order traversal - [FBI tree]
浏览器存储方案
This "little routine" is set on the dough cake of instant noodles. No wonder programmers are always hungry
Redis sentinel mechanism and configuration
[ybtoj advanced training guidance] cross the river [BFS]
ArrayList与LinkedList效率的对比
Discrimination of the interval of dichotomy question brushing record (Luogu question sheet)
Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?