Project

General

Profile

Actions

Bug #80414

closed
RK KC

python-common/cryptotools: replace pyOpenSSL usage with cryptography

Bug #80414: python-common/cryptotools: replace pyOpenSSL usage with cryptography

Added by Redouane Kachach Elhicou 3 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-454-g9b7d761e84
Released In:
Upkeep Timestamp:
2026-10-08T01:37:29+00:00

Description

Description

`python-common/cryptotools` still relies on `pyOpenSSL` APIs for certificate and key handling. These APIs are being deprecated and removed from `pyOpenSSL`, which can cause compatibility issues with newer versions.

Migrate `InternalCryptoCaller` from `pyOpenSSL` to the `cryptography` library, which Ceph already depends on.

The migration should cover:

  • private key generation
  • self-signed certificate creation
  • certificate loading and issuer extraction
  • certificate expiration checks
  • TLS certificate/private-key validation

The existing output formats and error behavior should remain unchanged.

Fix

Reimplement the affected cryptographic operations using the `cryptography` APIs and remove the remaining dependency on `pyOpenSSL` from this code path.

Related PR: #69510


Related issues 1 (0 open — 1 closed)

Copied to Orchestrator - Backport #80423: umbrella: python-common/cryptotools: replace pyOpenSSL usage with cryptographyResolvedKefu Chai

Actions

RK Updated by Redouane Kachach Elhicou 3 months ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 69510

RK Updated by Redouane Kachach Elhicou 3 months ago Actions #2

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to umbrella

UB Updated by Upkeep Bot 3 months ago Actions #3

  • Copied to Backport #80423: umbrella: python-common/cryptotools: replace pyOpenSSL usage with cryptography added

UB Updated by Upkeep Bot 3 months ago Actions #4

  • Status changed from Pending Backport to Backporting
  • Merge Commit set to 9b7d761e84472f1402c7de3742dee7d41a6ee64d
  • Fixed In set to v21.3.0-454-g9b7d761e84
  • Upkeep Timestamp set to 2026-09-10T00:43:30+00:00

UB Updated by Upkeep Bot about 2 months ago Actions #5

  • Status changed from Backporting to Resolved
  • Upkeep Timestamp changed from 2026-09-10T00:43:30+00:00 to 2026-10-08T01:37:29+00:00
Actions

Also available in: PDF Atom