我无法使用https连接到某些网站。wget和curl抱怨无法验证证书。我想这是因为我的NAS上缺少根证书。例如:
ReadyNAS:~# wget https://pypi.python.org/
--2016-04-12 20:08:51-- https://pypi.python.org/
Resolving pypi.python.org... 23.235.43.223
Connecting to pypi.python.org|23.235.43.223|:443... connected.
ERROR: cannot verify pypi.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.
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'.
Unable to establish SSL connection.
我已经手动将curl和wget编译并更新到相当新的版本(GNU Wget 1.11.4; libcurl / 7.45.0 GnuTLS / 3.3.18 zlib / 1.2.3.3),但是没有用。
背景资料: NAS上的linux发行版相当老(Debian Sid,Linux 2.6.37.6)。用于更新SSL存储的常规命令似乎无效。
我如何找到这些连接问题的原因并解决?