Bug 2349580

Summary: code fails to run due to openssl deprecation of load_pkcs12
Product: [Fedora] Fedora Reporter: Frank Ch. Eigler <fche>
Component: python-requests-pkcs12Assignee: Lukas Slebodnik <lslebodn>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: mail
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-requests-pkcs12-1.25-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-03 22:43:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.