Translated message

A translation of this page exists in English.

yum が失敗して [Errno 14] Peer cert cannot be verified or peer cert invalid エラーが発生する

Solution Verified - Updated -

Issue

  • yum が失敗し、以下のエラーが発生します。
[Errno 14] Peer cert cannot be verified or peer cert invalid

または、

Error: failed to retrieve repodata/<long-string>-primary.xml.gz from rhel-x86_64-server-6
error was [Errno 14] Peer cert cannot be verified or peer cert invalid
  • Red Hat Subscription Manager に登録しているときに "yum check-update" を実行すると、以下のエラーが発生します。
[root@rserver ~]# yum check-update
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
https://cdn.redhat.com/content/dist/rhel/server/6///optional/os/repodata/repomd.xml:[Errno 14] Peer cert cannot be verified or peer cert invalid
Trying other mirror.
Error:Cannot retrieve repository metadata (repomd.xml) for repository: example_repo1.Please verify its path and try again
  • Red Hat Enterprise Linux 6 においては、yum .repo ファイル で mirrorlist= URL を http から https に変更するとエラーが表示されますが、Red Hat Enterprise Linux 5 では有効です。

Environment

  • Red Hat Enterprise Linux 6
  • Red Hat Network (RHN) Classic
  • Red Hat Subscription Manager (RHSM)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content