无法确定哪个包更新导致 python 请求包的 CA 证书位置更改
unable to figure out which package update lead to change of CA certs location for python requests package
我试图找出哪个包更新可能导致 python 请求包的默认 CA 位置发生变化。下面列出的是我在 2 个不同节点上的发现 运行 RHEL 7.
可以检查请求包正在使用的证书存储,如下所示:
[root@compute-01 test]# python -mrequests.certs
/etc/pki/tls/certs/ca-bundle.crt
[root@compute-01 test]# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
[root@compute-01 test]# python
Python 2.7.5 (default, Oct 11 2015, 17:47:16)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> requests.__version__
'2.7.0'
另外一个节点上同样的事情如下:-
[root@compute-25 test]# python -m requests.certs
/usr/lib/python2.7/site-packages/requests/cacert.pem
[root@compute-25 test]# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
[root@compute-25 test]# python
Python 2.7.5 (default, Oct 11 2015, 17:47:16)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> requests.__version__
'2.7.0'
我无法弄清楚是哪个软件包升级导致了这个问题。我不知道接下来应该检查什么。请指教。
requests 的一个版本(前者)由您的系统包管理器安装,后者由 pip 安装。
我试图找出哪个包更新可能导致 python 请求包的默认 CA 位置发生变化。下面列出的是我在 2 个不同节点上的发现 运行 RHEL 7.
可以检查请求包正在使用的证书存储,如下所示:
[root@compute-01 test]# python -mrequests.certs
/etc/pki/tls/certs/ca-bundle.crt
[root@compute-01 test]# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
[root@compute-01 test]# python
Python 2.7.5 (default, Oct 11 2015, 17:47:16)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> requests.__version__
'2.7.0'
另外一个节点上同样的事情如下:-
[root@compute-25 test]# python -m requests.certs
/usr/lib/python2.7/site-packages/requests/cacert.pem
[root@compute-25 test]# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
[root@compute-25 test]# python
Python 2.7.5 (default, Oct 11 2015, 17:47:16)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> requests.__version__
'2.7.0'
我无法弄清楚是哪个软件包升级导致了这个问题。我不知道接下来应该检查什么。请指教。
requests 的一个版本(前者)由您的系统包管理器安装,后者由 pip 安装。