mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-10-25 17:13:41 +00:00
Merge pull request #422 from wazuh/feature-tools-rename
Adopt Wazuh standard on tool names
This commit is contained in:
@@ -307,7 +307,7 @@
|
|||||||
<rule_dir>etc/rules</rule_dir>
|
<rule_dir>etc/rules</rule_dir>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
||||||
<!-- Configuration for ossec-authd -->
|
<!-- Configuration for wazuh-authd -->
|
||||||
<auth>
|
<auth>
|
||||||
<disabled>no</disabled>
|
<disabled>no</disabled>
|
||||||
<port>1515</port>
|
<port>1515</port>
|
||||||
|
|||||||
@@ -307,7 +307,7 @@
|
|||||||
<rule_dir>etc/rules</rule_dir>
|
<rule_dir>etc/rules</rule_dir>
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|
||||||
<!-- Configuration for ossec-authd -->
|
<!-- Configuration for wazuh-authd -->
|
||||||
<auth>
|
<auth>
|
||||||
<disabled>no</disabled>
|
<disabled>no</disabled>
|
||||||
<port>1515</port>
|
<port>1515</port>
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ remove_data_files() {
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
create_ossec_key_cert() {
|
create_ossec_key_cert() {
|
||||||
print "Creating ossec-authd key and cert"
|
print "Creating wazuh-authd key and cert"
|
||||||
exec_cmd "openssl genrsa -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.key 4096"
|
exec_cmd "openssl genrsa -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.key 4096"
|
||||||
exec_cmd "openssl req -new -x509 -key ${WAZUH_INSTALL_PATH}/etc/sslmanager.key -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.cert -days 3650 -subj /CN=${HOSTNAME}/"
|
exec_cmd "openssl req -new -x509 -key ${WAZUH_INSTALL_PATH}/etc/sslmanager.key -out ${WAZUH_INSTALL_PATH}/etc/sslmanager.cert -days 3650 -subj /CN=${HOSTNAME}/"
|
||||||
}
|
}
|
||||||
@@ -161,7 +161,7 @@ main() {
|
|||||||
# Remove some files in permanent_data (i.e. .template.db)
|
# Remove some files in permanent_data (i.e. .template.db)
|
||||||
remove_data_files
|
remove_data_files
|
||||||
|
|
||||||
# Generate ossec-authd certs if AUTO_ENROLLMENT_ENABLED is true and does not exist
|
# Generate wazuh-authd certs if AUTO_ENROLLMENT_ENABLED is true and does not exist
|
||||||
if [ $AUTO_ENROLLMENT_ENABLED == true ]
|
if [ $AUTO_ENROLLMENT_ENABLED == true ]
|
||||||
then
|
then
|
||||||
if [ ! -e ${WAZUH_INSTALL_PATH}/etc/sslmanager.key ]
|
if [ ! -e ${WAZUH_INSTALL_PATH}/etc/sslmanager.key ]
|
||||||
|
|||||||
@@ -110,4 +110,4 @@ function_wazuh_migration
|
|||||||
function_create_custom_user
|
function_create_custom_user
|
||||||
|
|
||||||
# Start Wazuh
|
# Start Wazuh
|
||||||
/var/ossec/bin/ossec-control start
|
/var/ossec/bin/wazuh-control start
|
||||||
|
|||||||
Reference in New Issue
Block a user