このページは、お客様の言語ではご利用いただけません。Huawei Cloudは、より多くの言語バージョンを追加するために懸命に取り組んでいます。ご協力ありがとうございました。

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
Software Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Replacing the Server Certificate

Updated on 2022-02-22 GMT+08:00

For security purposes, users may want to use a Secure Socket Layer (SSL) certificate issued by a third-party certification authority. The Agent allows you to replace authentication certificates and private key files as long as they provide the authentication certificates and private-public key pairs. The update to the certificate can take effect only after the Agent is restarted, hence you are advised to update the certificate in off-peak hours.

Prerequisites

  • You have obtained a username and its password for logging in to the management console.
  • The username and password for logging in to a server have been obtained.
  • New certificates in the X.509v3 format have been obtained.

Context

  • The client is pre-deployed with the Agent AC certificate bcmagentca, private key file of the CA certificate server.key (The default protection password of this file is BCM@DataProtect123), and authentication certificate server.crt. All these files are saved in /home/rdadmin/Agent/bin/nginx/conf (if you use Linux) or \bin\nginx\conf (if you use Windows).
  • You need to restart the Agent after replacing a certificate to make the certificate effective.

Procedure (Linux)

  1. Log in the Linux server with the Agent installed.
  2. Run the TMOUT=0 command to prevent PuTTY from exiting due to session timeout.

    NOTE:

    After the preceding command is executed, the system remains running even when no operation is performed, which results in security risks. For security purposes, run the exit command to exit the system after you finish performing operations.

  3. Run the su - rdadmin command to switch to user rdadmin.
  4. Run the cd /home/rdadmin/Agent/bin command to go to the script save path.

    NOTE:

    The installation path of the Agent is /home/rdadmin/Agent.

  5. Run the sh agent_stop.sh command to stop the Agent running.
  6. Place the new certificates and private key files in the specified directory.

    NOTE:

    Place new certificates in the /home/rdadmin/Agent/bin/nginx/conf directory.

  7. Run the /home/rdadmin/Agent/bin/agentcli chgkey command.

    Information similar to the following information is displayed:
    Enter password of admin:
    NOTE:

    admin is the username configured during the Agent installation.

  8. Type the login password of the Agent and press Enter.

    Information similar to the following information is displayed:

    Change certificate file name:

  9. Enter a name for the new certificate and press Enter.

    NOTE:

    If the private key and the certificate are the same file, names of the private key and the certificate are identical.

    Information similar to the following information is displayed:

    Change certificate key file name: 

  10. Enter a name for the new private key file and press Enter.

    Information similar to the following information is displayed:

    Enter new password: 
    Enter the new password again:

  11. Enter the protection password of the private key file twice. The certificate is then successfully replaced.
  12. Run the sh agent_start.sh command to start the Agent.

Procedure (Windows)

  1. Log in the Windows server with the Agent installed.
  2. Open the CLI and go to the installation path\bin directory.
  3. Run the agent_stop.bat command to stop the Agent running.
  4. Place the new certificates and private key files in the specified directory.

    NOTE:

    Place new certificates in the installation path\bin\nginx\conf directory.

  5. Run the agentcli.exe chgkey command.

    Information similar to the following information is displayed:

    Enter password of admin: 
    NOTE:

    admin is the username configured during the Agent installation.

  6. Enter a name for the new certificate and press Enter.

    NOTE:

    If the private key and the certificate are the same file, names of the private key and the certificate are identical.

    Information similar to the following information is displayed:
    Change certificate key file name: 

  7. Enter a name for the new private key file and press Enter.

    Information similar to the following information is displayed:

    Enter new password: 
    Enter the new password again: 

  8. Enter the protection password of the private key file twice. The certificate is then successfully replaced.
  9. Run the agent_start.bat command to start the Agent.

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback