Tags: kintsdev/certy
Tags
Enhance certificate management in certy.go - Added functionality to create and initialize a new acme.json file if it does not exist, including setting appropriate certificate details. - Improved the AddCustomCert method to ensure the domain directory exists and to handle errors more effectively. - Streamlined the saving of domain acme data, certificate, and key files with better error reporting. These changes improve the robustness and usability of the certificate management process.
Refactor certificate management in certy.go - Introduced helper functions for file path management, JSON reading/writing, and directory creation. - Updated the `IssueCert` method to handle errors more gracefully and ensure proper account key management. - Improved challenge token retrieval and error handling in the HTTP handler. - Streamlined the certificate issuance process with better error reporting and state management. This refactor enhances code readability and maintainability while ensuring robust error handling throughout the certificate management workflow.
PreviousNext