To enhance system security, you are advised to import all the CA certificates of devices before adding devices or system components to eReplication. If CA certificates of devices are not imported, the communication between eReplication and devices and system communication are not affected. However, the system may encounter spoofing risks. After CA certificates are imported, you need to restart eReplication to make the certificates take effect. You are advised to restart eReplication in off-peak hours.
Prerequisites
- A cross-platform remote access tool, such as PuTTY, has been obtained.
- If the eReplication management server runs Linux, the password of user root or DRManager has been obtained.
- Devices' CA certificates to be added have been obtained and the certificates are in the X.509v3 format.
Context
- The eReplication Server provides key store bcm.keystore. You need to import CA certificates to the key store. The fixed save path of the key store is /opt/BCManager/Runtime/LegoRuntime/certs in Linux.
- The eReplication Server has preset CA certificates of the Agent. Therefore, you do not need to import the CA certificates of the Agent (bcmagentca).
- Note the following when importing CA certificates to the eReplication Server:
- If there are CA certificates of multiple levels, import all the CA certificates.
- If multiple devices use a same CA certificate, import the CA certificate once only.
- If the system reports a certificate alarm, restart the eReplication Server after CA certificates are imported.
- Stop the eReplication Server only when no protection tasks or recovery plans are being executed in eReplication.
If no CA certificate is imported or the device certificate expires, eReplication generates a certificate alarm by default. You can disable certificate alarming if you do not want eReplication to generate certificate alarms. For details about how to disable certificate alarming, see Disabling Certificate Alarming.
Procedure
- Linux
- Use PuTTY to log in to the eReplication Server.
In software package-based installation mode: Log in as user root.
- Run the TMOUT=0 command to prevent PuTTY from exiting due to session timeout.
After you run this command, the system continues to run when no operation is performed, resulting a risk. For security purposes, you are advised to run exit to exit the system after completing your operations.
- Run cd /opt/BCManager/Runtime/bin to enter the script save path.
In Linux, the installation path of the eReplication Server is /opt/BCManager. The path is fixed.
- Run the sh shutdownSystem.sh command and enter y to stop the eReplication Server.
- Run cd /opt/BCManager/Runtime/bin to enter the script save path.
- Run ./jre6.0.18/bin/keytool -import -alias Certificate alias -keystore ./LegoRuntime/certs/bcm.keystore -file Certificate file to import the CA certificate.
Certificate alias of each certificate must be unique.
-file is the full path to the file, for example, /opt/BCManager/Runtime/LegoRuntime/certs/cacert/ cacert.pem.
- Type the CA certificate key store password of BCManager and press Enter. Ensure that the certificate information is correct.
The following command output is displayed:
Trust this certificate? [no]:
- Type yes.
The CA certificate has been added to the key store if the following command output is displayed:
Certificate was added to keystore
- Run ./jre6.0.18/bin/keytool -list -v -keystore ./LegoRuntime/certs/bcm.keystore to view information about the imported CA certificate.
- Type the CA certificate key store password of BCManager and press Enter. Confirm that the CA certificate has been imported successfully.
- Repeat 6 to 10 to import all the CA certificates of devices.
- Run cd /opt/BCManager/Runtime/bin to enter the script save path.
- Run the sh startSystem.sh command to start the eReplication Server.
----End
Follow-up Procedure
If CA certificates of devices are updated, you need to delete original CA certificates and import new CA certificates. Before performing 6 (in Linux), perform the following operations:
- Linux
- Run ./jre6.0.18/bin/keytool -delete -alias Certificate alias -keystore ./LegoRuntime/certs/bcm.keystore to delete the original CA certificate.
- Type the CA certificate key store password of BCManager and press Enter. Ensure that the information about the CA certificate to be deleted is correct.
Copyright © Huawei Technologies Co., Ltd.