forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pre-start bash script to generate the certificates
- Loading branch information
Showing
2 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
# The OpenSearch Contributors require contributions made to | ||
# this file be licensed under the Apache-2.0 license or a | ||
# compatible open source license. | ||
|
||
# Download the Wazuh certs tool | ||
curl -sO https://packages.wazuh.com/4.9/wazuh-certs-tool.sh | ||
|
||
# Make the script executable | ||
chmod +x ./wazuh-certs-tool.sh | ||
|
||
# Run the Wazuh certs tool | ||
bash ./wazuh-certs-tool.sh -A | ||
|
||
# Create a tarball of the generated certificates | ||
tar -cvf ./wazuh-certificates.tar -C ./wazuh-certificates/ . | ||
|
||
# Clean up | ||
rm -rf ./wazuh-certificates wazuh-certs-tool.sh *.log | ||
|
||
echo "Setup complete and certificates archived." |