How can you update the Data Aggregator keystore with a new keypair, without reverting the configuration?
search cancel

How can you update the Data Aggregator keystore with a new keypair, without reverting the configuration?

book

Article ID: 281371

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

We need to update the Data Aggregator with a new keypair, but would like to avoid reverting to http due to security restrictions

Environment

All DX NetOps Performance Management releases

Resolution

  1. Find the keystore name, keystore password, and alias of the existing keystore
    • This can be done with a keytool -list command, for example:
      • keytool -list -keystore keystore
  2. Backup the existing truststore and keystore
    • By default, these two files need to be backed up
      • /opt/IMDataAggregator/apache-karaf/etc/truststore
      • /opt/IMDataAggregator/apache-karaf/etc/keystore
  3. Generate or obtain a new keystore 
  4. Alter the new keystore to mirror the existing keystore
  5. Import the root & intermediate certs into the truststore
    • The root certificate will need to be trusted.  If the certificate chain is proper, the intermediate should not require explicit trusting
      • /opt/CA/IMDataAggregator/jre/bin/keytool -importcert -keystore truststore -alias root_cert -file root.pem
      • /opt/CA/IMDataAggregator/bin/keytool -importcert -keystore truststore -alias intermediate_cert -file intermediate.pem
  6. Stop the dadaemon service
    • systemctl stop dadaemon
  7. Move the new keystore into the old keystore's location
  8. Start the dadaemon service
    • systemctl start dadaemon