google-labs-jules[bot] 14a808110e Correcting download links for certificates and keys
This commit fixes potential 404 errors when downloading certificate and private key files.

Changes made:

1.  **CertificateController.php**: The logic of the `download()` method has been reviewed. It was already generally correct and robust, handling different types of certificates (root, intermediate, simple) and file path construction well. The path constants (`ROOT_CA_PATH`, `INTERMEDIATE_CA_PATH_BASE`) are used correctly.

2.  **app/src/Views/certificates/index.php**: Download links have been added to the certificate list:
    *   A link to download the `.pem` certificate file is now available for each certificate.
    *   For root certificates (`ca.cert.pem`), an additional link to download the private key (`ca.key.pem`) is displayed if you have the 'admin' role.
    *   Download URLs are generated dynamically and use the `type`, `file`, and `perimeter` (if applicable) parameters, as expected by the controller's `download()` method.
    *   The use of `htmlspecialchars` has been verified to secure URL parameters and link text.

Indirect code testing has been performed. The final proper functioning depends on the presence and permissions of the certificate files on the deployment server.
2025-06-16 10:41:04 +00:00
2025-06-14 19:03:54 +02:00
2025-06-14 19:03:54 +02:00
2025-06-14 19:03:54 +02:00
2025-06-14 18:53:51 +02:00
2025-06-14 18:53:51 +02:00

Gestion Certificat

Bienvenue sur le projet Gestion Certificat. Ce projet fournit une solution pour la gestion des certificats numériques.

Documentation par Langue

Pour des instructions et informations spécifiques dans votre langue, veuillez consulter les liens ci-dessous :

Description
No description provided
Readme AGPL-3.0 464 KiB
Languages
PHP 85.3%
CSS 7.3%
Shell 6.6%
Dockerfile 0.8%