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中的交叉连接、自然连接和内连接查询,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、引入二、交php叉连接(cross join)三、自然连接(naturalandroid join)四

mysql的基础语句和外键查询及其语句详解(推荐)

《mysql的基础语句和外键查询及其语句详解(推荐)》:本文主要介绍mysql的基础语句和外键查询及其语句详解(推荐),本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋... 目录一、mysql 基础语句1. 数据库操作 创建数据库2. 表操作 创建表3. CRUD 操作二、外键

Python基础语法中defaultdict的使用小结

《Python基础语法中defaultdict的使用小结》Python的defaultdict是collections模块中提供的一种特殊的字典类型,它与普通的字典(dict)有着相似的功能,本文主要... 目录示例1示例2python的defaultdict是collections模块中提供的一种特殊的字

python连接本地SQL server详细图文教程

《python连接本地SQLserver详细图文教程》在数据分析领域,经常需要从数据库中获取数据进行分析和处理,下面:本文主要介绍python连接本地SQLserver的相关资料,文中通过代码... 目录一.设置本地账号1.新建用户2.开启双重验证3,开启TCP/IP本地服务二js.python连接实例1.

Python从零打造高安全密码管理器

《Python从零打造高安全密码管理器》在数字化时代,每人平均需要管理近百个账号密码,本文将带大家深入剖析一个基于Python的高安全性密码管理器实现方案,感兴趣的小伙伴可以参考一下... 目录一、前言:为什么我们需要专属密码管理器二、系统架构设计2.1 安全加密体系2.2 密码强度策略三、核心功能实现详解

Python基础文件操作方法超详细讲解(详解版)

《Python基础文件操作方法超详细讲解(详解版)》文件就是操作系统为用户或应用程序提供的一个读写硬盘的虚拟单位,文件的核心操作就是读和写,:本文主要介绍Python基础文件操作方法超详细讲解的相... 目录一、文件操作1. 文件打开与关闭1.1 打开文件1.2 关闭文件2. 访问模式及说明二、文件读写1.

Ubuntu中远程连接Mysql数据库的详细图文教程

《Ubuntu中远程连接Mysql数据库的详细图文教程》Ubuntu是一个以桌面应用为主的Linux发行版操作系统,这篇文章主要为大家详细介绍了Ubuntu中远程连接Mysql数据库的详细图文教程,有... 目录1、版本2、检查有没有mysql2.1 查询是否安装了Mysql包2.2 查看Mysql版本2.

Python3.6连接MySQL的详细步骤

《Python3.6连接MySQL的详细步骤》在现代Web开发和数据处理中,Python与数据库的交互是必不可少的一部分,MySQL作为最流行的开源关系型数据库管理系统之一,与Python的结合可以实... 目录环境准备安装python 3.6安装mysql安装pymysql库连接到MySQL建立连接执行S

Tomcat版本与Java版本的关系及说明

《Tomcat版本与Java版本的关系及说明》:本文主要介绍Tomcat版本与Java版本的关系及说明,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录Tomcat版本与Java版本的关系Tomcat历史版本对应的Java版本Tomcat支持哪些版本的pythonJ

C#基础之委托详解(Delegate)

《C#基础之委托详解(Delegate)》:本文主要介绍C#基础之委托(Delegate),具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录1. 委托定义2. 委托实例化3. 多播委托(Multicast Delegates)4. 委托的用途事件处理回调函数LINQ