摘要:
1.nuget 中安装log4net 2。添加一个配置文件“log4net2.config”,内容如下: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="log4net" 阅读全文
摘要:
namespace CommonUtils { public static class TimeStampUtil { /// <summary> /// 获取时间戳 10位 /// </summary> /// <returns></returns> public static long GetT 阅读全文
摘要:
10 位时间戳: public static long GetTimeStampTen() { return (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000; } 13 位时间戳: //当前时间转换13位时 阅读全文
摘要:
引用:https://www.cnblogs.com/moonbaby/p/11188135.html 1)显示本机保存的profiles,配置文件是以wifi的ssid命名的. netsh wlan show profiles 2)用netsh wlan connect name=xxxxx 连接 阅读全文
摘要:
参考:https://jingyan.baidu.com/article/29697b911c1c4cab20de3c0f.html 1.打开 http://www.tenaa.com.cn/ ,点击网上服务 2.点击“证书查询”命令 3.在“证书查询”页面,点击“显示更多查询条件”命令。 4.在“ 阅读全文
摘要:
C# JAVA urlencode 默认是不兼容的。C# 需要encode的部分是小写。JAVA 需要encode的部分是大写。 /// <summary> /// java UrlEncode 特点是:需要UrlEncode字符,UrlEncode后要大写。 /// </summary> /// 阅读全文
摘要:
请求被中止: 未能创建 SSL/TLS 安全通道。 用mmc 给私钥证书添加Everyone 的权限。 阅读全文
摘要:
public static X509Certificate2 GetCertificate(string commonName, StoreName storeName) { X509Certificate2 certificate = null; // Look for a certificate 阅读全文
摘要:
public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) { #region 自签名证书,跳过 if (! 阅读全文