wget 또는 curl을 사용하여 https URL을 열 수 없습니다.
$ wget https://www.python.org
--2015-04-27 17:17:33-- https://www.python.org/
Resolving www.python.org (www.python.org)... 103.245.222.223
Connecting to www.python.org (www.python.org)|103.245.222.223|:443... connected.
ERROR: cannot verify www.python.org's certificate, issued by "/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA":
Unable to locally verify the issuer's authority.
To connect to www.python.org insecurely, use '--no-check-certificate'.
$ curl https://www.python.org
curl: (60) SSL certificate problem: unable to get local issuer certificate
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.
이것은 CentOS 5.5에서 wget 1.12 및 curl 7.30.0을 사용하고 있습니다. 로컬 인증서 저장소에 문제가있는 것 같지만 여기서 진행하는 방법을 모르겠습니다. 어떤 아이디어?
업데이트 : openssl 패키지를 0.9.8e-12.el5_4.6에서 0.9.8e-33.el5_11로 업그레이드 한 후 다른 오류가 발생합니다.
$ wget https://pypi.python.org
--2015-04-28 10:27:35-- https://pypi.python.org/
Resolving pypi.python.org (pypi.python.org)... 103.245.222.223
Connecting to pypi.python.org (pypi.python.org)|103.245.222.223|:443... connected.
ERROR: certificate common name "www.python.org" doesn't match requested host name "pypi.python.org".
To connect to pypi.python.org insecurely, use '--no-check-certificate'.
ca-certificates
패키지 에 있다고 생각합니다 . 이 패키지가 설치되어 있습니까? 다시 설치해보십시오. 이것이 문제가 아닌 경우strace -o /tmp/wget.strace wget https://www.python.org
결과 추적을 실행 하고 게시하면 문제의 위치를 알려줍니다.