"Peer's Certificate issuer is not recognized" while adding docker repo
Asked Answered
S

3

6

Running:

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

Produces:

Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/yum.repos.d/docker-ce.repo:
[Errno 14] curl#60 - "Peer's Certificate issuer is not recognized."
Seraphine answered 20/12, 2018 at 6:8 Comment(0)
H
0

I encountered this and solved it with

yum reinstall ca-certificates
Hindman answered 8/1, 2019 at 20:19 Comment(3)
still having the same error .Here am using centos 7.4Seraphine
I was able to get this "Peer Cert" issue to go away, but was then unable to install my desired version of docker (17.03) on rhel 7.4.Hindman
if still issue, then go to /etc/yum.repos.d/ and delete the docker-ce.repo or which ever repo is causing trouble, and then retry.. you can then add back the right valid repo..Blockish
P
4

Add sslverify=0 in Partiucaler repo. If you want to add for all repos then add in /etc/yum.conf

Pithecanthropus answered 17/4, 2020 at 12:54 Comment(0)
S
3

Some times, when you try to add a repo in large enterprises, you are behind a network proxy. One way to find it out is to open the repo's URL in the browser and see the SSL certs. In such cases, you will have to manually trust the certificates and the entire chain. In CentOS/RHEL, I had to copy all the required certs to (take a backup of the directory, just in case): /etc/pki/ca-trust/source/anchors/ And then run this command: update-ca-trust extract And now you can add the repo like so: yum-config-manager --add-repo <url-of-the-repo>

Saltigrade answered 30/12, 2019 at 15:51 Comment(0)
H
0

I encountered this and solved it with

yum reinstall ca-certificates
Hindman answered 8/1, 2019 at 20:19 Comment(3)
still having the same error .Here am using centos 7.4Seraphine
I was able to get this "Peer Cert" issue to go away, but was then unable to install my desired version of docker (17.03) on rhel 7.4.Hindman
if still issue, then go to /etc/yum.repos.d/ and delete the docker-ce.repo or which ever repo is causing trouble, and then retry.. you can then add back the right valid repo..Blockish

© 2022 - 2024 — McMap. All rights reserved.