The system encrypts the communication between the Store nodes with self-signed certificates generated during the installation.
Use the following procedure to replace these certificates.
Make sure you have the new certificate and key files provided in
.pem
format.In a Cell Environment, perform all the steps on the cell manager as well as all the cell members.
Log in to DPOD's server using SSH.
Create new custom keys directory
mkdir -p /app/keys/store/custom
Copy the key and certificate files to this directory. i.e.:
ls /app/keys/store/custom my-cert.pem my-key.pem
Deploy key and certificate pem files to all Store nodes:
ls -d1 /app/opensearch_nodes/config/MonTier-es-raw-trans-*/certs | xargs -I ddd cp -f /app/keys/store/custom/* ddd In version 1.0.14.0: ls -d1 /app/elasticsearch_nodes/config/MonTier-es-raw-trans-*/certs | xargs -I ddd cp -f /app/keys/store/custom/* ddd
Update file names in Store nodes configuration files (replace
<certificate file name>
and<key file name>
in the command below):ls -1 /app/opensearch_nodes/config/MonTier-es-raw-trans-*/opensearch.yml | xargs -I fff sed -i "s|plugins.security.ssl.http.pemcert_filepath:.*|plugins.security.ssl.http.pemcert_filepath: certs/<certificate file name>|" fff ls -1 /app/opensearch_nodes/config/MonTier-es-raw-trans-*/opensearch.yml | xargs -I fff sed -i "s|plugins.security.ssl.http.pemkey_filepath:.*|plugins.security.ssl.http.pemkey_filepath: certs/<key file name>|" fff In version 1.0.14.0: ls -1 /app/elasticsearch_nodes/config/MonTier-es-raw-trans-*/elasticsearch.yml | xargs -I fff sed -i "s|opendistro_security.ssl.http.pemcert_filepath.*|opendistro_security.ssl.http.pemcert_filepath: certs/<certificate file name>|" fff ls -1 /app/elasticsearch_nodes/config/MonTier-es-raw-trans-*/elasticsearch.yml | xargs -I fff sed -i "s|opendistro_security.ssl.http.pemkey_filepath.*|opendistro_security.ssl.http.pemkey_filepath: certs/<key file name>|" fff
Stop and start all the application services using app-util.sh
Cell Environment users should stop and start Syslog and WS-M agents in all cell members from app-util.sh:
app-utils.sh → Stop Service → syslog → stop only this service
app-utils.sh → Stop Service → wsm → stop only this service
app-utils.sh → Start Service → syslog → start only this service
app-utils.sh → Start Service → wsm → start only this service