Enhancement #75710
closedExtend cephadm certmgr to support fullchain PEM certificates
0%
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-----
BS Updated by Bill Scales 8 months ago
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
- Status changed from New to In Progress
- Pull request ID set to 68632
RK Updated by Redouane Kachach Elhicou 5 months ago
- 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
- Status changed from In Progress to Pending Backport
- Backport set to umbrella, tentacle
UB Updated by Upkeep Bot 3 months ago
- 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
- Status changed from Resolved to Pending Backport
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80225: tentacle: Extend cephadm certmgr to support fullchain PEM certificates added
UB Updated by Upkeep Bot 3 months ago
- Copied to Backport #80226: umbrella: Extend cephadm certmgr to support fullchain PEM certificates added
UB Updated by Upkeep Bot 3 months ago
- 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