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 mkdir wazuh-install-files error #2535

Conversation

c-bordon
Copy link
Member

Related issue
#2524

Description

The eval is added to prevent mkdir from trying to create the directory >> /dev/null 2>&1

Logs example

cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-packages/unattended_installer$ bash wazuh-certs-tool.sh -A
18/10/2023 08:29:09 INFO: Admin certificates created.
18/10/2023 08:29:09 INFO: Wazuh indexer certificates created.
18/10/2023 08:29:10 INFO: Wazuh server certificates created.
18/10/2023 08:29:10 INFO: Wazuh dashboard certificates created.
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-packages/unattended_installer$ bash wazuh-certs-tool.sh -A -v
18/10/2023 10:34:19 DEBUG: Reading configuration file.
18/10/2023 10:34:19 DEBUG: Checking if 127.0.0.1 is private.
18/10/2023 10:34:19 DEBUG: Checking if 127.0.0.1 is private.
18/10/2023 10:34:19 DEBUG: Checking if 127.0.0.1 is private.
18/10/2023 10:34:19 DEBUG: Checking if the root CA exists.
18/10/2023 10:34:19 DEBUG: Creating the root certificate.
...+....+.....+....+...+..+......+......+.............+..+...+.......+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+...+....+..+.+..+.............+.....+...............+...............+...+.+......+............+..+...+.+......+......+..+.+..+.........+..........+.....+....+.....+.........+.+...............+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...........+...+..+...+..........+...+........+.......+........+.......+...+..+....+.....+......+.........+......+.........+.+..+..................+...+.+...+.....+.+.....+...............+.+..............+.......+..+..........................................+...+.+............+..+.+..+....+.....+..........+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
...+.........+...+......+..+.......+...+........+.+.....+................+........+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+...+....+...+.................+.............+...+............+..+......+......+.+..+...+.......+..+.+..+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.........+......+......+..........+...+...+.....+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
18/10/2023 10:34:19 DEBUG: Generating Admin certificates.
Certificate request self-signature ok
subject=C = US, L = California, O = Wazuh, OU = Wazuh, CN = admin
18/10/2023 10:34:20 INFO: Admin certificates created.
18/10/2023 10:34:20 DEBUG: Generating Wazuh indexer certificates.
18/10/2023 10:34:20 DEBUG: Creating the Wazuh indexer certificates.
18/10/2023 10:34:20 DEBUG: Generating certificate configuration.
Ignoring -days without -x509; not generating a certificate
.+...+.........+.......+...+..+....+.....+....+........+.......+...+..+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*..+........+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.........+..+...+.........+............+....+..+....+...+...........+......+......+......................+.....+......+.+..............+......+..........+........+...+...+.........+.......+.....+...................+...........+....+..+....+...+.....+......+....+..................+..+......+.+........+......+....+..+....+.....+....+......+..+....+.....+...+...+.......+...............+...+...+.....+.+..................+..+......+....+...+..+....+.........+...+...+...........+...+......+.......+.....+...+.......+..............+.+.........+.....+.+.....+.............+.....+......+.+..+.+...........+...+..........+...+..+.+.....+....+.....+.+......+.....+.............+.....+...+.......+......+..+...+.......+...+..+.............+.....+.........+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
.......+...+...+.+...........+............+.......+...........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+..................+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+....+........+.+...........+.........+.........+..........+.................+......+...................+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Certificate request self-signature ok
subject=C = US, L = California, O = Wazuh, OU = Wazuh, CN = wazuh-indexer
18/10/2023 10:34:20 INFO: Wazuh indexer certificates created.
18/10/2023 10:34:20 DEBUG: Generating Filebeat certificates.
18/10/2023 10:34:20 DEBUG: Creating the Wazuh server certificates.
18/10/2023 10:34:20 DEBUG: Generating certificate configuration.
Ignoring -days without -x509; not generating a certificate
....+..+......+......................+...+...........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.........+.........+..+...............+.........+.+...+..+...+.........+...+.........+...+......+.+...+............+........+.......+..............+.+..................+..+.+.....+...............+...............+...+.......+...+.........+............+.....+......+...+....+..+.+............+..+.+...+.....+..........+..............+...+....+........+..........+......+......+......+..+...+....+......+.........+...+..+.+...+.....+....+............+.....+.........................+...+..+...+...............+..................+....+.........+.....+....+..+......+.........+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
....+...+..........+........+....+...............+...+..+....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+....+........+...+.......+......+......+.....+....+......+.....+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+.....+......+.+...+...+.....+..................+.+.........+......+.....+.+........+..........+.........+...+..+..........+.....+......+.......+...............+...+.....+..........+.....+.......+.....+.........+.............+...+..+.+......+...+..+..........+...+............+.....+...+......+......+.+........+....+..+......+...............+.......+..+.+.........+.....+......+..................+.+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Certificate request self-signature ok
subject=C = US, L = California, O = Wazuh, OU = Wazuh, CN = wazuh-server
18/10/2023 10:34:20 INFO: Wazuh server certificates created.
18/10/2023 10:34:20 DEBUG: Generating Wazuh dashboard certificates.
18/10/2023 10:34:20 DEBUG: Creating the Wazuh dashboard certificates.
18/10/2023 10:34:20 DEBUG: Generating certificate configuration.
Ignoring -days without -x509; not generating a certificate
........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.+.....+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...................+..+.......+........+......+......+.............+...+...+.................+............+.+..+.......+..+............................+.....+...+.........+.........+....+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
..+.....................+...+...+...+.......+...+.........+..+....+.........+.....+...+.......+........+.......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+............+...+...+....+...+...+...+............+...+.....+.......+........+....+...+.........+.....+....+............+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*...+..+.........+....+.........+......+......+...+........+...+....+..+.........+......+.+.........+........+.......+.....+.+.....+...+....+...............+.....+.+.....+.+........+......+.........+.......+...........+.........+.+............+...........+....+..+....+......+.....+................+.................+......+.........+.+.....+....+...+..+...+...+....+..+.+.................+.......+.....+...+...+........................+.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
Certificate request self-signature ok
subject=C = US, L = California, O = Wazuh, OU = Wazuh, CN = wazuh-dashboard
18/10/2023 10:34:20 INFO: Wazuh dashboard certificates created.
18/10/2023 10:34:20 DEBUG: Cleaning certificate files.

@c-bordon c-bordon self-assigned this Oct 18, 2023
@c-bordon c-bordon linked an issue Oct 18, 2023 that may be closed by this pull request
2 tasks
@teddytpc1 teddytpc1 merged commit 5fb3814 into 4.8.0 Oct 18, 2023
6 of 23 checks passed
@teddytpc1 teddytpc1 deleted the bug/2524-message-error-generating-the-wazuh-certificates-to4.8.0 branch October 18, 2023 13:58
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.

Message error generating the Wazuh certificates
4 participants