首页 > 其他分享 >解决问题:请求被中止:未能创建SSL/TLS安全通道。

解决问题:请求被中止:未能创建SSL/TLS安全通道。

时间:2023-09-10 12:22:19浏览次数:41  
标签:TLS 中止 SystemDefault SSL SecurityProtocolType WebClient

在调用WebClient时,有时报“请求被中止:未能创建SSL/TLS安全通道。”的故障,网上有不少方法是写道在WebClient前加入安全配置协议:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3
                    //| SecurityProtocolType.SystemDefault //注意:不要加入此行
                    | SecurityProtocolType.Tls
                    | SecurityProtocolType.Tls11
                    | SecurityProtocolType.Tls12;

但要注意的是,SecurityProtocolType.SystemDefault协议不要加,这样在调用WebClient就不会报错啦!

标签:TLS,中止,SystemDefault,SSL,SecurityProtocolType,WebClient
From: https://www.cnblogs.com/east115/p/17691001.html

相关文章

  • 将SSL证书设置成HTTPS的详细步骤
    在互联网上建立一个安全且可信任的网站,HTTPS是一种常用的解决方案。HTTPS是HTTP的安全版本,通过使用SSL/TLS协议对传输的数据进行加密,确保数据传输的安全性。要实现HTTPS,你需要将SSL证书设置到你的网站上。以下是详细的步骤:获取SSL证书:你需要获取SSL证书。你可以购买或申请免费的SSL......
  • 关于Flutter的webview无法访问私有SSL证书链接的问题
    优先考虑用 Freessl 技术方案: 问题原因项目部署服务器的Https为私有SSL证书,目前确认不会提供共有SSL证书,导致WebView访问网页空白问题官方设计WebView插件时,为了考虑安全性在访问https链接时,必须要求SSL证书有效,不支持自定义SSL错误的处理解决方式有三种处理方式:使......
  • 配置ssl
    下载nginx.orgcd到目录,startnginx:启动nginx-sstopnginx-squit//可以修改hosts文件,做域名指向SSL:下载opensslopensslgenrsa-des3-outmyodoo.key1024opensslreq-new-keymyodoo.key-outmyodoo.csr(根据上面的myodoo.key生成csr)去除密码:复制myodoo.ke......
  • idrac登陆dell服务器 提示ssl错误解决方法
    1、使用idrac登陆dell服务器,提示ssl登陆错误,SSLmisserror错误2、勾选SSL以及TLS全选(兼容全部加密证书类型)3、edge使用IE模式访问......
  • evil-winrm:An error of type OpenSSL::Digest::DigestError happened, message is Dig
    使用evil-winrm无法连接主机,出现以下错误Info:EstablishingconnectiontoremoteendpointError:AnerroroftypeOpenSSL::Digest::DigestErrorhappened,messageisDigestinitializationfailed:initializationerrorError:Exitingwithcode1 修改/etc/ssl/ope......
  • docker 安装nginx,并配置域名ssl证书(超详细)
    1、直接安装最新的nginxdockerpullnginx2、由于后期需要方便配置与管理nginx,需要把nginx容器内的文件夹进行挂载到宿主机中,所以此处需要进行到自己心仪的盘中创建文件夹(本次说明在/home)mkdirnginx&&cd$_&&mkdir-p{ssl,config,logs}ssl放域名对应证书config放nginx配置文......
  • linux centos 安装 openssl和httpd错误。
    一、出现如下错误;ab.o:Infunction`ssl_print_cert_info':/srv/httpd-2.4.57/support/ab.c:666:undefinedreferenceto`X509_get_version'/srv/httpd-2.4.57/support/ab.c:668:undefinedreferenceto`X509_getm_notBefore'/srv/httpd-2.4.57/support/ab.c......
  • 执行python脚本报错:case by sslerror(sslcertVerificationerror(1,ssl:vertificate_ve
    【现象】  使用python编写了一个请求,报错ssl证书过期问题【解决办法】   requests.packages.urllib3.disable_warnings()  r=requests.post(service_url,data=payload,headers=self.headers,verify=False)参考链接:https://www.cnblogs.com/sea-stream/p/14......
  • lattice crosslink开发板mipi核心板csi测试dsi屏lif md6000 fpga
    1.概述    CrossLink开发板,是用Lattice的芯片CrossLink家族系列的,LIF-MD6000-6JM80I。该芯片用于桥接视频接口功能,自带2路MIPI硬核的功能,4LANE MIPI的功能,支持高速率1.5Gbps。   其他普通IO支持1.2Gbps速率,支持5路MIPI通道功能。 芯片包含LVDS,SLVS200,SubLV......
  • HTTPS加密协议详解:TLS/SSL握手过程
    1、握手与密钥协商过程基于RSA握手和密钥交换的客户端验证服务器为示例详解TLS/SSL握手过程。(1).client_hello客户端发起请求,以明文传输请求信息,包含版本信息,加密套件候选列表,压缩算法候选列表,随机数,扩展字段等信息,相关信息如下:支持的最高TSL协议版本version,从低到高依次SSLv2SS......