Your message dated Thu, 14 Mar 2024 08:12:13 +0100
with message-id <[email protected]>
and subject line Closing bug since it exists only in oldstable
has caused the Debian Bug report #1018159,
regarding python3-cryptography: User prompt on calling load_pem_public_key with 
private key
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1018159: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1018159
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python3-cryptography
Version: 3.4.8-2
Severity: normal

Dear Maintainer,

the python3-cyrptography 3.4.8 as a known issue when used with OpenSSL 3, which 
is resolved in more recent version of the upstream software. See [1]

The following code:

```python
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import serialization as ser

priv_key = rsa.generate_private_key(65537, 1024)
priv_key_serialized = priv_key.private_bytes(
    ser.Encoding.PEM,
    ser.PrivateFormat.PKCS8,
    ser.BestAvailableEncryption(b"helloworld"),
)

pub_key = ser.load_pem_public_key(priv_key_serialized)
```

Results in a password enter prompt, which originates from OpenSSL3:

```
Enter PEM pass phrase:
```

Upstream already implemented a solution for this [2]. Which got merged into 
37.0.1.

Either python3-cyptography needs to be updated or the patch needs to be 
backported.

regards,
Claudius

[1] https://github.com/pyca/cryptography/issues/7129
[2] https://github.com/pyca/cryptography/pull/7132


-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.18.0-4-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-cryptography depends on:
ii  libc6                                                2.34-4
ii  libssl3                                              3.0.5-2
ii  python3                                              3.10.6-1
ii  python3-cffi-backend [python3-cffi-backend-api-min]  1.15.1-1
pn  python3-cffi-backend-api-max                         <none>

python3-cryptography recommends no packages.

Versions of packages python3-cryptography suggests:
pn  python-cryptography-doc       <none>
pn  python3-cryptography-vectors  <none>

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 38.0.4-1

As the bug reporter mentiones this bug is closed in later upstream
versions.  The bug only persists in oldstable.  Thus closing this
bug with Version 38.0.4-1.

Kind regards
    Andreas.

-- 
http://fam-tille.de

--- End Message ---

Reply via email to