...
Use the following procedure to replace these certificates.
Make sure you have the new certificate and key following files provided in
.pem
format - use exactly the file names listed below:CA certificate -
custom-es-ca-cert.pem
- if there are several CA certificates (root CA and intermediate CAs) - thepem
file should contain all certificates concatenated (one after the other).New Store certificate -
dpod-es-server-cert.pem
New Store certificate key -
dpod-es-server-key.pem
Stop all the application services using
app-util.sh
(In a Cell Environment, perform all the steps on stop the cell manager as well as all the cell members).Configure DPOD (In a Cell Environment, configure the cell manager as well as all the cell members.):
Log in to DPOD's server using SSH.
Create a new custom keys directory:
Code Block mkdir -p /app/keys/store/custom
Copy the
pem
files to this directory. i.e.:Code Block ls /app/keys/store/custom custom-es-ca-cert.pem dpod-es-server-cert.pem dpod-es-server-key.pem
Create the CA certificate
bundle:
Code Block cat /app/keys/store/dpod-es-ca-cert.pem /app/keys/store/custom/custom-es-ca-cert.pem > /app/keys/store/custom/dpod-es-ca-cert.pem
Deploy the files to the Store server nodes:
Code Block
ls -d1 /app/opensearch
_nodes/config/MonTier-es-raw-trans-*/certs | xargs -I ddd cp -f /app/keys/store/custom/dpod-es-*.pem ddd
Configure the Store server
nodes with the new DN:
Code Block
ls -1 /app/opensearch_nodes/config/MonTier-es-raw-trans-*/opensearch.yml | xargs -I fff sed -i "
s#plugins.security.nodes_dn:.*
#plugins.security.nodes_dn:
['$(openssl x509 -subject -nameopt RFC2253 -noout -in /app/keys/store/custom/dpod-es-server-cert.pem | sed 's/subject= //')'
]#" fff
Start all the application services using
app-util.sh
(In a 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
, start the cell manager and all the cell members).