Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed warning message when generating certificates #2667

Conversation

davidcr01
Copy link
Contributor

Related issue
#2661

Description

The aim of this PR is to fix the warning message when the Wazuh central components are generated. The specific message is Ignoring -days without -x509; not generating a certificate.

The fix consists in removing the -days n option in the openssl req command. This command generates a CSR (certificate signing request), which does not need to set a validity period.

root@ubuntu22:/home/vagrant/certs# bash wazuh-certs-tool.sh -A -v
07/12/2023 11:18:46 DEBUG: Creating the root certificate.
.....+...+..+................+...........+.+..+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...+......+..+.......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
........+.......+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.......+...+.....+...+....+...+...+..+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...............+...+..+...+......+.........+..........+..+.+........+.+.....+....+..+.......+..+.+.......................+......+........................+.......+..+...+.........+...+.............+...+..+....+.....+.........+..........+.........+......+......+...........+.......+........+.......+..+.........+.......+...+..+...+....+...+..+...+...+............+.........+.............+............+........+...+.......+...+...+......+.....+...+.+..+...+.......+..............+.+..............+...+.+.................+...+.+........+................+......+......+...+.....+....+...+.....+..........+........+.......+..+..........+.....+.............+..+.+............+..+.+.....+......+...+..........+.....+...+...+.+...+...+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Certificate request self-signature ok
subject=C = US, L = California, O = Wazuh, OU = Wazuh, CN = admin
07/12/2023 11:18:46 INFO: Admin certificates created.
07/12/2023 11:18:46 DEBUG: Creating the Wazuh indexer certificates.
....+.....+.+...+...........+.+.....+...+.+...+.................+...+.+.........+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.....+......+.+........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
..+..+......+.+...+.....+......+.+......+..+.+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+.....+......+.+..+.......+......+...+......+.....+...+...+...+....+...............+..+....+..+....+...+..+...+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..........+.......+...+......+.....+.+..............+.+............+......+..............+.+..+....+...........+...............+.......+...+..+.......+......+...+......+.....+......+......................+.................+...+......+.......+...+...........+.+..+......+......+.........+.+......+.........+...........+..........+..+...+............+.+......+......+.........+......+...+.....+......+...+.+......+.....+.+........+..........+.........+..+......+....+...+..+...+..........+...+..+...+.........+.+.........+......+..+.+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Certificate request self-signature ok
subject=C = US, L = California, O = Wazuh, OU = Wazuh, CN = node-1
07/12/2023 11:18:47 INFO: Wazuh indexer certificates created.
07/12/2023 11:18:47 DEBUG: Creating the Wazuh server certificates.
......+.......+.....+...+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+......+.+...+.....+...+....+......+..+.......+......+..+.+.....+.+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.........+.......+....................+....+.........+......+..+...+.+.........+..+.......+..+...+......+..........+...........+.............+..+......+.........+...+..........+..+...+.......+...+.....+.+..+....+......+..................+..+....+...............+.....+.............+..+......+.............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
........+..........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....................+...........+.+.....+......+...+.......+..+.......+...+........+.............+..+....+...+.....+...+..........+...+............+..+......+..........+..............+.......+.....................+..+.+...........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Certificate request self-signature ok
subject=C = US, L = California, O = Wazuh, OU = Wazuh, CN = wazuh-1
07/12/2023 11:18:47 INFO: Wazuh server certificates created.
07/12/2023 11:18:47 DEBUG: Creating the Wazuh dashboard certificates.
...+..+.........+.......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+..+.+..+..........+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+...+........+.+.....+..........+.........+......+...+..+...+...+...............+...+.........+...+.........+.............+...+..+.+...........+.+.........+.....+......+....+...+...........+........................+............+....+..+....+...+...+..+.+......+...+......+.....+.+.....+.........+....+..+.........+....+...+.....+...+.......+...+..+.......+..+..................+...+...+....+......+.....+.......+........+.........+.......+...+......+..............+............+....+.....+.......+.....+.......+.....+............+.+............+...+.....+...+.......+..............+.............+..+..................+.+..+....+......+..+.+......+.....+...+.+..+....+...+...+.....+....+......+.................+.......+.........+.....+.+...........+....+..............+......+.+........+....+.....+...+.............+...........+.+.........+........+.+.....+.+........+.......+.....+...+......+............+....+.....+.........+.......+............+........+.......+.....+.+......+...+.....+.+............+..+...............+...+...+.+...+............+...+..+......+.......+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+..+.......+..+....+..+........................+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+.......+...+..+......+.+........+.......+......+..+.+.....+............+...+......+.............+..+...+..........+......+.........+...+...+...........+.+...+...............+.....+.+...+..+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Certificate request self-signature ok
subject=C = US, L = California, O = Wazuh, OU = Wazuh, CN = dashboard
07/12/2023 11:18:47 INFO: Wazuh dashboard certificates created.

Testing is in: #2661 (comment)

@davidcr01 davidcr01 self-assigned this Dec 7, 2023
@davidcr01 davidcr01 linked an issue Dec 7, 2023 that may be closed by this pull request
@teddytpc1 teddytpc1 merged commit 65a30f4 into 4.7.2 Dec 7, 2023
4 checks passed
@teddytpc1 teddytpc1 deleted the bug/2661-not-generating-a-certificate-error-displayed-in-the-cert-tool branch December 7, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

not generating a certificate error displayed in the Cert tool
3 participants