runliuv

runliuv@cnblogs

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

01 2021 档案

摘要:C# JAVA UrlEncode,UrlEncodeUtil,CSharpToJavaUrlEncode 说明: C# JAVA urlencode 默认是不兼容的。C# 需要encode的部分是小写。JAVA 需要encode的部分是大写。 using System.Text; using Sy 阅读全文
posted @ 2021-01-28 12:15 runliuv 阅读(242) 评论(0) 推荐(0)

摘要:请求被中止: 未能创建 SSL/TLS 安全通道。 用mmc 给私钥证书添加Everyone 的权限。 阅读全文
posted @ 2021-01-26 10:10 runliuv 阅读(196) 评论(0) 推荐(0)

摘要:using System.Security.Cryptography.X509Certificates; namespace CommonUtils { public class CertUtil { /// <summary> /// 使用证书commonName来查找。(也可以用指纹或序列号来找 阅读全文
posted @ 2021-01-20 10:44 runliuv 阅读(445) 评论(0) 推荐(0)

摘要:public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) { #region 自签名证书,跳过 if (! 阅读全文
posted @ 2021-01-20 10:42 runliuv 阅读(765) 评论(0) 推荐(0)

摘要:用telnet 能通。但代码的HTTP 访问不了。 解决方法,在运行时加-Dserver.address=0.0.0.0,让它监听所有: java -Dserver.address=0.0.0.0 -Dfile.encoding=utf-8 -jar scn.jar 如果 SpringBoot启动时 阅读全文
posted @ 2021-01-13 16:53 runliuv 阅读(181) 评论(0) 推荐(0)

摘要:打开TLS 1.1和1.2而不影响其他协议 System.Net.ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; 注意是 |= 引用:https://cl 阅读全文
posted @ 2021-01-12 11:03 runliuv 阅读(244) 评论(0) 推荐(0)