Syatem.Net.WebException:基础连接已经关闭:未能为 SSL/TLS 安全通道建立信任关系。

本文主要是介绍Syatem.Net.WebException:基础连接已经关闭:未能为 SSL/TLS 安全通道建立信任关系。,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

错误日志

---System.Security.Authentication.AuthenticationException:根据验证过程,远程证书无效。 在System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message,AsyncProtocolRequest asyncRequest, Exception exception)System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message,AsyncProtoco1Request asyncRequest)System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes,AsyncProtocolRequest asyncRequest)Syatem.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message,AsyncProtocolRequSyatem.Net.WebException:基础连接已经关闭:未能为 SSL/TLS 安全通道建立信任关系。est asyncRequest) System.Net.Security.SslState.StartSendB1ob(Byte[] incoming, Int32 count,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReadFrame(Byte[] buffer,Int32 readBytes, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.CheckCompletionBeforeNextReceive(Protoco1Token message,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartSendBlob(Byte[] incoming,Int32 count, AsyncProtocolRequest asyncRequest)System.Net.Security. SslState. ProcessReceivedBlob (Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.CheckCompletionBeforeNextReceive (ProtocolToken message, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartSendB1ob(Byte[] incoming,Int32 count,AsyncProtoco1Request asyncRequest)System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReadFrame(Byte[] buffer,Int32 readBytes, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReceiveBlob (Byte[] buffer, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.CheckCompletionBeforeNextReceive (ProtocolToken message, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartSendB1ob (Byte[] incoming,Int32 count,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReadFrame (Byte[] buffer, Int32 readBytes,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.CheckComp let ionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReadFrame(Byte[] buffer,Int32 readBytes,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)System.Net.Security.SalState.CheckCompletionBeforeNextReceive(ProtocolToken message,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartSendB1ob(Byte[] incoming, Int32 count,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer,Int32 count, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)System.Net.Security.SalState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.StartSendBlob(Byte[] incoming,Int32 count,AsyncProtocolRequest asyncRequest)System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult)System.Net.TlsStream.CallProcessAuthentication(Object state)Syatem.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback, Object state,Boolean preserveSyncCtx) System.Threading.Execut ionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state,Boolean preserveSyncCtx)System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback callback, Object state) System.Net.TlsStream.Processhuthentication(LazyAsyncResult result)SystemNetTlsStreamWriteByte[] buffer, Int32 offset, Int32 size) 在SystemNetPooledStreamWriteByte[] buffer, Int32 offset, Int32 size) 在System.Net.ConnectStream.WriteHeadersBoolean async)

二、错误原因

本次服务是由Nginx从内网代理到外网,再从外网代理到内网,并在内网中通过ip和端口号进行访问。经过查询,是由于一个Nginx的协议修改后,并未对另一个Nginx进行修改。
在这里插入图片描述

三、解决办法

将两个Nginx的协议进行同步修改。

这篇关于Syatem.Net.WebException:基础连接已经关闭:未能为 SSL/TLS 安全通道建立信任关系。的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/261723

相关文章

Mysql 中的多表连接和连接类型详解

《Mysql中的多表连接和连接类型详解》这篇文章详细介绍了MySQL中的多表连接及其各种类型,包括内连接、左连接、右连接、全外连接、自连接和交叉连接,通过这些连接方式,可以将分散在不同表中的相关数据... 目录什么是多表连接?1. 内连接(INNER JOIN)2. 左连接(LEFT JOIN 或 LEFT

Springboot使用RabbitMQ实现关闭超时订单(示例详解)

《Springboot使用RabbitMQ实现关闭超时订单(示例详解)》介绍了如何在SpringBoot项目中使用RabbitMQ实现订单的延时处理和超时关闭,通过配置RabbitMQ的交换机、队列和... 目录1.maven中引入rabbitmq的依赖:2.application.yml中进行rabbit

Ubuntu 24.04 LTS怎么关闭 Ubuntu Pro 更新提示弹窗?

《Ubuntu24.04LTS怎么关闭UbuntuPro更新提示弹窗?》Ubuntu每次开机都会弹窗提示安全更新,设置里最多只能取消自动下载,自动更新,但无法做到直接让自动更新的弹窗不出现,... 如果你正在使用 Ubuntu 24.04 LTS,可能会注意到——在使用「软件更新器」或运行 APT 命令时,

Go信号处理如何优雅地关闭你的应用

《Go信号处理如何优雅地关闭你的应用》Go中的优雅关闭机制使得在应用程序接收到终止信号时,能够进行平滑的资源清理,通过使用context来管理goroutine的生命周期,结合signal... 目录1. 什么是信号处理?2. 如何优雅地关闭 Go 应用?3. 代码实现3.1 基本的信号捕获和优雅关闭3.2

Spring Boot实现多数据源连接和切换的解决方案

《SpringBoot实现多数据源连接和切换的解决方案》文章介绍了在SpringBoot中实现多数据源连接和切换的几种方案,并详细描述了一个使用AbstractRoutingDataSource的实... 目录前言一、多数据源配置与切换方案二、实现步骤总结前言在 Spring Boot 中实现多数据源连接

QT实现TCP客户端自动连接

《QT实现TCP客户端自动连接》这篇文章主要为大家详细介绍了QT中一个TCP客户端自动连接的测试模型,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录版本 1:没有取消按钮 测试效果测试代码版本 2:有取消按钮测试效果测试代码版本 1:没有取消按钮 测试效果缺陷:无法手动停

.NET利用C#字节流动态操作Excel文件

《.NET利用C#字节流动态操作Excel文件》在.NET开发中,通过字节流动态操作Excel文件提供了一种高效且灵活的方式处理数据,本文将演示如何在.NET平台使用C#通过字节流创建,读取,编辑及保... 目录用C#创建并保存Excel工作簿为字节流用C#通过字节流直接读取Excel文件数据用C#通过字节

W外链微信推广短连接怎么做?

制作微信推广链接的难点分析 一、内容创作难度 制作微信推广链接时,首先需要创作有吸引力的内容。这不仅要求内容本身有趣、有价值,还要能够激起人们的分享欲望。对于许多企业和个人来说,尤其是那些缺乏创意和写作能力的人来说,这是制作微信推广链接的一大难点。 二、精准定位难度 微信用户群体庞大,不同用户的需求和兴趣各异。因此,制作推广链接时需要精准定位目标受众,以便更有效地吸引他们点击并分享链接

零基础学习Redis(10) -- zset类型命令使用

zset是有序集合,内部除了存储元素外,还会存储一个score,存储在zset中的元素会按照score的大小升序排列,不同元素的score可以重复,score相同的元素会按照元素的字典序排列。 1. zset常用命令 1.1 zadd  zadd key [NX | XX] [GT | LT]   [CH] [INCR] score member [score member ...]

poj 1258 Agri-Net(最小生成树模板代码)

感觉用这题来当模板更适合。 题意就是给你邻接矩阵求最小生成树啦。~ prim代码:效率很高。172k...0ms。 #include<stdio.h>#include<algorithm>using namespace std;const int MaxN = 101;const int INF = 0x3f3f3f3f;int g[MaxN][MaxN];int n