# Export the CA certificate
cp pki/ca.crt /etc/opensearch-ca/ca.crt
# Export the server certificate and key
cp pki/issued/server.crt /etc/opensearch-ca/server.crt
cp pki/private/server.key /etc/opensearch-ca/server.key
# Export the client certificate and key (if generated)
cp pki/issued/client.crt /etc/opensearch-ca/client.crt
cp pki/private/client.key /etc/opensearch-ca/client.key
Step 8: Configure OpenSearch
Configure OpenSearch to use the generated certificates. Edit the OpenSearch configuration file (opensearch.yml) to include the paths to your certificates.
Start the OpenSearch service. The method to start the service may vary depending on how you installed OpenSearch. If you used a package manager, you might use:
sh
service opensearch start
Or if you are running it directly:
sh
/path/to/opensearch
Step 10: Verify Configuration
Check the OpenSearch logs to ensure that it starts correctly and that SSL is enabled.
sh
tail -f /var/log/opensearch/opensearch.log
That's it! You now have a CA server set up for OpenSearch on Alpine Linux.