2
curl -L https://get.rvm.io | bash -s stable --ruby

これを試してみると、これが表示されます。これは私のopensslが壊れているということです。

% 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) 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.

-k を使用しますが、常にエラーになります。この方法に従います https://serverfault.com/questions/437546/centos-openldap-cert-trust-issues が、再びエラーになります。修正方法は?

4

1 に答える 1

0

私のここCentOS7 pyspider、pyspider show errorを実行

Exception HTTP 599 Peer's certificate issuer has been marked as not trusted by the user

次の手順を使用して修正します。

pip3 uninstall pycurl
export PYCURL_SSL_LIBRARY=nss
export LDFLAGS=-L/usr/local/opt/openssl/lib;export CPPFLAGS=-I/usr/local/opt/openssl/include;pip install pycurl --compile --no-cache-dir

詳細な説明

于 2019-08-06T10:38:21.353 に答える