Closed vcunat closed 1 year ago
👍 for this - I'm using OpenSSL 3.1.10 1 Aug 2023
and I get
File "/home/.../lib/python3.8/site-packages/oscrypto/_openssl/_libcrypto_cffi.py", line 46, in <module>
raise LibraryNotFoundError('Error detecting the version of libcrypto')
Looks like the regex on line 42 expects single-digit version components only.
version_match = re.search('\\b(\\d\\.\\d\\.\\d[a-z]*)\\b', version_string)
So if someone wants a ready full patch (that passes for me), here it is: https://github.com/NixOS/nixpkgs/blob/72b94272c96eef5fe866d10fd76544e54789759c/pkgs/development/python-modules/oscrypto/support-openssl-3.0.10.patch
So if someone wants a ready full patch (that passes for me), here it is:
Is it worth accounting for e.g. v10.10.10 as well? I.e. adding + quantifiers to all the version components?
Based on openssl version history, I don't think it's likely to make any difference in the next decade.
@wbond it is possible throw new version of oscrypto with this patch ? we need this help to fix a kerberos auth.
Thanks for pinging me - GitHub never seems to notify me of new issues even though I have that configured.
EDIT: Fixed using snippet below, may be useful for others, ty
Sorry for the dumb question @wbond:
How do we actually use this fix? getting this error connecting to snowflake, latest version (1.3.0) installed on OS
using snowflake-connector-python and snowflake-sqlalchemy, python:3.10-slim
Saw that datadog was fixing this way so trying this:
# add after installing requirements
# added below before install as pip freeze in container showed 1.3.0
RUN python -m pip uninstall oscrypto -y
RUN python -m pip install oscrypto @ git+https://github.com/wbond/oscrypto.git@d5f3437ed24257895ae1edd9e503cfb352e635a8
If a bunch of people and companies are dependent on oscrypto, I’d encourage your companies to sponsor development through GitHub sponsors.
Currently the asn1crypto project is sponsored through Tidelift, but oscrypto isn’t “big enough”, hence my request for GitHub sponsors.
@wbond thanks for your work on this package! We have a dependency on oscrypto
via snowflake-connector-python
and have been experiencing the issue described in this thread. I'm sure plenty of other Snowflake customers have as well... Maybe Snowflake could be a good sponsor?
This being said, curious what are the current bottlenecks for releasing the latest master branch on PyPI? Depending on what the pain points are, maybe we could help by adding an on-demand Github Actions release workflow
We have a dependency on oscrypto via snowflake-connector-python and have been experiencing the issue described in this thread. I'm sure plenty of other Snowflake customers have as well... Maybe Snowflake could be a good sponsor?
Snowflake connector is not using oscrypto
anymore: https://github.com/snowflakedb/snowflake-connector-python/blob/f323d22bf259a176f6c57510efd4927c52f1abb9/DESCRIPTION.md?plain=1#L37
Any chance of a release of this fix? We were looking into switching to cryptography
, but that project doesn't support generic x509 validation
Busted parsing when more digits appeared, most likely.