首页 > 其他分享 >Solution to OpenSSL Connection Problems With Github

Solution to OpenSSL Connection Problems With Github

时间:2023-10-30 20:47:58浏览次数:28  
标签:TLS Github IP Problems OpenSSL SSL Connection address

Problems Uploading Files with Git

Sometimes we can use git tool to successfully upload projects to Github, but in other time especially after a period of configuration, we often meet the following error:
OpenSSL SSL_read: Connection was reset, error 10054
So this post is written to demonstrate this bug and give some solutions.

What's the OpenSSL

Firstly, in the course of Computer Network, we had learned the HTTPS(Hypertext Transfer Protocol Secure) which works as authentication between client and server for data transmission. And the service of HTTPS works on SSL/TLS protocol.
SSL/TLS is a protocol for establishing a secure connection between a client and a server. It is used for authentication, encryption, and integrity check.

Therefore, OpenSSL is a software library for implementing the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols.

The Relationship Between OpenSSL and IP Address

Many web servers and services use OpenSSL to secure communication over IP addresses. When you access a website via its IP address (e.g., an HTTPS website), OpenSSL may be used to encrypt and secure the data exchange.
SSL/TLS certificates, managed and validated by OpenSSL, are tied to specific domain names and IP addresses. When a client connects to a server using an IP address, the server's SSL/TLS certificate must match that IP address.

What's Wrong with the Github

At the same time, Github uses OpenSSL to secure communication over IP addresses. But what the most import thing is that GitHub, like many other online services, may periodically change its IP addresses for various reasons, including security, network optimization, and load balancing.
In this case, if you use the previous IP address to access GitHub, you may encounter the above error.

How to Solve the Problem

I. Check your Ip address of Github domain name in hosts file

140.82.112.4 github.com
199.232.69.194 github.global.ssl.fastly.net
140.82.114.9 codeload.Github.com

We can utilize this website https://www.ipaddress.com/ip-lookup to check whether the IP address corresponds with its domain name.

II. Refresh DNS using PowerShell tools on your computer

ipconfig /flushdns

III. Deactivate SSL authentication
If the above steps don' work, we have to deactivate SSL authentication which is not advised sometimes.

git config --global http.sslVerify "false"

标签:TLS,Github,IP,Problems,OpenSSL,SSL,Connection,address
From: https://www.cnblogs.com/MarkStiff/p/17798730.html

相关文章

  • com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Public Key
    问题:连接MySQL数据库时抛出异常信息:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException:PublicKeyRetrievalisnotallowed一开始aplication.yml配置如下所示:spring:application:name:service-provider-sentinel9999datasource:driver-cl......
  • 如何将本地代码上传到github远程仓库?
    在本地建立目录,将想上传的代码放到该文件夹中gitinit###初始化gitadd.###将本地项目工作区的所有文件添加到暂存区gitcommit-m"excu"###将暂存区的文件提交到本地仓库gitremoteaddoriginhttp://github.com/用户名/仓库名.git###将......
  • 021-Qt 配置GitHub Copilot
    Qt配置GitHubCopilot文章目录Qt配置GitHubCopilot项目介绍GitHubCopilot配置GitHubCopilotQt前置条件升级QtGitHubCopilot前置条件激活的了GitHubCopilot账号安装Neovim启用插件,重启Qt配置GitHubCopilo安装Nodejs下载[copilot.vim](https://github.com/github/copil......
  • 使用 Jenkins + Github + dokcer-compose 部署项目-环境准备篇
    JDK的安装及配置openjdk官网安装sudoadd-apt-repositoryppa:openjdk-r/ppaaptupdateaptupgradeaptinstallopenjdk-11-jdk配置以上方式安装的jdk路径位于/usr/lib/jvm/java-1.11.0-openjdk-amd64配置环境变量,根据自己的shell配置编辑对应的文件vi/etc/profile......
  • #深度学习复现Github项目代码流程详细过程
    背景要求:已安装好anaconda及pycharm,这两个的安装可从网上学习安装,教程很多。第一步,在Github上下载项目代码因为第一次运行代码,找一些比较多运行成功的例子来练习,这次我找的是Github上的pix2pixGAN项目的源码,具体路径如下:https://github.com/junyanz/pytorch-CycleGAN-and-pix2......
  • javaweb--JDBC的API-Connection
    1、获取执行SQL对象2、管理事务setAutoCommit(bool)true为自动提交false为手动提交commit()提交事务rollback()回滚事务packagecom.avb.jdbc;importjava.sql.Connection;importjava.sql.DriverManager;importjava.sql.SQLException;importjava.sql.Statement;public......
  • github安装文档
    服务器:centos7.91.下载指定版本到服务器wgethttps://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-16.0.0-ce.0.el7.x86_64.rpm2、安装基础依赖并启动#安装依赖,其中,postfix是邮件发送服务,其他为SSH协议需要的sudoyuminstall-ycurlpolicycoreutils-pythonopens......
  • Python:爬取某软件站数据报错requests.exceptions.SSLError: HTTPSConnectionPool(hos
    使用Python爬取某网站数据时候,之前一直是好好的。突然就报错:requests.exceptions.SSLError:HTTPSConnectionPool(host='api.***.cn',port=443):Maxretriesexceededwithurl:/accounty1/login?analysis............检查发现,可能是IP地址存在代理导致网络环境一场。可以检......
  • github官网打不开或访问慢的解决办法
    1)获取github官网ip方法就是打开cmd,然后pinggithub.com2)配置hosts文件,绕过DNS解析接下来,我们只需要打开电脑C:\Windows\System32\drivers\etc下的hosts文件编辑(需要管理员权限,右键,管理员权限打开),新增如下一行配置: 复制代码20.205.243.166github.com注意ip和域名之间......
  • GitHub 快速入门
    GitHub的介绍GitHub是一个在线平台,旨在促进在一个共同项目上工作的个人之间的代码托管、版本控制和协作。通过该平台,无论何时何地,都可以对项目进行操作(托管和审查代码,管理项目和与世界各地的其他开发者共同开发软件)。GitHub平台为开源项目和私人项目都提供了项目处理功能。关......