Error: looks like “https://helm.min.io/“ is not a valid chart repository or cannot be reached

news/2024/7/12 2:49:41 标签: https, linux

本环境ca-certificates已安装

直接添加repo报错如下

# helm repo add minio https://helm.min.io/

Error: looks like "https://helm.min.io/" is not a valid chart repository or cannot be reached: Get "https://helm.min.io/index.yaml": x509: certificate is not valid for any names, but wanted to match helm.min.io

忽略tls依然报错

# helm repo add --insecure-skip-tls-verify minio https://helm.min.io/

Error: looks like "https://helm.min.io/" is not a valid chart repository or cannot be reached: failed to fetch https://helm.min.io/index.yaml : 400 Bad Request

使用wget下载报错

# wget https://helm.min.io/index.yaml

--2022-02-16 22:58:11--  https://helm.min.io/index.yaml

正在解析主机 helm.min.io (helm.min.io)... 185.199.109.153, 185.199.111.153, 185.199.108.153, ...

正在连接 helm.min.io (helm.min.io)|185.199.109.153|:443... 已连接。

错误: “helm.min.io” 的证书不可信。

错误: “helm.min.io” 的证书颁发者未知。

证书所有者与主机名 “helm.min.io” 不符

wget不检查cert依然报错

# wget --no-check-certificate https://helm.min.io/index.yaml

--2022-02-16 23:04:45--  https://helm.min.io/index.yaml

正在解析主机 helm.min.io (helm.min.io)... 185.199.108.153, 185.199.110.153, 185.199.109.153, ...

正在连接 helm.min.io (helm.min.io)|185.199.108.153|:443... 已连接。

警告: “helm.min.io” 的证书不可信。

警告: “helm.min.io” 的证书颁发者未知。

证书所有者与主机名 “helm.min.io” 不符

已发出 HTTP 请求,正在等待回应... 400 Bad Request

2022-02-16 23:04:45 错误 400:Bad Request。

使用curl报错

# curl -OL https://helm.min.io/index.yaml

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

curl: (60) SSL certificate problem: self signed certificate

More details here: https://curl.haxx.se/docs/sslcerts.html



curl failed to verify the legitimacy of the server and therefore could not

establish a secure connection to it. To learn more about this situation and

how to fix it, please visit the web page mentioned above.

使用curl指定-k下载无报错

# curl -OL https://helm.min.io/index.yaml -k

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   345  100   345    0     0   1185      0 --:--:-- --:--:-- --:--:--  1185

但是内容有问题

# cat index.yaml

<?xml version="1.0" encoding="iso-8859-1"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

 <head>

  <title>400 Bad Request</title>

 </head>

 <body>

  <h1>400 Bad Request</h1>

 </body>

</html>

临时解决方式

1. 在一个能执行helm repo add minio https://helm.min.io/的环境里执行如下命令,假设该主机ip为172.20.42.80

socat TCP4-LISTEN:443,fork TCP4:helm.min.io:443

在本机hosts里配上

172.20.42.80    helm.min.io

再执行helm repo add minio https://helm.min.io/成功

根本问题未解决,也希望有朋友能解答一下,感谢!!


http://www.niftyadmin.cn/n/1793178.html

相关文章

python反恐精英代码_Python 模块 codecs-字符串编码和解码

模块 codecs 提供接口转变数据编码&#xff0c;它常常和 Unicode 编码使用&#xff0c;但是也可以和其他编码一起使用。Unicode 编码Python 解释器 CPython 3.x 提供了两种字符串类型&#xff1a; text 和 byte string。bytes 是一个8位的字节序列&#xff0c;str是文本字符串&…

Android app调用另外一个app

近期公司项目加点东西&#xff0c;调用者是“手机银行” &#xff0c;被调用者是 “bankeys”,抽个时间随手记录下&#xff0c;其实非常简单 1.调用者&#xff1a; 这个我们可以使用正常的Activity的启动方式&#xff0c;代码如下&#xff1a; Intent intent new Intent(); in…

veth pair实战

veth pair作用 veth pair用于同一主机不同命名空间通信&#xff0c;其原理为向veth pair设备的一端输入数据&#xff0c;数据通过内核协议栈后从veth pair的另一端出来 veth pair使用 netns帮助 # ip netns help Usage: ip netns listip netns add NAMEip netns attach …

7 centos 设置jvmgc_Linux下MYSQL5.7详细安装步骤:

MYSQL5.7详细安装步骤&#xff1a;0、更换yum源1、打开 http://mirrors.aliyun.com&#xff0c;选择centos的系统&#xff0c;点击帮助2、执行命令&#xff1a;yum install wget -y3、改变某些文件的名称mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.re…

web设计经验九教你测试手机网页的5大方法

我们知道手机浏览器的使用量每天都在增长&#xff0c;根据StatCounter的统计数据&#xff0c;手机和平板的使用量约占30%的网络流量&#xff0c;这意味着消费者耗费在移动版网页上的时间比以往任何时候都高。可即使具备诸如移动端优先的响应式设计&#xff0c;由于目前设备尺寸…

构建多架构镜像

搭建本地镜像仓库 docker run -d --name registry -p 5000:5000 registry 配置域名解析 修改/etc/hosts 172.20.16.185 local-registry 设置可信仓库 本地为http&#xff0c;需要配置 # cat /etc/docker/daemon.json {"insecure-registries" : ["local…

appium 驱动 对应9.0 系统_appium的环境搭建

一、appium的介绍appium是一个开源的自动化工具&#xff0c;支持iOS和Android上的应用的自动化测试&#xff0c;支持移动端的原生的&#xff0c;H5&#xff0c;或者混合的测试工作1、移动原生应用”是指那些用iOS或者 Android SDK 写的应用&#xff08;Application简称app&…

【转】Maven3把命令行创建的web工程转成Eclipse和IntelliJ Idea的工程

参考链接&#xff1a;http://blog.sina.com.cn/s/blog_4f925fc30102ed5b.html 大前提&#xff1a;在执行mvn eclipse:eclipse命令之前一定要先存在一个含有pom.xml文件的工程&#xff0c;否则 mvn eclipse:eclipse命令会报错&#xff0c;大致的错误提示信息就是要求有一个pom.x…