pikepdf: Unable open RC4 encrypted pdf
File "/Users/xxx/dev/get_pdf.py", line 151, in main
with Pdf.open(pdf, password=password) as pdf:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pikepdf/_methods.py", line 887, in open
pdf = Pdf._open(
^^^^^^^^^^
RuntimeError: unable to load openssl legacy provider
OS: MacOS Catalina OpenSSL: LibreSSL 2.8.3 Python: 3.11.0 PikePDF: 8.4.1
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 17 (8 by maintainers)
@cfcurtis 8.11.1 replaces openssl with gnutls which should…hopefully… fix this.
I won’t try to change how delocate decides what to include in the wheel – “not my circus, not my monkeys”. Especially deciding whether to include libssl which has security implications.
The solution seems to be to upgrade to openssl to 3.2.0_1 or newer. That’s easy enough to ask of users.
If it keeps coming up I’ll add a note to the error message that “This means your openssl is out of date”. Another option in the bag of tricks is to switch to gnutls - I’m avoiding that because it will make the macOS build more complex.