首页 > 解决方案 > 无法在 rhel 上克隆项目

问题描述

我有以下配置操作系统:RHEL 7 Git 版本:git 版本 2.18.2 Java:openjdk 版本“1.8.0_242”

当我尝试克隆项目时,出现以下错误:

[root@ip-XX-X-XX-XXX warfiles]# git clone https://gitlab.myproject.git
Cloning into 'ps-cs-wallet-servcies'...
fatal: unable to access 'https://gitlab.myproject.git/': error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small

有人能帮我一下吗。

谢谢

标签: gitsslgitlab-cirhel7

解决方案


通过将加密策略设置为 LEGACY 解决了这个问题。

我已经执行了以下命令:

$ update-crypto-policies --show

它最初设置为“DEFAULT”。

因此,我通过执行以下命令将其更改为 LEGACY。

$ update-crypto-policies --set LEGACY

谢谢您的帮助。


推荐阅读