Prerequisites
DPOD installed in version 1.0.14.0 or above.
Certificate and Key files provided in “.pem“ format.
Update Certificate
...
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 and as well as all the cell members.
Set the config path prefix parameter:
Code Block STORE_CONFIG_PREFIX="/app/opensearch_nodes/config/MonTier-es-raw-trans-"
For 1.0.14.0 use:
Code Block STORE_CONFIG_PREFIX="/app/elasticsearch_nodes/config/MonTier-es-raw-trans-"
Log in to DPOD's server using SSH.
Create new custom keys directory
Code Block mkdir -p /app/keys/store/custom
Copy the key and certificate pem files to this directory. i.e.:
Code Block ls /app/keys/store/custom my-cert.pem my-key.pem
Deploy key and certificate pem files to all Store nodes:
Code Block ls -d1 ${STORE_CONFIG_PREFIX}/app/opensearch_nodes/config/MonTier-es-raw-trans-*/certs | xargs -I ffddd cp -f /app/keys/store/custom/<certificate* ddd fileIn name> ffversion 1.0.14.0: ls -d1 ${STORE_CONFIG_PREFIX}/app/elasticsearch_nodes/config/MonTier-es-raw-trans-*/certs | xargs -I ffddd cp -f /app/keys/store/custom/<key file name> ff* ddd
Update file names in Store nodes configuration files .(replace
<certificate file name>
and<key file name>
in the command below):
ForCode Block ls -1 ${STORE_CONFIG_PREFIX}/app/opensearch_nodes/config/MonTier-es-raw-trans-*/opensearch.yml | xargs -I fffff sed -i "s|plugins.security.ssl.http.pemcert_filepath:.*|plugins.security.ssl.http.pemcert_filepath: certs/<certificate file name>|" fffff ls -1 ${STORE_CONFIG_PREFIX}/app/opensearch_nodes/config/MonTier-es-raw-trans-*/opensearch.yml | xargs -I fffff sed -i "s|plugins.security.ssl.http.pemkey_filepath:.*|plugins.security.ssl.http.pemkey_filepath: certs/<key file name>|" ff
usefff In version 1.0.14.0
:
Code Block
${STORE_CONFIG_PREFIX}ls -1
ff/app/elasticsearch_nodes/config/MonTier-es-raw-trans-*/elasticsearch.yml | xargs -I
fffff sed -i "s|opendistro_security.ssl.http.pemcert_filepath.*|opendistro_security.ssl.http.pemcert_filepath: certs/<certificate file name>|"
${STORE_CONFIG_PREFIX}fff ls -1
ff/app/elasticsearch_nodes/config/MonTier-es-raw-trans-*/elasticsearch.yml | xargs -I
fffff 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
...