Project

General

Profile

Actions

Enhancement #75710

closed
RK RK

Extend cephadm certmgr to support fullchain PEM certificates

Enhancement #75710: Extend cephadm certmgr to support fullchain PEM certificates

Added by Redouane Kachach Elhicou 8 months ago. Updated 3 months ago.

Status:
Backporting
Priority:
High
Category:
cephadm
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
umbrella, tentacle
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-2830-g1018afcb00
Released In:
Upkeep Timestamp:
2026-09-03T00:47:47+00:00

Description

Right now the certmgr only support a PEM with cert/key pair. It fails to process/set a fullchain PEM as the following:

-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----

Related issues 2 (1 open — 1 closed)

Copied to Orchestrator - Backport #80225: tentacle: Extend cephadm certmgr to support fullchain PEM certificatesNewRedouane Kachach Elhicou

Actions
Copied to Orchestrator - Backport #80226: umbrella: Extend cephadm certmgr to support fullchain PEM certificatesResolvedRedouane Kachach Elhicou

Actions

BS Updated by Bill Scales 8 months ago Actions #1

There are two potential improvements to def parse_combined_pem_file(pem_data: str) -> Tuple[Optional[str], Optional[str]]:

1. Add support for certificate chains, the code currently just extracts the 1st certificate it finds

2. It only finds private keys in PCKS#8 format which have the string "-----BEGIN PRIVATE KEY-----", it could be extended
to also find keys in PKCS#1 format which have the different string "----BEGIN RSA PRIVATE KEY-----" which are still being issued by some CAs. Setting the key and certificate with individual CLIs does support keys in PKCS#1 format (the underlying openssl functions accept both formats) because it is not trying to parse the key header string.

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

  • Status changed from New to In Progress
  • Pull request ID set to 68632

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

  • Category set to cephadm
  • Assignee set to Redouane Kachach Elhicou
  • Priority changed from Normal to High

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

  • Status changed from In Progress to Pending Backport
  • Backport set to umbrella, tentacle

UB Updated by Upkeep Bot 3 months ago Actions #5

  • Status changed from Pending Backport to Resolved
  • Merge Commit set to 1018afcb0055d82f73d12c04ebc576c6de20cb76
  • Fixed In set to v21.3.0-2830-g1018afcb00
  • Upkeep Timestamp set to 2026-09-02T12:19:42+00:00

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

  • Status changed from Resolved to Pending Backport

UB Updated by Upkeep Bot 3 months ago Actions #7

  • Copied to Backport #80225: tentacle: Extend cephadm certmgr to support fullchain PEM certificates added

UB Updated by Upkeep Bot 3 months ago Actions #8

  • Copied to Backport #80226: umbrella: Extend cephadm certmgr to support fullchain PEM certificates added

UB Updated by Upkeep Bot 3 months ago Actions #9

  • Status changed from Pending Backport to Backporting
  • Upkeep Timestamp changed from 2026-09-02T12:19:42+00:00 to 2026-09-03T00:47:47+00:00
Actions

Also available in: PDF Atom