The aim of this PR is to add more debug messages and information to the certificate creation process. We decided to silence the output of the commands because they produced so much noise.
As compensation for this, more information has been added to the log in order to understand and follow the script execution, and also if an error is generated it will be displayed in the output.
Description
The aim of this PR is to add more debug messages and information to the certificate creation process. We decided to silence the output of the commands because they produced so much noise. As compensation for this, more information has been added to the log in order to understand and follow the script execution, and also if an error is generated it will be displayed in the output.
Logs example
Success case
Without verbose option:
With verbose option:
Error case
In case of an error, its information is displayed depending on the verbose option:
Error case - With verbose
Error case - Without verbose
Automatic testing
The following testing have been performed in Jenkins to ensure the development: :green_circle: CentOS 8: https://ci.wazuh.info/job/Test_unattended/5179/ :green_circle: CentOS 7: https://ci.wazuh.info/job/Test_unattended/5178/ :green_circle: Ubuntu 18: https://ci.wazuh.info/job/Test_unattended/5186/ :green_circle: Ubuntu 16: https://ci.wazuh.info/job/Test_unattended/5181/ :green_circle: Ubuntu 20: https://ci.wazuh.info/job/Test_unattended/5182/ :green_circle: AL2: https://ci.wazuh.info/job/Test_unattended/5183/ :green_circle: RHEL7: https://ci.wazuh.info/job/Test_unattended/5187/ :green_circle: RHEL8: https://ci.wazuh.info/job/Test_unattended/5185/