Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyOpenSSL库更新 #1443

Closed
Cat7373 opened this issue Nov 22, 2015 · 7 comments
Closed

pyOpenSSL库更新 #1443

Cat7373 opened this issue Nov 22, 2015 · 7 comments

Comments

@Cat7373
Copy link
Contributor

Cat7373 commented Nov 22, 2015

新的库支持TLS1.2。
win7下运行、通过GAE访问Github、访问后台页面未发现异常。
稍后去win10做测试,Linux我可以用虚拟机跑个Ubuntu进行测试,但是其余平台无法进行测试。

https://github.com/Cat7373/XX-Net/tree/pyOpenSSL-Update

具体流程:

  1. 从官方下载Python2.7.10。
  2. 用pip下载pyOptnSSL,相关支持由pip全自动构建。
  3. 用新的pyOptnSSL替换xx-net中的库。
  4. 运行后看哪个地方抛异常,然后对有问题的库进行替换。

@xxnet
#154

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 22, 2015

win10下运行、通过GAE访问Github、访问后台页面未发现异常。

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 22, 2015

瞅了瞅没有Ubuntu的虚拟机- -
只有个现成的CentOS- -
然后就遇到了这个问题 #779
但是这个方式对CentOS无效- -
执行 yum install pyOpenSSL 后问题解决

@Cat7373
Copy link
Contributor Author

Cat7373 commented Nov 22, 2015

CentOS下运行未发现异常,没有测试后台页面以及测试代理。
Ctrl+C无法正常退出。

@bigwboy
Copy link

bigwboy commented Apr 7, 2016

[root@cpdiaodu launcher]# python start.py
Apr 07 20:29:05.077 - [INFO] start XX-Net get_version_fail
Apr 07 20:29:05.077 - [DEBUG] start confirm_xxnet_exit
Apr 07 20:29:05.079 - [DEBUG] good, xxnet:8087 cleared!
Apr 07 20:29:05.080 - [DEBUG] good, xxnet:8085 clear!
Apr 07 20:29:05.080 - [DEBUG] finished confirm_xxnet_exit
Apr 07 20:29:05.088 - [ERROR] start module gae_proxy fail:libssl.so.1.0.0: cannot open shared object file: No such file or directory
Apr 07 20:29:05.088 - [ERROR] Except stack:Traceback (most recent call last):
File "/home/guangguang/XX-Net-2.9.6/launcher/module_init.py", line 37, in start
proc_handler[module]["imp"] = import(module, globals(), locals(), ['local', 'start'], -1)
File "/home/guangguang/XX-Net-2.9.6/gae_proxy/start.py", line 14, in
import local.proxy as client
File "/home/guangguang/XX-Net-2.9.6/gae_proxy/local/proxy.py", line 95, in
from cert_util import CertUtil
File "/home/guangguang/XX-Net-2.9.6/gae_proxy/local/cert_util.py", line 38, in
import OpenSSL
File "/home/guangguang/XX-Net-2.9.6/python27/1.0/lib/linux/OpenSSL/init.py", line 36, in
from OpenSSL import crypto
ImportError: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Traceback (most recent call last):
File "start.py", line 135, in
main()
File "start.py", line 110, in main
module_init.start_all_auto()
File "/home/guangguang/XX-Net-2.9.6/launcher/module_init.py", line 98, in start_all_auto
start(module)
File "/home/guangguang/XX-Net-2.9.6/launcher/module_init.py", line 37, in start
proc_handler[module]["imp"] = import(module, globals(), locals(), ['local', 'start'], -1)
File "/home/guangguang/XX-Net-2.9.6/gae_proxy/start.py", line 14, in
import local.proxy as client
File "/home/guangguang/XX-Net-2.9.6/gae_proxy/local/proxy.py", line 95, in
from cert_util import CertUtil
File "/home/guangguang/XX-Net-2.9.6/gae_proxy/local/cert_util.py", line 38, in
import OpenSSL
File "/home/guangguang/XX-Net-2.9.6/python27/1.0/lib/linux/OpenSSL/init.py", line 36, in
from OpenSSL import crypto
ImportError: libssl.so.1.0.0: cannot open shared object file: No such file or directory
Stopping all modules before exit!
Apr 07 20:29:05.089 - [ERROR] stop module gae_proxy fail:'imp'
Apr 07 20:29:05.089 - [ERROR] Except stack:Traceback (most recent call last):
File "/home/guangguang/XX-Net-2.9.6/launcher/module_init.py", line 71, in stop
_start = proc_handler[module]["imp"].start
KeyError: 'imp'

@bigwboy
Copy link

bigwboy commented Apr 7, 2016

我也是这个错误,不过 我[root@cpdiaodu launcher]# yum install pyOpenSSL
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile

  • base: mirrors.skyshe.cn
  • extras: mirrors.skyshe.cn
  • updates: mirrors.skyshe.cn
    Package pyOpenSSL-0.13.1-2.el6.x86_64 already installed and latest version
    Nothing to do

@bigwboy
Copy link

bigwboy commented Apr 7, 2016

安装 openssl也无效

@xxnet
Copy link
Contributor

xxnet commented Apr 9, 2016

​试试删除 python27/1.0/lib/linux/OpenSSL 目录

@Cat7373 Cat7373 closed this as completed Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants