Got it

How Do I Update the KMC Master Key on the HCS?

Created: Dec 15, 2020 02:42:41Latest reply: Dec 15, 2020 02:49:09 285 2 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello, all!

Good day!

I'm just starting a new company, and I have a KMC key problem consultation.

My question is: How do I update the KMC master key on the HCS? 

Can I update automatically? If so, how can I view the current update policy of the system?

Please help me, thanks!


Featured Answers

Recommended answer

olive.zhao
Admin Created Dec 15, 2020 02:49:09

Hi, Lisa!

Have a nice day!

The KMC can automatically update the master key. To query the automatic update policy of the KMC master key, perform the following steps:

1. Use PuTTY to log in to any Service-CSBS node using the IP address corresponding to the CSBS_Service field.

The default account is djmanager. The default password is CloudService@123!.


2. Run the get_master_key_auto_update_policy command to query the automatic update policy of the KMC master key.

[djmanager@karbor1 ~]$ get_master_key_auto_update_policy 
+------------------+------------+
|    parameter     |   value    |
+------------------+------------+
|  interval_days   |    730     |
| last_update_time | 2020-09-08 |
+------------------+------------+


How to upgrade the KMC master key

1. Use PuTTY to log in to any Service-CSBS node using the IP address corresponding to the CSBS_Service field.

The default account is djmanager. The default password is CloudService@123!.

2. Run the following command to update the KMC master key:

sudo /opt/huawei/dj/bin/kmc/kmc_update_master_key.sh -s

sudo /opt/huawei/dj/bin/kmc/kmc_update_master_key.sh -s 
[INFO] Generate KMC master key success.
[INFO] Sync KMC master key success.
[INFO] Update KMC master key success.

3. Back up all files in /opt/huawei/dj/paas, which can be used for disaster recovery.


Hope can help you!


View more
  • x
  • convention:

All Answers
hi, we are working on it now.
View more
  • x
  • convention:

Hi, Lisa!

Have a nice day!

The KMC can automatically update the master key. To query the automatic update policy of the KMC master key, perform the following steps:

1. Use PuTTY to log in to any Service-CSBS node using the IP address corresponding to the CSBS_Service field.

The default account is djmanager. The default password is CloudService@123!.


2. Run the get_master_key_auto_update_policy command to query the automatic update policy of the KMC master key.

[djmanager@karbor1 ~]$ get_master_key_auto_update_policy 
+------------------+------------+
|    parameter     |   value    |
+------------------+------------+
|  interval_days   |    730     |
| last_update_time | 2020-09-08 |
+------------------+------------+


How to upgrade the KMC master key

1. Use PuTTY to log in to any Service-CSBS node using the IP address corresponding to the CSBS_Service field.

The default account is djmanager. The default password is CloudService@123!.

2. Run the following command to update the KMC master key:

sudo /opt/huawei/dj/bin/kmc/kmc_update_master_key.sh -s

sudo /opt/huawei/dj/bin/kmc/kmc_update_master_key.sh -s 
[INFO] Generate KMC master key success.
[INFO] Sync KMC master key success.
[INFO] Update KMC master key success.

3. Back up all files in /opt/huawei/dj/paas, which can be used for disaster recovery.


Hope can help you!


View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.