feat: fill certificate fields from uploaded certificate file

Parse uploaded PEM or DER certificates with cryptography and fill common
name, SANs, issuer, serial number, SHA-256 fingerprint and validity dates.
Name and type are only set when left empty; the type is derived from the
CA flag and extended key usage. Files containing a private key are
rejected. Works in the UI form and the REST API.

Adds cryptography as a dependency.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-21 14:16:58 +02:00
1 parent f296a576f2
commit 2a41118e8e
9 files changed
+228

No files matched your search

+7
View File
@@ -175,6 +175,13 @@ stores:
- Optional assignment to a software product, installation, device, virtual
machine, tenant group and tenant
When a certificate file (PEM or DER) is uploaded, the common name, subject
alternative names, issuer, serial number, SHA-256 fingerprint and validity
period are read from the file and overwrite the corresponding fields. Name and
type are only filled in if they were left empty (the type is derived from the
CA flag and extended key usage). For PEM bundles the first certificate is used.
Files that contain a private key are rejected.
> **Note:** Private keys are intentionally not stored. Keep them in a dedicated
> secret store and reference that location through the storage location fields.