Replacing CA Certificates
Scenarios
A CA certificate is a digital file signed and issued by an authentication authority. It contains the public key, information about the owner of the public key, information about the issuer, validity period, and certain extension information. It is used to set up a secure information transfer channel between the Agent and the server.
If the CA certificate does not comply with the security requirements or has expired, replace it for security purposes.
Prerequisites
- The username and password for logging in to an ECS have been obtained.
- A new CA certificate is ready.
Procedure (Linux)
- Log in the Linux server with the Agent installed.
- Run the following command to disable user logout upon system timeout:
TMOUT=0
- Run the following command to switch to user rdadmin:
su - rdadmin
- Run the following command to go to the path to the Agent start/stop script:
cd /home/rdadmin/Agent/bin
- Run the following command to stop the Agent:
sh agent_stop.sh
- Run the following command to go to the path to the CA certificate:
cd /home/rdadmin/Agent/bin/nginx/conf
- Run the following command to delete the existing CA certificate:
rm bcmagentca.crt
- Copy the new CA certificate file into the /home/rdadmin/Agent/bin/nginx/conf directory and rename the file bcmagentca.crt.
- Run the following commands to change the owner of the CA certificate:
chown rdadmin:rdadmin bcmagentca.crt
- Run the following command to modify the permissions on the CA certificate:
chmod 400 bcmagentca.crt
- Run the following command to go to the path to the Agent start/stop script:
cd /home/rdadmin/Agent/bin
- Run the following command to start the Agent:
sh agent_start.sh
Procedure (Windows)
- Log in to the ECS with the Agent installed.
- Go to the Installation path\bin directory.
- Run the agent_stop.bat script to stop the Agent.
- Go to the Installation path\nginx\conf directory.
- Delete the bcmagentca.crt certificate file.
- Copy the new CA certificate file into the Installation path\nginx\conf directory and rename the file bcmagentca.crt.
- Go to the Installation path\bin directory.
- Run the agent_stop.bat script to service.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot