-
Notifications
You must be signed in to change notification settings - Fork 28
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
pynitrokey is not working with openssl 3.0.10: Error detecting the version of libcrypto #431
Comments
Hi, did you do any other step beside changing the regex ? I've tried on my venv and I still get the error |
@4SH-gaupee You should be able to install the fixed
|
For this to be permanently fixed we have to wait for a release of: https://pypi.org/project/oscrypto/ (hopefully 1.3.1) also requested it here: wbond/oscrypto#78. The dependency that is using it is |
@robin-nitrokey |
As a workaround it is possible to run the app or nitropy (which is the cli-basis for the app) on older distros in distrobox.
And restart the container |
Would it be possible to apply a similar workaround to the released binaries as was applied to the pypy package (that can be installed with |
AFAIK there is no workaround for the pypi package. You have to manually apply the fix described above. To fix the problem both for the pypi package and the binary we would have to fork and release |
just for the sake of documentation, the issue should be solvable for a
|
Since pynitrokey 0.5.0, we no longer depend on |
Currently, pynitrokey does not work if the system uses an openssl version where a version part consists of more than one number, such as openssl 3.0.10 used by Debian 13 Trixie.
In this case pynitrokey aborts with the following error:
Critical error: An unhandled exception occurred Exception encountered: LibraryNotFoundError('Error detecting the version of libcrypto')
The error is in the used library oscrypto where the regex to extract the version string has a fuzziness.
An issue has already been raised here, but a new release that fixes this problem is still missing at the moment:
Workaround:
Modify the regex in the file oscrypto/_openssl/_libcrypto_cffi.py:41 from
'\\b(\\d\\.\\d\\.\\d[a-z]*)\\b'
to
'\\b(\\d+\\.\\d+\\.\\d+[a-z]*)\\b'
The text was updated successfully, but these errors were encountered: