我们编写一个Go程序来尝试与这个HTTPS server建立连接并通信. //gohttps/4-https/client1.gopackage main import (    "fmt"    "io/ioutil"    "net/http") func main() {    resp, err := http.Get("https://localhost:8081")    if err != nil {      …
今天,部署生产的程序的时候,出现一个问题:编译正常,但是,docker 把编译好的image 推送到生产环境上去的时候,出现:x509: certificate signed by unknown authority 经过上网查找资料得知:是由于证书的错误导致的,但是,并不知道如何解决.后来,解决方案如下: vi /usr/lib/systemd/system/docker.service 添加一列: ExecStart=/usr/bin/dockerd --insecure-registry…
docker从私有镜像库pull/push镜像问题:Error response from daemon: Get https://harbor.op.xxxx.com/v2/: x509: certificate signed by unknown authority 环境centos7+docker 1.17 解决方法:1. 添加https证书,方法自己搜下2. 加--insecure-registry参数 配置文件位置/usr/lib/systemd/system/docker.servi…
0x00 Problem 在使用二进制搭建 k8s 集群的过程中,使用 kubectl get 等操作时始终显示 x509: certificate signed by unknown authority : [root@k8sm90 ~]# kubectl get cs,nodes Unable to connect to the server: x509: certificate signed by unknown authority 以至于后面的一些操作也无法继续. 0x01 Soluti…
如果gitlab runner使用docker,docker是普通配置,配置好后,runner就可以正常执行任务了. 另外一个环节Docker配置了tls加密连接,添加runner后,runner的配置tls_verify 字段值为true: tls_verify = true 执行任务时则会报错: ERROR: Preparation failed: error during connect: Get https://127.0.0.1:2376/v1.25/info: x509: certi…
一般go get私有仓库时会出现如下错误: go: xxx@v0.0.0-20190918102752-bb51b27911ca: unrecognized import path "xxx" (https fetch: Get https://xxx?go-get=1: x509: certificate signed by unknown authority) 原因是go get的执行过程需要https证书,检查server端证书是未知CA签署的并报错. 解决方法: go get…
websocket.DefaultDialer.Dial(url, headers) 改为 websocket.Dialer{TLSClientConfig: &tls.Config{RootCAs: nil, InsecureSkipVerify: true}}.Dial(url, headers) 忽略证书的校验即可解决…
默认时,client 与 Registry 的交互是通过 https 通信的.在 install Registry 时,若未配置任何tls 相关的 key 和 crt 文件,https 访问必然失败.使用 "--insecure-registry <harbor IP>"可以指定 client 与 Registry 以 http 的方式进行通信. [root@c7-QHost ~]# grep 'insecure-registry' /usr/lib/systemd/sys…
  I was playing around with Docker locally and somehow ended up with this error when I tried to list my docker machines: $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS default - virtualbox Running tcp: Unknown Unable to query do…
环境:centos 7 程序:docker 下载镜像报错: # docker pull centos Pulling repository centos FATA[0004] Get https://index.docker.io/v1/repositories/library/centos/images: x509: certificate has expired or is not yet valid    这种错误,一般都是本地系统时间错误导致报错证书过期,所以先查看本地系统时间 # da…