Key updating method, server and key updating system

By detecting the link status, the key is automatically updated, the problem of low key update efficiency in complex network environments is solved, efficient and reliable update of keys is achieved, and the security of service data is improved.

CN119011240APending Publication Date: 2024-11-22XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411097512.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In complex and changeable network environments, long-term use of the same key can easily lead to security vulnerabilities. In the prior art, manual key modification efficiency is low, especially when there are many data keys.

Method used

By detecting the link status between the server and the key server, if the abnormality is performed, select the key from the local key pool for update, and automatically update the key update cycle. If the link is normal, send a key update request to the key server to Obtain new keys to ensure the security of business data.

Benefits of technology

It realizes efficient and reliable update of keys, improves the security of service data, and can obtain keys through the local key pool for reliable updates, reducing the need for manual key modification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011240A_ABST
    Figure CN119011240A_ABST
Patent Text Reader

Abstract

The invention provides a key updating method, a server and a key updating system. The method comprises the following steps: detecting a link state with a key server, wherein the key server is used for providing a key for the server; when it is detected that the link state is abnormal and a key update period expires, determining a first key from a preset local key pool; and carrying out key updating on the encrypted service data based on the first key, and updating the key updating period. According to the method, the key can be updated efficiently and reliably.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to data encryption technology, and more particularly to a key updating method, a server, and a key updating system. Background Art

[0002] In the key management system, the key client communicates with the key server and uses the key generated by the key server to encrypt data. In a complex and changing network environment, long-term use of the same key can easily lead to security vulnerabilities, so it is crucial to update the key.

[0003] In the prior art, in order to prevent attackers from obtaining the key, the key needs to be modified manually on a regular basis. When there are many data keys, the efficiency of manually modifying the key is relatively low. Summary of the invention

[0004] The embodiments of the present application provide a key updating method, a server, and a key updating system for efficiently and reliably updating a key.

[0005] In a first aspect, an embodiment of the present application provides a key update method, applied to a server, comprising:

[0006] Detecting a link status with a key server, wherein the key server is used to provide a key for the server;

[0007] When the link state is detected to be abnormal, when the key update period expires, determining a first key from a preset local key pool;

[0008] The encrypted business data is key updated based on the first key, and the key update period is updated.

[0009] In the above scheme, if an abnormality is detected in the link between the server and the key service end, when the key update cycle expires, a first key is selected from the local key pool, the business data key is updated according to the first key, and the key update cycle is updated. Thus, when the communication between the server and the key service end is abnormal, the key can be obtained based on the key pool, the business data key can be reliably updated, and the security of the business data can be effectively improved by updating the key update cycle.

[0010] In a possible implementation, the method further includes:

[0011] When detecting that the link state is normal, when the key update period expires, sending a key update request to the key service end, wherein the key update request is used to instruct the key service end to send a second key to the server;

[0012] The encrypted service data is key updated based on the second key, and the key update period is updated.

[0013] In the above scheme, when the link status with the key server is normal, the second key is generated by the key server, and the second key is used to update the key of the encrypted business data, thereby realizing automatic key update, which is beneficial to improving the efficiency of key update.

[0014] In a possible implementation, the method further includes:

[0015] When the link status is abnormal, the update times of the key update cycle are recorded. When the update times exceed a preset threshold, an alarm is issued and decryption of the business data is disabled.

[0016] In the above scheme, when the link status is abnormal, the update times of the key update cycle are recorded, and the decryption function of the business data is disabled when the update times exceed the preset threshold, thereby ensuring the security of the business data in the presence of security risks.

[0017] In a possible implementation manner, updating the key update period includes:

[0018] The duration of the key update period is determined based on a random number, and the key update period is updated according to the duration.

[0019] In the above solution, the key update period is determined based on random numbers, which can effectively improve the security of business data.

[0020] In a possible implementation, the server includes a key client and a key management module, and when the link state is detected to be abnormal, when the key update period expires, determining a first key from a preset local key pool includes:

[0021] When the key client detects that the link status is abnormal, it sends a key usage notification to the key management module;

[0022] The key management module selects a first key from the key pool according to the key usage notification when the key update period expires.

[0023] In the above scheme, when the key client detects that the link with the key server is abnormal, it sends a key usage notification to the key management module; when the key update period of the business module expires, the key management module selects a first key from the key pool, updates the key according to the first key, and the key management module updates the key update period of the business module, so that when the key client communicates abnormally with the key server, it can obtain the key based on the key pool for update, and effectively improve the data security of the business data by means of irregular key updates.

[0024] In a possible implementation manner, the updating the key of the encrypted service data based on the first key and updating the key update period includes:

[0025] The key client updates the key of the encrypted service data based on the first key, and sends a key update notification to the key management module;

[0026] The key management module updates the key update period in response to the key update notification.

[0027] In the above scheme, when the link status between the key client and the key server is normal, the key client prompts the key update period to expire through the key management module, sends a key update request to the key server, and updates the key of the business data according to the second key returned by the key server, thereby realizing automatic key update, which is conducive to improving the efficiency of key update.

[0028] In a possible implementation, the method further includes:

[0029] When the key client detects that the link status has returned to normal from abnormality, the key client sends a key deactivation notification to the key management module;

[0030] The key management module sends a key update prompt to the key client according to the key update prompt when the key update period expires;

[0031] The key client responds to the key update prompt and sends a key update request to the key server.

[0032] In the above scheme, when the key client detects that the link has returned to normal, it sends a key deactivation notification to the key management module; the key management module stops obtaining updated keys from the key pool and only provides key update prompts. The key client updates the key using the key generated by the key client, which is beneficial to improving data security.

[0033] In a possible implementation, the method further includes:

[0034] If the key management module does not receive the key usage notification, the key management module sends a key update prompt to the key client after the key update period expires.

[0035] In the above solution, the key management module can monitor the key update cycle and implement automatic key update prompts, so that the key client can update the key on time.

[0036] In a second aspect, an embodiment of the present application provides a server, including: a key client and a key management module; wherein:

[0037] The key client is used to detect the link status with the key server, and the key server is used to provide a key for the server;

[0038] The key management module is used to determine the first key from a preset local key pool when the link status is abnormal and the key update period expires;

[0039] The key client is further used to update the key of the encrypted business data based on the first key;

[0040] The key management module is also used to update the key update period.

[0041] In the above scheme, if an abnormality is detected in the link between the server and the key service end, when the key update cycle expires, a first key is selected from the local key pool, the business data key is updated according to the first key, and the key update cycle is updated. Thus, when the communication between the server and the key service end is abnormal, the key can be obtained based on the key pool, the business data key can be reliably updated, and the security of the business data can be effectively improved by updating the key update cycle.

[0042] In a possible implementation, the key client is further used to:

[0043] When detecting that the link state is normal, when the key update period expires, sending a key update request to the key service end, wherein the key update request is used to instruct the key service end to send a second key to the server;

[0044] The encrypted service data is key updated based on the second key.

[0045] In the above scheme, when the link status with the key server is normal, the second key is generated by the key server, and the second key is used to update the key of the encrypted business data, thereby realizing automatic key update, which is beneficial to improving the efficiency of key update.

[0046] In a possible implementation, the key management module is further used to:

[0047] When the link status is abnormal, the update times of the key update cycle are recorded, and when the update times exceed a preset threshold, an alarm is issued;

[0048] The key client is also used to disable decryption of the business data.

[0049] In the above scheme, when the link status is abnormal, the update times of the key update cycle are recorded, and the decryption function of the business data is disabled when the update times exceed the preset threshold, thereby ensuring the security of the business data in the presence of security risks.

[0050] In a possible implementation, the key management module is specifically used to:

[0051] The duration of the key update period is determined based on a random number, and the key update period is updated according to the duration.

[0052] In the above solution, the key update period is determined based on random numbers, which can effectively improve the security of business data.

[0053] In a possible implementation, the key client is specifically used to:

[0054] When the key client detects that the link status is abnormal, it sends a key usage notification to the key management module;

[0055] The key management module is further configured to select a first key from the key pool according to the key usage notification when the key update period expires.

[0056] In the above scheme, when the key client detects that the link with the key server is abnormal, it sends a key usage notification to the key management module; when the key update period of the business module expires, the key management module selects a first key from the key pool, updates the key according to the first key, and the key management module updates the key update period of the business module, so that when the key client communicates abnormally with the key server, it can obtain the key based on the key pool for update, and effectively improve the data security of the business data by means of irregular key updates.

[0057] In a possible implementation, the key client is further specifically used for:

[0058] Based on the first key, the encrypted business data is keyed up, and a key update notification is sent to the key management module;

[0059] The key management module is further used to respond to the key update notification and update the key update period.

[0060] In the above scheme, when the link status between the key client and the key server is normal, the key client prompts the key update period to expire through the key management module, sends a key update request to the key server, and updates the key of the business data according to the second key returned by the key server, thereby realizing automatic key update, which is conducive to improving the efficiency of key update.

[0061] In a possible implementation, the key client is further used to:

[0062] When detecting that the link status returns to normal from abnormality, sending a key deactivation notification to the key management module;

[0063] The key management module is further configured to, according to the key update prompt, send a key update prompt to the key client when the key update period expires;

[0064] The key client is further configured to, in response to the key update prompt, send a key update request to the key server.

[0065] In the above scheme, when the key client detects that the link has returned to normal, it sends a key deactivation notification to the key management module; the key management module stops obtaining updated keys from the key pool and only provides key update prompts. The key client updates the key using the key generated by the key client, which is beneficial to improving data security.

[0066] In a possible implementation, the key management module is further used to:

[0067] If the key usage notification is not received, a key update prompt is sent to the key client after the key update period expires.

[0068] In the above solution, the key management module can monitor the key update cycle and implement automatic key update prompts, so that the key client can update the key on time.

[0069] In a third aspect, an embodiment of the present application provides a key update system, comprising: a computing device and a server as described above; the computing device is equipped with a key server, and the server is equipped with a key client, a key management module and a business module; wherein,

[0070] The key server is used to provide a key for the server;

[0071] The key client is used to detect the link status with the key server;

[0072] The key management module is used to determine the first key from a preset local key pool when the link status is abnormal and the key update period expires;

[0073] The key client is further used to update the key of the encrypted business data based on the first key;

[0074] The key management module is also used to update the key update period.

[0075] In the above scheme, when the key client detects that the link with the key server is abnormal, it sends a key usage notification to the key management module; when the key update period of the business module expires, the key management module selects a first key from the key pool, updates the key according to the first key, and the key management module updates the key update period of the business module, so that when the key client communicates abnormally with the key server, it can obtain the key based on the key pool for update, and effectively improve the data security of the business data by means of irregular key updates.

[0076] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they can be used to execute the method as described above.

[0077] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when the computer program is executed by a processor.

[0078] In the key update method, server and key update system provided by the embodiments of the present application, if a link abnormality is detected between the server and the key service end, when the key update period expires, a first key is selected from the local key pool, the business data is keyed according to the first key, and the key update period is updated. Thus, when communication abnormality occurs between the server and the key service end, a key can be obtained based on the key pool, the business data key can be reliably updated, and the security of the business data can be effectively improved by updating the key update period. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0080] Figure 1 The structural diagram of the key update system provided by the embodiment of the present application is exemplarily shown in FIG.

[0081] Figure 2 A schematic diagram of a key update method provided in an embodiment of the present application is exemplarily shown in FIG.

[0082] Figure 3 A schematic diagram of a process flow of another key update method provided in an embodiment of the present application is exemplarily shown in FIG.

[0083] Figure 4 A schematic diagram of a process flow of another key update method provided in an embodiment of the present application is exemplarily shown in FIG.

[0084] Figure 5 A flow chart of another key updating method provided in an embodiment of the present application is exemplarily shown in FIG.

[0085] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0086] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the appended claims.

[0087] The module in the embodiment of the present application refers to a functional module or a logic module, which can be in the form of software, and realize its function by executing program code by a processor, or in the form of hardware.

[0088] First, the terms involved in the embodiments of the present application are explained:

[0089] KMIP (Key Management Interoperability Protocol) protocol: is a key management interoperability protocol used to share and manage keys and certificates between different security systems.

[0090] BMC (Baseboard Management Controller) is the server's baseboard management controller. It serves as the server's out-of-band management system to manage server hardware.

[0091] In the key management system, the key client communicates with the key server and uses the key generated by the key server to encrypt data. In a complex and changing network environment, long-term use of the same key can easily lead to security vulnerabilities, so it is crucial to update the key.

[0092] In the prior art, in order to prevent attackers from obtaining the key, the key needs to be modified manually on a regular basis. When there are many data keys, the efficiency of manually modifying the key is relatively low.

[0093] The key updating method, server and key updating system provided in the embodiments of the present application are intended to solve the above-mentioned technical problems.

[0094] In the key update method provided in the embodiment of the present application, when the key client detects that the link with the key server is abnormal, it sends a key usage notification to the key management module, so that the key management module selects a first update key from the key pool when the key update period of the business module expires, and updates the key of the business module according to the first update key, and sends a key update notification to the key management module, so that the key management module updates the key update period of the business module according to the key update notification. In this way, when the communication between the key client and the key server is abnormal, the update key can be obtained based on the key pool, the key of the business module can be updated, and the data security of the business module can be effectively improved by means of irregular key updates.

[0095] The technical solutions of the embodiments of the present application are illustrated below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0096] For ease of understanding, the following Figure 1 , the application scenarios involved in the embodiments of the present application are described.

[0097] Figure 1 This is a schematic diagram of the structure of a key management system provided in an embodiment of the present application. Figure 1 The key management system may include a computing device and a server, wherein the computing device is equipped with a key server, and the server is equipped with a key client, a key management module, and a business module. The key client may perform data transmission with the key server, the key management module, and the business module.

[0098] Among them, the business module is provided with a key, and the key of the business module needs to be updated regularly or irregularly; the key management module is used to time the key update cycle and send a key update prompt to the key client when the key update cycle expires; the key server is used to update the key. When the communication between the key client and the key server is normal, the key client can obtain the key from the key server and use the key to update the key of the business module; the key management module stores a pre-set key. When the communication between the key client and the key server is abnormal, the key client can obtain the key from the key management module and use the key to update the key of the business module.

[0099] Exemplarily, the key client and the key server may establish a KMIP communication protocol and perform data transmission through a KMIP channel.

[0100] Exemplarily, the key client, the key management module and the service module may be arranged on the BMC of the server.

[0101] It should be noted that the number of servers may be one or more. When the number of servers is multiple, key clients of multiple servers may communicate with one key server or multiple key servers. Figure 1 The description is only made by taking one server as an example, which does not constitute a limitation on the technical solution provided in the embodiment of the present application.

[0102] Figure 2 This is a flowchart of a key update method provided in an embodiment of the present application. The execution subject of this method can be a server or BMC, see Figure 2 In one example, the method may include:

[0103] S201. Detect the link status with the key server, where the key server is used to provide a key for the server.

[0104] Detecting the link status with the key server may include periodically detecting whether the KMIP channel between the server and the key server is normal.

[0105] Exemplarily, detecting the link status with the key server specifically includes the key client detecting the link status with the key server.

[0106] S202: When it is detected that the link state is abnormal and the key update period expires, a first key is determined from a preset local key pool.

[0107] Specifically, the link between the server and the key server is abnormal, that is, the key cannot be obtained through the key server. At this time, the server can use the local key pool to obtain the first key and use the first key to update the key.

[0108] The key pool is pre-established locally on the server and includes multiple keys, which can provide keys for the server.

[0109] Exemplarily, when the link status is detected to be abnormal, when the key update period expires, determining the first key from the preset local key pool specifically includes: when the key client detects that the link status is abnormal, sending a key usage notification to the key management module; the key management module selects the first key from the key pool when the key update period expires based on the key usage notification.

[0110] S203: Update the key of the encrypted business data based on the first key, and update the key update period.

[0111] The business data may be data of a business module of the server.

[0112] In order to improve the security of business data, after the encrypted business data is updated with the first key, the key update cycle may be updated, so that the key of the business data may be updated irregularly.

[0113] In a possible implementation, there are multiple business modules, and keys can be set for each business module, which is conducive to improving the security of business data. Among them, the key update period of different business modules can be different, and the key update period of different business modules can also be the same. Setting different key update periods for different business modules is conducive to further improving the data security of the business modules.

[0114] Exemplarily, updating the key of encrypted business data based on the first key and updating the key update cycle specifically include: the key client updates the key of encrypted business data based on the first key and sends a key update notification to the key management module; the key management module responds to the key update notification and updates the key update cycle of the business module.

[0115] In a possible implementation manner, updating the key update period includes:

[0116] The duration of the key update period is determined based on the random number, and the key update period is updated according to the duration.

[0117] In this embodiment, the key update period can be randomly determined, so that the key of the business data is updated irregularly, which effectively improves the security of the business data.

[0118] In this embodiment, the link status between the server and the key server is periodically detected. There are at least two situations:

[0119] Case 1: The link status between the server and the key server is abnormal.

[0120] In this case, the server obtains the first key from the local key pool and updates the key of the encrypted business data. When the updated key cannot be obtained from the key server, the updated key can still be obtained based on the key pool to achieve reliable encryption of data.

[0121] When the link status between the server and the key server is abnormal for a long time, there may be a high security risk. To protect the encrypted business data, in one example, the method further includes:

[0122] When the link status is abnormal, the update times of the key update cycle are recorded. When the update times exceed the preset threshold, an alarm is issued and the decryption of business data is disabled.

[0123] Specifically, the number of key update cycles during abnormal link status is recorded. If the link status returns to normal, the number of updates is stopped, and the number of key update cycles is recorded again when the link status is abnormal next time. When the number of updates exceeds the preset threshold, an alarm is issued, and the decryption of business data is disabled and waits for manual recovery by staff.

[0124] In a possible implementation, when the link status is abnormal, the number of updates in the key update cycle is recorded, and when the number of updates exceeds a preset threshold, an alarm is issued and decryption of service data is disabled, including:

[0125] The key management module starts recording the number of updates in the key update cycle from the receipt of the key use notification sent by the key management module, and sends a decryption deactivation notification to the key client when the number of updates exceeds a preset threshold;

[0126] The key client sends the decryption deactivation notification to the service module, so that the service module deactivates the key decryption function and waits for manual restoration of the key decryption function.

[0127] In this embodiment, the number of updates of the key update cycle when the link status is abnormal is recorded. When the number of updates exceeds a preset threshold, an alarm is issued and decryption of business data is disabled, thereby ensuring the security of business data in the presence of security risks.

[0128] Case 2: The link status between the server and the key server is normal.

[0129] In this case, the key client can update the key through the key server. In one example, the method further includes:

[0130] When the link status is detected to be normal, when the key update period expires, a key update request is sent to the key server, where the key update request is used to instruct the key server to send the second key to the server;

[0131] The encrypted business data is key updated based on the second key, and the key update period is updated.

[0132] Exemplarily, when the key client detects that the link status is normal, it will not send a key usage notification to the key management module. If the key management module does not receive the key usage notification, it will send a key update prompt to the key client after the key update period expires. In response to the key update prompt, the key client sends a key update request to the key server, updates the key of the encrypted business data based on the second key returned by the key server, and updates the key update period.

[0133] In this embodiment, when the link status between the server and the key service end is normal, a key update request is sent to the key service end when the key update period expires, and the key of the business data is updated through the second key generated by the key service end, thereby realizing automatic key update, which is beneficial to improving the efficiency of key update.

[0134] In the key update method provided in the embodiment of the present application, if a link abnormality is detected between the server and the key service end, when the key update period expires, a first key is selected from the local key pool, the business data is keyed according to the first key, and the key update period is updated. Thus, when the communication between the server and the key service end is abnormal, the key can be obtained based on the key pool, the business data key can be reliably updated, and the security of the business data can be effectively improved by updating the key update period.

[0135] Figure 3 Another key update method provided in the embodiment of the present application. The execution subject of the method is the key client. Figure 3 As shown, the method may include:

[0136] S301: Detect the link status between the key client and the key server.

[0137] S302: When it is detected that the link status is abnormal, a key usage notification is sent to the key management module, so that the key management module selects a first key from the key pool when the key update period expires.

[0138] Exemplarily, the key client periodically detects the link status between the key client and the key server, which may include periodically detecting whether the KMIP channel with the key server is normal.

[0139] Specifically, the link between the key client and the key server is abnormal, that is, the key update key cannot be generated through the key server. At this time, the key client can send a key usage notification to the key management module, so that the key management module selects the first key from the key pool when the key update period of the business module expires, so that when the key client and the key server communicate abnormally, the key can be obtained based on the key pool.

[0140] The key pool includes a plurality of pre-set keys to be used, and the key pool may be located in a key management module.

[0141] It should be noted that before performing a key update based on a key pool, a key pool needs to be established in advance. In one example, the method further includes:

[0142] Receive a key generation request sent by the key management module, and send the key generation request to the key server, so that the key server generates a key according to the key generation request;

[0143] The third key is received from the key service end, and the third key is sent to the key management module, so that the key management module adds the third key to the key pool.

[0144] Specifically, the key client initializes the key management module, receives the key generation request sent by the key management module, and sends the key generation request to the key server, so that the key server generates a key according to the key generation request. The key client receives the third key returned by the key server, and sends the third key to the key management module, so that the key management module adds the third key to the key pool.

[0145] Exemplarily, the key client may need to receive the third key returned by the key server multiple times.

[0146] In this example, the key client forwards the key generation request sent by the key management module to the key server, and forwards the key generated by the key client to the key management module, so that the key management module establishes a key pool according to the third key generated by the key server.

[0147] S303: Update the key of the encrypted business data based on the first key, and send a key update notification to the key management module, so that the key management module updates the key update period according to the key update notification.

[0148] Specifically, the key client can receive the first key selected by the key management module from the key pool, update the key of the business module to the first key, thereby updating the key of the encrypted business data; and send a key update notification to the key management module so that the key management module updates the key update period of the business module, thereby realizing irregular updates of the key.

[0149] In this example, when the key client detects that the link with the key server is abnormal, it sends a key usage notification to the key management module, so that the key management module selects a first key from the key pool when the key update period expires, and updates the key of the business module according to the first key. A key update notification is sent to the key management module, so that the key management module updates the key update period according to the key update notification. In this way, when the communication between the key client and the key server is abnormal, the updated key can be obtained based on the key pool, the key of the business module can be updated, and the data security of the business module can be effectively improved by means of irregular key updates.

[0150] When the link status between the key client and the key server is abnormal for a long time, there may be a high security risk. To protect the encrypted data of the business module, in one example, the method further includes:

[0151] Receive a decryption deactivation notification, which is sent by the key management module after receiving a key usage notification and when the number of updates in the key update cycle of the recorded business module exceeds a preset threshold; send the decryption deactivation notification to the business module to enable the business module to deactivate the key decryption function.

[0152] In this example, the key client receives the decryption deactivation notification sent by the key management module, and sends the decryption deactivation notification to the business module, so that the business module deactivates the key decryption function, thereby ensuring the security of customer data in the event of security risks.

[0153] Furthermore, after the link status returns to normal, the key client can obtain the updated key through the key server. In one example, the method further includes:

[0154] When it is detected that the link is restored to normal after an abnormality, a key deactivation notification is sent to the key management module, so that the key management module sends a key update prompt to the key client when the key update period expires.

[0155] In response to the key update prompt, a key update request is sent to the key server; and, a second key is received from the key server, and the encrypted business data is updated based on the second key.

[0156] Specifically, when the key client detects that the link status with the key server has returned to normal from abnormality, it sends a key deactivation notification to the key management module, so that the key management module sends a key update prompt to the key client when the key update period of the business module expires. That is to say, by sending a key deactivation notification to the key management module, the key client only uses the key management module to time the key update period and stops using the key obtained from the key pool by the key management module for key update. According to the key update prompt, when the key update period expires, the key client sends a key update request to the key server, so that the key server generates and returns a second key to the key client, and updates the key of the business module to the second key.

[0157] It is understandable that after the key client uses the first key or the second key to update the key of the encrypted business data, it will send a key update notification to the key management module, so that the key management module responds to the key update notification and updates the key update cycle.

[0158] In this example, if the key client detects that the link has returned to normal, it sends a key deactivation notification to the key management module, so that the key management module stops obtaining the updated key from the key pool and only provides a key update prompt; in response to the received key update prompt, a key update request is sent to the key server. According to the key of the second key update service module sent by the key server, after the link returns to normal, the updated key in the key pool can be stopped from being used, and the key can be updated through the key server, which is beneficial to improving data security.

[0159] S304: When it is detected that the link status is normal, in response to the key update prompt sent by the key management module when the key update period expires, a key update request is sent to the key server.

[0160] Specifically, if the key client detects that the link with the key server is normal, after receiving the key update prompt sent by the key management module when the key update period expires, it sends a key update request to the key server, so that the key server generates a second key according to the key update request and returns it to the key client. The key client receives the second key and updates the key of the service module according to the second key.

[0161] In this example, when the link status between the key client and the key server is normal, the key client prompts the key update period to expire through the key management module, obtains the second key through the key server, and uses the second key to update the key of the business module, thereby realizing automatic key update, which is beneficial to improving the efficiency of key update.

[0162] In the key update method provided in this embodiment, if a link abnormality is detected between the server and the key service end, when the key update period expires, a first key is selected from the local key pool, the business data is keyed according to the first key, and the key update period is updated. Thus, when the communication between the server and the key service end is abnormal, the key can be obtained based on the key pool, the business data key can be reliably updated, and the security of the business data can be effectively improved by updating the key update period.

[0163] Figure 4 A flowchart of another key update method provided in an embodiment of the present application is shown below. Figure 1 The key management module shown is shown in Figure 4 In one example, the method may include:

[0164] S401, receiving a key usage notification sent by a key client, and when a key update period expires, selecting a first key from a key pool and sending it to the key client, so that the key client updates the key of the encrypted business data according to the first key.

[0165] Specifically, the key management module receives the key usage notification sent by the key client when the link with the key server is abnormal, and selects the updated key from the key pool when the key update period expires, so that when the key client and the key server communicate abnormally, the updated key of the business module can be obtained based on the key pool.

[0166] S402: Receive a key update notification sent by the key client, and update a key update period according to the key update notification.

[0167] Specifically, the key management module receives a key update notification sent by the key client after completing the key update, and updates the key update period of the service module according to the key update notification.

[0168] There may be multiple business modules, and different business modules may correspond to different key update periods. The key management module may monitor and update the key update period of each business module respectively.

[0169] Exemplarily, the key management module may determine the duration of the key update period based on the random number, and update the key update period according to the duration. For example, the key management module selects a random number from 1 to 100 days as the key update period of the service module.

[0170] In this example, the key management module receives a key usage notification sent by the key client when it detects a link anomaly with the key server. When the key update period of the business module expires, the key management module selects a first key from the key pool so that the key client updates the key of the business module according to the first key, and updates the key update period according to the key update notification sent by the key management module after the key update. Therefore, when the key client communicates abnormally with the key server, it is possible to obtain an updated key based on the key pool and update the key update period, thereby effectively improving the data security of the business module.

[0171] In one example, the method further includes:

[0172] If the key usage notification sent by the key client is not received, a key update prompt is sent to the key client after the key update period expires, so that the key client sends a key update request to the key server.

[0173] In this example, if the link between the key client and the key server is normal, the key management module will not receive the key usage notification. At this time, the key management module is only used to prompt the key client to update the key when the key update period expires.

[0174] When the link status between the key client and the key server is abnormal for a long time, there may be a high security risk. To protect the encrypted data of the business module, in one example, the method further includes:

[0175] After receiving the key usage notification, the update times of the key update cycle are recorded. When the update times exceed the preset threshold, an alarm is issued, and a decryption deactivation notification is sent to the business module through the key client to enable the business module to deactivate the key decryption function.

[0176] Specifically, after the key management module receives the key usage notification sent by the key client, it records the number of updates in the key update cycle. When the number of updates exceeds the preset threshold, it sends a decryption deactivation notification to the business module through the key client, so that the business module deactivates the key decryption function when the environmental risk is high and waits for manual restoration of the key decryption function.

[0177] In this example, after receiving the key usage notification, the key management module records the number of updates in the key update cycle. When the number of updates exceeds the preset threshold, the key client sends a decryption deactivation notification to the business module, so that the business module deactivates the key decryption function when the environmental risk is high, thereby ensuring the security of customer data in the presence of security risks.

[0178] It should be noted that before performing a key update based on a key pool, a key pool needs to be established in advance. In one example, the method further includes:

[0179] Sending a key generation request to the key client, so that the key client sends the key generation request to the key server;

[0180] The third key returned by the key client is received, and the third key is added to the key pool.

[0181] Specifically, after the key management module is initialized, it sends a key generation request to the key server through the key client, so that the key server generates a key, receives the third key returned by the key server through the key client, and adds the third key to the key pool, thereby establishing a key pool.

[0182] Exemplarily, the key server may need to send the third key in multiple times. After receiving the key returned by the key server through the key client, the key management module adds the key to the key pool and counts the current number of keys in the key pool. If the current number of keys in the key pool is less than the number of keys in the key generation request, the current number of keys in the key pool is sent to the key server through the key client, so that the key server generates the remaining keys required for the key pool.

[0183] In the key update method provided in the embodiment of the present application, if a link abnormality is detected between the server and the key service end, when the key update period expires, a first key is selected from the local key pool, the business data is keyed according to the first key, and the key update period is updated. Thus, when the communication between the server and the key service end is abnormal, the key can be obtained based on the key pool, the business data key can be reliably updated, and the security of the business data can be effectively improved by updating the key update period.

[0184] Figure 5 A flowchart of another key update method provided in an embodiment of the present application. The execution subject of the method is a key update system. The key update system includes a computing device and a server; the computing device is equipped with a key server, and the server is equipped with a key client, a key management module and a business module. Figure 5 As shown, in one example, the method may include:

[0185] S501, the key client periodically detects the link status between the key client and the key server.

[0186] Exemplarily, the key client periodically detects the link status between the key client and the key server, which may include periodically detecting whether the KMIP channel with the key server is normal.

[0187] S502: If the key client detects that the link is abnormal, it sends a key usage notification to the key management module.

[0188] Specifically, the link between the key client and the key server is abnormal, that is, the key server cannot generate an update key. At this time, the key client can send a key usage notification to the key management module.

[0189] S503: When the update period expires, the key management module selects a first key from the key pool and sends it to the key client.

[0190] Exemplarily, the key management module determines whether the key update period has expired, which may include: determining whether the time from the last key update notification received to the current time is less than the key update period.

[0191] S504: The key client receives the first key and updates the key of the service module according to the first key.

[0192] S505: The key client sends a key update notification to the key management module.

[0193] S506: The key management module updates the key update period according to the key update notification.

[0194] S507: After receiving the key usage notification, the key management module records the number of updates in the key update cycle.

[0195] Specifically, the key management module records the number of updates in the key update cycle starting from the receipt of the key usage notification sent by the key client this time.

[0196] S508: When the number of updates exceeds a preset threshold, the key management module sends a decryption deactivation notification to the key client.

[0197] S509: The key client sends a decryption deactivation notification to the business module.

[0198] S510, the business module disables the key decryption function.

[0199] Specifically, the business module disables the key decryption function according to the decryption deactivation notification, and waits for the administrator to manually restore the key decryption function.

[0200] In this example, after receiving the key usage notification, when the number of updates in the key update cycle of the business module exceeds the preset threshold, the key management module sends a decryption deactivation notification to the key client. The key client sends the decryption deactivation notification to the business module, and the business module deactivates the key decryption function, thereby ensuring the security of customer data in the presence of security risks.

[0201] Furthermore, after the link status returns to normal, the key client can obtain the updated key through the key server. In one example, the method further includes:

[0202] S511, if the key client detects that the link returns to normal from an abnormality, it sends a key deactivation notification to the key management module.

[0203] S512: When the key update period of the service module expires, the key management module sends a key update prompt to the key client.

[0204] S513: The key client sends a key update request to the key server.

[0205] S514: The key server sends the second key to the key client.

[0206] S515: The key client updates the key of the service module according to the second key.

[0207] S516: If the key management module does not receive the key usage notification sent by the key client, it sends a key update prompt to the key client after the key update period expires.

[0208] Specifically, if the key management module does not receive the key usage notification sent by the key client, it will send a key update prompt to the key client after the key update period of the business module expires; wherein, when the key client detects that the link remains normal, it will not send a key usage notification to the key management module.

[0209] After receiving the key update prompt, the key client sends a key update request to the key server. The key server sends the second key to the key client according to the key update request. The key client updates the key of the service module according to the second key and sends a key update notification to the key management module.

[0210] It should be noted that the specific implementation of steps S501-S516 is as described above and will not be repeated here.

[0211] It is understandable that steps S501-S516 may be repeatedly performed. The server may periodically detect the communication status with the computing device to determine the key update method.

[0212] In the key update method provided in the embodiment of the present application, if a link abnormality is detected between the server and the key service end, when the key update period expires, a first key is selected from the local key pool, the business data is keyed according to the first key, and the key update period is updated. Thus, when the communication between the server and the key service end is abnormal, the key can be obtained based on the key pool, the business data key can be reliably updated, and the security of the business data can be effectively improved by updating the key update period.

[0213] The embodiment of the present application also provides a server, which can be Figure 1 The server shown in FIG. The server includes: a key client and a key management module; wherein:

[0214] The key client is used to detect the link status with the key server, and the key server is used to provide a key for the server;

[0215] The key management module is used to determine the first key from a preset local key pool when the link status is abnormal and the key update period expires;

[0216] The key client is further used to update the key of the encrypted business data based on the first key;

[0217] The key management module is also used to update the key update period.

[0218] In a possible implementation, the key client is further used to:

[0219] When detecting that the link state is normal, when the key update period expires, sending a key update request to the key service end, wherein the key update request is used to instruct the key service end to send a second key to the server;

[0220] The encrypted service data is key updated based on the second key.

[0221] In a possible implementation, the key management module is further used to:

[0222] When the link status is abnormal, the update times of the key update cycle are recorded, and when the update times exceed a preset threshold, an alarm is issued;

[0223] The key client is also used to disable decryption of the business data.

[0224] In a possible implementation, the key management module is specifically used to:

[0225] The duration of the key update period is determined based on a random number, and the key update period is updated according to the duration.

[0226] In a possible implementation, the key client is specifically used to:

[0227] When the key client detects that the link status is abnormal, it sends a key usage notification to the key management module;

[0228] The key management module is further configured to select a first key from the key pool according to the key usage notification when the key update period expires.

[0229] In a possible implementation, the key client is further specifically used for:

[0230] Based on the first key, the encrypted business data is keyed up, and a key update notification is sent to the key management module;

[0231] The key management module is further used to respond to the key update notification and update the key update period.

[0232] In a possible implementation, the key client is further used to:

[0233] When detecting that the link status returns to normal from abnormality, sending a key deactivation notification to the key management module;

[0234] The key management module is further configured to, according to the key update prompt, send a key update prompt to the key client when the key update period expires;

[0235] The key client is further configured to, in response to the key update prompt, send a key update request to the key server.

[0236] In a possible implementation, the key management module is further used to:

[0237] If the key usage notification is not received, a key update prompt is sent to the key client after the key update period expires.

[0238] The server provided in this embodiment can be used to execute the key updating method shown in the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.

[0239] The embodiment of the present application also provides a key update system, including: a computing device and a server; the computing device is equipped with a key server, and the server is equipped with a key client, a key management module and a business module; wherein,

[0240] The key server is used to provide a key for the server;

[0241] The key client is used to detect the link status with the key server;

[0242] The key management module is used to determine the first key from a preset local key pool when the link status is abnormal and the key update period expires;

[0243] The key client is further used to update the key of the encrypted business data based on the first key;

[0244] The key management module is also used to update the key update period.

[0245] In a possible implementation, the key client is further used to:

[0246] When detecting that the link state is normal, when the key update period expires, sending a key update request to the key service end, wherein the key update request is used to instruct the key service end to send a second key to the server;

[0247] The encrypted service data is key updated based on the second key.

[0248] In a possible implementation, the key management module is further used to:

[0249] When the link status is abnormal, the update times of the key update cycle are recorded, and when the update times exceed a preset threshold, an alarm is issued;

[0250] The key client is also used to disable decryption of the business data.

[0251] In a possible implementation, the key management module is specifically used to:

[0252] The duration of the key update period is determined based on a random number, and the key update period is updated according to the duration.

[0253] In a possible implementation, the key client is specifically used to:

[0254] When the key client detects that the link status is abnormal, it sends a key usage notification to the key management module;

[0255] The key management module is further configured to select a first key from the key pool according to the key usage notification when the key update period expires.

[0256] In a possible implementation, the key client is further specifically used for:

[0257] Based on the first key, the encrypted business data is keyed up, and a key update notification is sent to the key management module;

[0258] The key management module is further used to respond to the key update notification and update the key update period.

[0259] In a possible implementation, the key client is further used to:

[0260] When detecting that the link status returns to normal from abnormality, sending a key deactivation notification to the key management module;

[0261] The key management module is further configured to, according to the key update prompt, send a key update prompt to the key client when the key update period expires;

[0262] The key client is further configured to, in response to the key update prompt, send a key update request to the key server.

[0263] In a possible implementation, the key management module is further used to:

[0264] If the key usage notification is not received, a key update prompt is sent to the key client after the key update period expires.

[0265] The key update system provided in this embodiment can be used to execute the key update method shown in the above method embodiment. Its implementation principle and technical effect are similar and will not be described in detail here.

[0266] The key update system may be provided with a processor. The embodiment of the present application also provides a computer-readable storage medium, in which a computer-executable instruction is stored. When the computer-executable instruction is executed by the processor, it can be used to execute the key update method shown in the above method embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0267] An embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.

[0268] All or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviated: ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.

[0269] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable terminal device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0270] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0271] These computer program instructions can also be loaded onto a computer or other programmable terminal device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0272] Obviously, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if these modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the embodiments of the present application are also intended to include these modifications and variations.

[0273] In the embodiments of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the element. The term "or" and its variations may refer to "and / or". In the embodiments of the present application, the terms "first", "second", etc. are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. In the embodiments of the present application, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, A and / or B, which may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0274] After considering the invention disclosed in the specification and practice, those skilled in the art will easily think of other embodiments of the present application. The embodiments of the present application are intended to cover any variation, use or adaptive change of the embodiments of the present application, which follows the general principles of the embodiments of the present application and includes common knowledge or conventional technical means in the technical field that are not disclosed in the embodiments of the present application.

[0275] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A key updating method, characterized in that: Applied to a server, the method comprises: Detecting a link status with a key server, wherein the key server is used to provide a key for the server; When the link state is detected to be abnormal, when the key update period expires, determining a first key from a preset local key pool; The encrypted business data is key updated based on the first key, and the key update period is updated.

2. The method according to claim 1, characterized in that The method further comprises: When detecting that the link state is normal, when the key update period expires, sending a key update request to the key service end, wherein the key update request is used to instruct the key service end to send a second key to the server; The encrypted service data is key updated based on the second key, and the key update period is updated.

3. The method according to claim 1, characterized in that The method further comprises: When the link status is abnormal, the update times of the key update cycle are recorded. When the update times exceed a preset threshold, an alarm is issued and decryption of the business data is disabled.

4. The method according to any one of claims 1 to 3, characterized in that: The updating of the key update period includes: The duration of the key update period is determined based on a random number, and the key update period is updated according to the duration.

5. The method according to claim 2, characterized in that: The server includes a key client and a key management module, and when the link state is detected to be abnormal, when the key update period expires, a first key is determined from a preset local key pool, including: When the key client detects that the link status is abnormal, it sends a key usage notification to the key management module; The key management module selects a first key from the key pool according to the key usage notification when the key update period expires.

6. The method according to claim 5, characterized in that The step of updating the key of the encrypted service data based on the first key and updating the key update cycle includes: The key client updates the key of the encrypted service data based on the first key, and sends a key update notification to the key management module; The key management module updates the key update period in response to the key update notification.

7. The method according to claim 5, characterized in that The method further comprises: When the key client detects that the link status has returned to normal from abnormality, the key client sends a key deactivation notification to the key management module; The key management module sends a key update prompt to the key client according to the key update prompt when the key update period expires; The key client responds to the key update prompt and sends a key update request to the key server.

8. The method according to claim 7, characterized in that The method further comprises: If the key management module does not receive the key usage notification, the key management module sends a key update prompt to the key client after the key update period expires.

9. A server, characterized in that: include: Key client, key management module; wherein, The key client is used to detect the link status with the key server, and the key server is used to provide a key for the server; The key management module is used to determine the first key from a preset local key pool when the link status is abnormal and the key update period expires; The key client is further used to update the key of the encrypted business data based on the first key; The key management module is also used to update the key update period.

10. A key update system, characterized in that: include: A computing device and a server; the computing device is equipped with a key server, and the server is equipped with a key client and a key management module; wherein, The key server is used to provide a key for the server; The key client is used to detect the link status with the key server; The key management module is used to determine the first key from a preset local key pool when the link status is abnormal and the key update period expires; The key client is further used to update the key of the encrypted business data based on the first key and update the key update period.