Introduce a per-user certificate inventory and migrate legacy PFX storage
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 12/100
Research direction
Start from SignEngineHandler, where the single signature.pfx filename is used, and trace how certificate creation, lookup and deletion assume one certificate per account. The work is a schema and storage design plus an idempotent migration, so read the existing storage code before proposing a data contract. Done means the acceptance criteria hold: existing PFX files are discoverable without reissuance, repeated migration is a no-op, accounts cannot read each other's material, and legacy signing still works.
Written by the indexing model from the issue text.
Description
Goal
Introduce a persistent inventory capable of representing multiple signing certificates per Nextcloud account, while preserving all existing reusable PFX certificates.
Current state
SignEngineHandler uses a single signature.pfx filename. Certificate creation, lookup and deletion assume one reusable certificate per account.
Scope
- Introduce individual certificate records with stable identifiers and strict account ownership.
- Store certificate metadata separately from protected PKCS#12 material.
- Include issuer reference, subject, serial number, SHA-256 fingerprint, validity period, source, status and optional organizational context where applicable.
- Support multiple inventory records for the same user without requiring multiple CAs.
- Define a storage reference that does not expose private certificate material.
- Migrate existing
signature.pfxfiles idempotently, preserving their contents and password protection. - Retain compatibility with existing certificate lookup and signing paths during migration.
- Establish backend contracts for later certificate-specific operations and UI development.
- Avoid assuming that every certificate is LibreSign-issued or belongs to a Nextcloud group.
Acceptance criteria
- Existing certificates are discoverable through the inventory without reissuance.
- Two certificates belonging to one account have distinct records and protected storage references.
- An account cannot retrieve another account's certificate material.
- Repeated migration does not create duplicate records, overwrite PFX files or revoke certificates.
- Listing certificate metadata does not require reading every PFX.
- Missing files and inconsistent legacy records produce safe, recoverable behavior.
- Tests cover ownership, migration, duplicate detection, storage failures and legacy signing compatibility.
- The backend data contract and migration behavior are documented.
Out of scope
The complete CRUD UI, policy-based CA selection, certificate delegation, cloud certificates and interactive signing selection.
- Dominant language
- PHP
- Stars
- 844
- Forks
- 176
- Avg merge
- 13h 46m
- Merged PRs (30d)
- 299
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LibreSign/libresign
-
backend enhancement good first issue php
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
OpenSSL engine: leaf certificates get O=Internet Widgits Pty Ltd, ST=Some-State from system openssl.cnfPossibly taken @vitormattos claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
LibreSign/libresign#9366 · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
LibreSign/libresign#9007 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
LibreSign/libresign#8284 · 5 comments ·
Maintainers usually reply within 1 day
-
backend enhancement php
Difficulty 5/5 Over a week Newbie friendliness 12/100
Maintainers usually reply within 1 day
All issues in LibreSign/libresign
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 89/100
backdrop-contrib/commerce#65 ·
-
enhancement good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Evalogical-Inc/devReady#66 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mollie/PrestaShop#1627 ·
Maintainers usually reply within 5 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
FriendsOfFlarum/follow-tags#118 ·
-
WebP — PHP 8.5 deprecation "Using null as an array offset" in url_to_path() for relative image URLsOpen✨️ai-candidate effort: [XS] module: webp cache priority: low type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day