Bug 2349580 - code fails to run due to openssl deprecation of load_pkcs12
Summary: code fails to run due to openssl deprecation of load_pkcs12
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-requests-pkcs12
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lukas Slebodnik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-03 17:41 UTC by Frank Ch. Eigler
Modified: 2025-09-03 22:43 UTC (History)
1 user (show)

Fixed In Version: python-requests-pkcs12-1.25-1.fc41
Clone Of:
Environment:
Last Closed: 2025-09-03 22:43:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Frank Ch. Eigler 2025-03-03 17:41:47 UTC
[12:36:12] % python3
Python 3.13.2 (main, Feb  4 2025, 00:00:00) [GCC 14.2.1 20250110 (Red Hat 14.2.1-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from requests_pkcs12 import Pkcs12Adapter
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    from requests_pkcs12 import Pkcs12Adapter
  File "/usr/lib/python3.13/site-packages/requests_pkcs12.py", line 19, in <module>
    from OpenSSL.crypto import load_pkcs12
ImportError: cannot import name 'load_pkcs12' from 'OpenSSL.crypto' (unknown location)


It looks like it may be necessary to grab "cryptography.hazmat.*" code instead.

Reproducible: Always

Comment 1 Frank Ch. Eigler 2025-03-03 18:09:04 UTC
Upstream requests-pkcs12 version 1.25 appears to work when pip-user-overlayed with normal f41 python packages.

Comment 2 Fedora Admin user for bugzilla script actions 2025-07-08 01:29:20 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Fedora Admin user for bugzilla script actions 2025-08-21 13:32:55 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 4 Fedora Update System 2025-08-25 14:37:46 UTC
FEDORA-2025-b84f17b0d1 (python-requests-pkcs12-1.25-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b84f17b0d1

Comment 5 Fedora Update System 2025-08-26 03:31:12 UTC
FEDORA-2025-b84f17b0d1 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b84f17b0d1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b84f17b0d1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2025-09-03 22:43:02 UTC
FEDORA-2025-b84f17b0d1 (python-requests-pkcs12-1.25-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.