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

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

book

Article ID: 281372

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

We need to update the Data Collector 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/IMDataCollector/apache-karaf/etc/truststore
      • /opt/IMDataCollector/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/IMDataCollector/bin/keytool -importcert -keystore truststore -alias root_cert -file root.pem
      • /opt/CA/IMDataCollector/bin/keytool -importcert -keystore truststore -alias intermediate_cert -file intermediate.pem
  6. Stop the dcmd service
    • systemctl stop dcmd
  7. Move the new keystore into the old keystore's location
  8. Start the dcmd service
    • systemctl start dcmd