摘要:C#.NET FRAMEWORK XML私钥转PKCS1,PKCS8 使用了 BouncyCastle 这个dll ,到nuget中下载即可。 XML私钥转PKCS1 public string XmlToPem(string xmlPrivateKey) { RSACryptoServicePro
阅读全文
01 2022 档案
摘要:.net core (.net6) 读取配置文件 appsettings.json 新建个工具类,方便其它地方使用,代码如下 AppHelper: namespace net6mvc.Utils { public class AppHelper { private static IConfigura
阅读全文
摘要:环境: .net6 webapi 服务端模型声明 public class TongYiMinPgPayReq { public string mch_no { get; set; } public string out_trade_no { get; set; } } 客户端请求报文 : {"mc
阅读全文
摘要:k8s 安装ingress nginx controller 并部署.net core ingress服务 本地k8s集群概览 192.168.28.132 k8smaster 192.168.28.133 k8snode1 192.168.28.134 k8snode2 192.168.28.13
阅读全文
摘要:1.用VS2022新建一个.NET6 MVC项目。 2.使用nuget引用NLog.Extensions.Logging。 3.项目中新建一个NLog.config配置文件,右键属性设置为“如果内容较新则复制”,NLog.config文件内容如下: <?xml version="1.0" encod
阅读全文
摘要:vitual box下载地址: https://www.virtualbox.org/wiki/Downloads centos7下载地址: CentOS Linux 选择7-2009,x86-64 准备好软件后,开始安装。 在vitual box点击新建,名称为:CentOS7_Base。 内存输
阅读全文