libresign/lib/Handler
Vitor Mattos 3d4bdf0294
fix: filter CA ID from OU only when certificate not generated
The CA ID (libresign-ca-id:...) in OrganizationalUnit should only be
filtered out when the certificate is not generated (isSetupOk() returns
false). When the certificate is successfully generated, the CA ID must
be preserved in the API response.

This ensures:
- Generated certificates: CA ID is visible (expected behavior)
- Failed/not generated: CA ID is filtered to prevent stale data in form

Integration tests validated:
- features/account/signature.feature:2 (OpenSSL)
- features/account/signature.feature:23 (CFSSL)
- features/admin/certificate_openssl.feature:2
- features/admin/certificate_openssl.feature:35

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
2025-12-15 17:39:24 -03:00
..
CertificateEngine fix: filter CA ID from OU only when certificate not generated 2025-12-15 17:39:24 -03:00
PdfTk fix: isolate PHP-pdftk dependency 2025-09-03 09:55:55 -03:00
SignEngine chore: update dependencies and handler 2025-12-15 15:53:02 -03:00
Templates chore: move footer.twig SPDX headers to REUSE.toml 2025-12-04 17:23:17 -03:00
CfsslServerHandler.php chore: customize cfssl crl url 2025-11-24 12:28:18 -03:00
DocMdpHandler.php feat: add DocMDP validation handler for PDF signature permissions 2025-12-08 16:53:50 -03:00
FooterHandler.php refactor: inject TemplateVariables into FooterHandler via DI 2025-12-04 21:13:37 -03:00
TemplateVariables.php refactor: add IL10N injection and metadata to TemplateVariables 2025-12-04 21:12:17 -03:00