web-dev-qa-db-ja.com

SSLチェックRPMを無効にする

Rpmコマンドを実行しようとすると、次のエラーが発生します。カールエラーが発生する理由はわかりませんが、すべて失敗したさまざまなオプションを試しました。

CentOS7の実行とプロキシの背後

[root@CentOS7]# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
curl: (60) Peer's certificate issuer has been marked as not trusted by the user.
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.
error: skipping https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm - transfer failed

それで、私はうまくいったと思うウェブサイトに従ってチェックを実行しました。

[root@CentOS7]# curl -k https://google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="https://www.google.com/">here</A>.
</BODY></HTML>

私はプロキシの背後にいて、exportコマンドを実行しました。

export https_proxy=https://USERNAME:[email protected]:8080/

私の質問は:

  1. Curl -kをrpmに相当するものは何ですか?

  2. Curlにssl証明書をチェックしないように指示できる場所にcurl.configはありますか?私はこれを読んだのは悪い考えですが、プロキシの背後でもエラーを発生させなかった別のサーバーで2つのリポジトリをテストしました。

  3. カールとrpmの関係は正確にはわかりませんが、カールエラーが発生しているため、カールがエラーを発生させていると思いますか?

私はRTMを実行し、何を実行する必要があるのか​​理解できません。キーなどをインポートする必要がある場所を読みましたが、何をしているのかわからないそこにも。

15
Anthony Fornito

あなたがする必要があるのは:

wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

それでもSSL警告が表示される場合は、以下を試してください。

wget --no-check-certificate https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

次にできます

rpm -Uvh webtatic-release.rpm

ここに表示されるはずです:

ll /etc/yum.repos.d
15
Joe Morgan