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

openssl版本问题 #501

Closed
yaowenqiang opened this issue Dec 22, 2018 · 5 comments
Closed

openssl版本问题 #501

yaowenqiang opened this issue Dec 22, 2018 · 5 comments

Comments

@yaowenqiang
Copy link

pyelliptic1.5.7 不支持openssl 1.1版本,会报以下错误:
AttributeError: /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1: undefined symbol: ECDH_OpenSSL
可以安装下面这个打补丁的版本
pip install https://github.com/mfranciszkiewicz/pyelliptic/archive/1.5.10.tar.gz#egg=pyelliptic

@garryyan
Copy link
Collaborator

3Q 已经加到了 Xlog 加密使用指引 常见问题中

@garryyan garryyan closed this as completed Jan 1, 2019
@douglarek
Copy link

douglarek commented Aug 11, 2021

MacOS 11.5.1,
Python 3.9.2
OpenSSL: homebrew openssl@1.1: stable 1.1.1k

pip install https://github.com/mfranciszkiewicz/pyelliptic/archive/1.5.10.tar.gz#egg=pyelliptic

执行:

python gen_key.py

依然有问题:

Traceback (most recent call last):
  File "/Users/x/work/go/mars/mars/log/crypt/gen_key.py", line 3, in <module>
    import pyelliptic
  File "/Users/x/.pyenv/versions/3.9.2/lib/python3.9/site-packages/pyelliptic/__init__.py", line 43, in <module>
    from .openssl import OpenSSL
  File "/Users/x/.pyenv/versions/3.9.2/lib/python3.9/site-packages/pyelliptic/openssl.py", line 637, in <module>
    raise Exception("Couldn't load OpenSSL lib ...")
Exception: Couldn't load OpenSSL lib ...

@maoqis
Copy link

maoqis commented Sep 9, 2021

Traceback (most recent call last):
File "/Users/maoqis/Documents/work/logs/bin/decode_mars_crypt_log_file.py", line 9, in
import pyelliptic
File "build/bdist.macosx-10.9-x86_64/egg/pyelliptic/init.py", line 43, in
File "build/bdist.macosx-10.9-x86_64/egg/pyelliptic/openssl.py", line 637, in
Exception: Couldn't load OpenSSL lib ...

MACOS 11.5.1

@wwzAwen
Copy link

wwzAwen commented Sep 16, 2021

修改openssl.py 中获取OpenSSL动态库路径的方法中 ,返回静态路径/usr/lib/libcrypto.dylib ,需要使用 pyelliptic==1.5.10,否则会提示不安全使用

@jiaoyaning
Copy link

如果安装后还是报错,可以先卸载pyelliptic1.5.7,然后再重新安装 pip install https://github.com/mfranciszkiewicz/pyelliptic/archive/1.5.10.tar.gz#egg=pyelliptic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants