Certificate management method and device for smart meter, equipment and medium
Patent Information
- Application Number
- CN202611135078.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-10-27
AI Technical Summary
[0005]为了克服上述缺陷,提出了本申请,以提供解决或至少部分地解决现有技术中,在大规模设备与系统场景下,极易因人为失误导致证书错误,进而造成智能电表与系统通信中断的技术问题
[0040]本申请提供一种用于智能电表的证书管理方法、装置、设备及介质,该方法具体为:获取证书更新任务;根据证书更新任务,得到更新证书;将更新证书发送至更新证书对应的设备进行测试,得到测试结果;确定测试结果为测试通过,则对设备中的证书进行更新,实现提高智能电表与系统之间业务的稳定性。
Smart Images

Figure CN122994030A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet of Things (IoT) technology, specifically providing a certificate management method, apparatus, device, and medium for smart meters. Background Technology
[0002] With the deepening of digital transformation, technologies such as the Internet of Things, cloud computing, big data, and the Industrial Internet are widely penetrating various key fields, and the interconnection of devices and systems has become the norm. Against this backdrop, identity authentication, data encryption, and information tamper-proofing, as core lines of defense for cybersecurity, are becoming increasingly important. Keys and digital certificates, as the core carriers for achieving these security requirements, have become the infrastructure for ensuring cyberspace security.
[0003] Certificates have a fixed validity period and need to be updated regularly to ensure security. However, the existing certificate update process mostly relies on manual operation. Maintenance personnel need to manually contact each device and system, initiate update requests, download new certificates, and replace old certificates. This is not only inefficient, but also prone to human error (such as incorrect certificate replacement or missed updates) in large-scale device and system scenarios, which can lead to certificate errors and technical problems such as interruption of smart meter and system services.
[0004] Accordingly, there is a need in the field for a new certificate management method for smart meters to address the aforementioned issues. Summary of the Invention
[0005] In order to overcome the above-mentioned defects, this application is made to provide a solution or at least a partial solution to the technical problem in the prior art that, in large-scale equipment and system scenarios, certificate errors are easily caused by human error, which in turn leads to the interruption of communication between smart meters and the system.
[0006] In a first aspect, this application provides a certificate management method for smart meters, comprising:
[0007] Obtain certificate update task;
[0008] Based on the certificate update task, the updated certificate is obtained;
[0009] The update certificate is sent to the device corresponding to the update certificate for testing, and the test results are obtained.
[0010] If the test result is determined to be a pass, the certificate in the device will be updated.
[0011] In one technical solution of the certificate management method for smart meters described above, the certificate update task includes a certificate update time, and obtaining the updated certificate based on the certificate update task includes:
[0012] Get the current time;
[0013] If the current time is determined to be the certificate update time, a certificate update request is sent to the credential management system to obtain the updated certificate from the credential management system based on the certificate update request.
[0014] In one technical solution of the above-mentioned certificate management method for smart meters, after sending the updated certificate to the device corresponding to the updated certificate for testing and obtaining the test results, the method further includes:
[0015] The test result was determined to be a failure.
[0016] According to the certificate update task, obtain the updated certificate again.
[0017] In one technical solution of the certificate management method for smart meters described above, the certificate update task includes a delayed retry time. After sending the updated certificate to the device corresponding to the updated certificate for testing, the method further includes:
[0018] It is confirmed that no test results have been received within the preset time.
[0019] Get the current time;
[0020] If the current time reaches the delay retry time, the updated certificate is sent to the device corresponding to the updated certificate.
[0021] In one technical solution of the certificate management method for smart meters described above, the certificate update task includes an update scope; therefore, updating the certificate in the device includes:
[0022] Obtain the certificate version number of the device within the update scope;
[0023] The version number of the updated certificate is compared with the certificate version number of the devices in the update range to obtain the devices whose certificate version number is different from that of the updated certificate;
[0024] Connect to the device whose certificate is to be updated, and after confirming a successful connection, send the updated certificate to the device whose certificate is to be updated.
[0025] In one technical solution of the certificate management method for smart meters described above, the certificate update task includes a certificate synchronization identifier. After determining that the test result is a successful test and updating the certificate in the device, the method further includes:
[0026] The certificate synchronization identifier is determined to be synchronized;
[0027] A certificate synchronization instruction is sent to the device, so that the device can send the updated certificate to other devices communicating with the device according to the certificate synchronization instruction.
[0028] In one technical solution of the above-mentioned certificate management method for smart meters, the method further includes:
[0029] Retrieve the certificate number selected by the user in the certificate management interface;
[0030] Based on the certificate number, obtain the certificate information corresponding to the certificate number, and display the certificate information.
[0031] Secondly, this application provides a certificate management device, comprising:
[0032] The acquisition module is used to acquire certificate update tasks;
[0033] The update module is used to obtain the updated certificate based on the certificate update task;
[0034] The testing module is used to send the update certificate to the device corresponding to the update certificate for testing and obtain the test results;
[0035] The update module is also used to update the certificate in the device if the test result is determined to be a pass.
[0036] Thirdly, this application provides a certificate management device, including at least one processor and a memory; wherein,
[0037] The memory stores computer-executed instructions;
[0038] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method described in any one of the first aspects.
[0039] Fourthly, this application provides a computer-readable storage medium storing a plurality of program codes adapted to be loaded and run by a processor to perform the method described in any one of the first aspects.
[0040] This application provides a certificate management method, apparatus, device, and medium for smart meters. The method specifically includes: obtaining a certificate update task; obtaining an update certificate based on the certificate update task; sending the update certificate to the device corresponding to the update certificate for testing and obtaining the test result; and updating the certificate in the device if the test result is deemed successful, thereby improving the stability of business between the smart meter and the system. Attached Figure Description
[0041] The disclosure of this application will become more readily understood with reference to the accompanying drawings. It will be readily understood by those skilled in the art that these drawings are for illustrative purposes only and are not intended to limit the scope of protection of this application. Furthermore, similar numbers in the drawings are used to denote similar components, wherein:
[0042] Figure 1 This is a flowchart illustrating a first embodiment of a certificate management method for smart meters provided in this application.
[0043] Figure 2 This is a flowchart illustrating a second embodiment of a certificate management method for smart meters provided in this application.
[0044] Figure 3 This is a flowchart illustrating a third embodiment of a certificate management method for smart meters provided in this application.
[0045] Figure 4 This is a flowchart illustrating a fourth embodiment of a certificate management method for smart meters provided in this application.
[0046] Figure 5 This is a flowchart illustrating a fifth embodiment of a certificate management method for smart meters provided in this application.
[0047] Figure 6 This is a flowchart illustrating a sixth embodiment of a certificate management method for smart meters provided in this application.
[0048] Figure 7 This is a flowchart illustrating a seventh embodiment of a certificate management method for smart meters provided in this application.
[0049] Figure 8 This is a schematic diagram of the structure of a certificate management device provided in an embodiment of this application;
[0050] Figure 9 This is a schematic diagram of the structure of a certificate management device provided in an embodiment of this application.
[0051] List of reference numerals in the attached diagram:
[0052] 11: Acquisition module; 12: Update module; 13: Test module; 21: Processor; 22: Memory. Detailed Implementation
[0053] Some embodiments of this application are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are merely illustrative of the technical principles of this application and are not intended to limit the scope of protection of this application.
[0054] In the description of this application, "module" and "processor" can include hardware, software, or a combination of both. A module can include hardware circuitry, various suitable sensors, communication ports, memory, and can also include software components, such as program code, or a combination of software and hardware. A processor can be a central processing unit, microprocessor, image processor, digital signal processor, or any other suitable processor. The processor has data and / or signal processing capabilities. The processor can be implemented in software, in hardware, or a combination of both. Non-transitory computer-readable storage media includes any suitable medium capable of storing program code, such as magnetic disks, hard disks, optical disks, flash memory, read-only memory, random access memory, etc. The term "A and / or B" means all possible combinations of A and B, such as only A, only B, or A and B. The terms "at least one A or B" or "at least one of A and B" have a similar meaning to "A and / or B" and can include only A, only B, or A and B. The singular terms "a" or "this" can also include plural forms.
[0055] Key certificate management often adopts a decentralized management model, where each business system or department independently deploys certificate management tools and is responsible for key generation, certificate application, issuance, and storage. However, this approach has the following problems:
[0056] First, business needs may require access to digital certificates from different vendors and at different levels. The certificate formats, encryption algorithms, issuance processes, and operation and maintenance standards of different digital certificates vary, resulting in a fragmented certificate trust system that makes it difficult to achieve unified trust verification and risk control.
[0057] Secondly, the lack of unified control over the application, issuance, storage, distribution, revocation, and archiving of certificates leads to opaque certificate information and difficulties in tracing their status. Maintenance personnel struggle to accurately grasp the core information of all certificates (such as validity period, bound device / system, encryption algorithm, and usage scenario), easily resulting in issues like expired certificates not being updated, duplicate applications, and untimely revocation, which in turn cause failures such as login failures in business systems and data transmission encryption failures.
[0058] Third, certificates have a fixed validity period and need to be updated regularly to ensure security. However, the existing update process relies heavily on manual operation, requiring maintenance personnel to connect with each device and system, manually initiate update requests, download new certificates, and replace old certificates. This is not only inefficient, but also prone to business interruption due to human error (such as incorrect certificate replacement or missed updates) in large-scale device and system scenarios.
[0059] Based on this, in order to solve the above-mentioned technical problems, the technical concept of this application is to provide a new certificate management method for smart meters, so as to improve the stability of business between smart meters and the system.
[0060] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0061] Figure 1 This is a flowchart illustrating an embodiment of a certificate management method for smart meters provided in this application. Figure 1 As shown, specifically, the method includes:
[0062] Step S101: Obtain the certificate update task.
[0063] In this embodiment, before updating the certificate, a certificate update task needs to be created in the system's certificate update task creation interface, and then the created certificate update task is saved in the database.
[0064] In this embodiment, when creating a certificate update task, first click the "Create Task" button on the certificate update creation interface. Then, in the pop-up task creation window, fill in the task name, select the device category (system, concentrator, and meter), encryption algorithm, hash signature algorithm, certificate validity period, task execution cycle, certificate synchronization, number of retries, delayed retry time, and update range. The encryption algorithm and hash signature algorithm have default values, and other encoding items can be added as needed. The default value for certificate validity period is unlimited, with a selectable range of 1 to 10 years. The task execution cycle can be selected as once or a fixed cycle. Certificate synchronization can be selected as confirm, cancel, or update only. The number of retries can be selected from 0 to 3, and the delayed retry time defaults to 1 minute, which can be adjusted according to actual conditions. After setting all the above items, click the "Save" button to save the task in the database. On the certificate update task page, you can see the created certificate update task and modify the parameters in the certificate update task.
[0065] Step S102: Obtain the updated certificate based on the certificate update task.
[0066] In this embodiment, when the current conditions meet the task execution cycle of the certificate update task, or when the certificate update task is triggered by the operation and maintenance personnel, the key management system sends certificate request data to the credential management system, and the credential management system sends the updated certificate to the key management system according to the certificate request data.
[0067] Step S103: Send the updated certificate to the device corresponding to the updated certificate for testing and obtain the test results.
[0068] In this embodiment, the updated certificate is sent to the corresponding device, which verifies the certificate and then sends the test result to the key management system.
[0069] Step S104: If the test result is confirmed to be a pass, then update the certificate in the device.
[0070] In this embodiment, if the test result is a pass, the old certificate in the device is replaced with the updated certificate.
[0071] In this embodiment, a certificate update task is obtained; an update certificate is obtained based on the certificate update task; the update certificate is sent to the device corresponding to the update certificate for testing, and a test result is obtained; if the test result is passed, the certificate in the device is updated. Compared with the prior art, in large-scale device and system scenarios, certificate errors are easily caused by human error, which can lead to communication interruption between smart meters and the system. This application obtains a created certificate update task, and after the task is executed, obtains the corresponding update certificate based on the certificate update task, and then sends the update certificate to the device corresponding to the update certificate for testing, obtains a test result, and updates the certificate in the device when the test result is passed. This can automatically and accurately update the certificate, thereby improving the stability of business between smart meters and the system.
[0072] Figure 2 This is a flowchart illustrating a second embodiment of a certificate management method for smart meters provided in this application. Based on the above embodiments, as... Figure 2 As shown, specifically, the certificate update task includes the certificate update time, so the implementation of step S102 includes:
[0073] Step S201: Get the current time.
[0074] In this embodiment, the system obtains the current time in the format of year, month, day, hour, minute, and second from the Internet.
[0075] Step S202: If the current time is determined to be the certificate update time, a certificate update request is sent to the credential management system to obtain the updated certificate from the credential management system based on the certificate update request.
[0076] In this embodiment, the certificate update time can be determined according to the execution cycle in the certificate update task. If the execution cycle is once, the current time is the certificate update time. If the execution cycle is set to days, the timer starts when the task is set, and the time after the set number of days is the certificate update time.
[0077] In this embodiment, if the current time is determined to be the certificate update time, the key management system sends a certificate update request to the credential management system. After receiving the certificate update request, the credential management system generates a key and an update certificate, and sends the key and the update certificate to the key management system.
[0078] In this embodiment, the current time is obtained; if the current time is determined to be the certificate update time, a certificate update request is sent to the credential management system to obtain the updated certificate from the credential management system based on the certificate update request. By updating the certificate on a timed basis, the certificate update is automatically triggered, thereby ensuring the security and efficiency of the certificate update process.
[0079] Figure 3 This is a flowchart illustrating a third embodiment of a certificate management method for smart meters provided in this application. Based on the above embodiments, as... Figure 3 As shown, specifically, after step S103, the method further includes:
[0080] Step S301: Determine the test result as "test failed".
[0081] In this embodiment, if the device cannot communicate with other devices using the updated certificate, the test result is determined to be a test failure.
[0082] Step S302: Obtain the updated certificate again according to the certificate update task.
[0083] In this embodiment, if the test fails, the key management system resends the certificate update task to the credential management system. Then, the credential management system regenerates the update certificate according to the certificate update task and sends the regenerated update certificate to the key management system.
[0084] In this embodiment, if the test fails, the previously available certificate can be sent to the device to ensure that the device can communicate normally with the system.
[0085] In this embodiment, the test result is determined to be a failure; according to the certificate update task, the updated certificate is re-obtained. By repeatedly applying for the certificate, the correct certificate can be obtained when the certificate is incorrect, thus avoiding security vulnerabilities and ensuring the normal operation of business between the system and the device.
[0086] Figure 4 This is a flowchart illustrating a fourth embodiment of a certificate management method for smart meters provided in this application. Based on the above embodiments, as... Figure 4 As shown, specifically, the certificate update task includes a delay retry time. Therefore, after sending the updated certificate to the device corresponding to the updated certificate for testing in step S103, the method further includes:
[0087] Step S401: Determine that no test results are received within the preset time.
[0088] In this embodiment, if the test results from the device are not received for a long time due to communication or parameter configuration reasons, the system will not wait for the test results from the device for an extended period of time. Instead, a preset time will be set, and if the test results are not received within the preset time, the system will take appropriate action.
[0089] In this embodiment, for example, the preset time is 30 seconds.
[0090] Step S402: Get the current time.
[0091] In this embodiment, the key management system obtains the current time from the Internet, wherein the current time is in the format of year, month, day, hour, minute, and second.
[0092] Step S403: If the current time reaches the delay retry time, then send the updated certificate to the device corresponding to the updated certificate.
[0093] In this embodiment, when creating a certificate update task, a delayed retry time interval is set. This delayed retry time interval is the time interval at which the key management system sends the update certificate to the device. After the nth certificate transmission, the transmission time is recorded, and then the delayed retry time is added to this time to obtain the delayed retry time for the (n+1)th certificate transmission. When the current time reaches the delayed retry time, the update certificate is sent to the device corresponding to the update certificate.
[0094] In this embodiment, if no test result is received within a preset time, the current time is obtained; if the current time reaches the delay retry time, the updated certificate is sent to the device corresponding to the updated certificate. The updated certificate can be resent to the device multiple times to ensure that the updated certificate can be successfully sent to the device, thereby improving the success rate of certificate sending.
[0095] Figure 5 This is a flowchart illustrating a fifth embodiment of a certificate management method for smart meters provided in this application. Based on the above embodiments, as... Figure 5 As shown, specifically, the certificate update task includes an update scope. Therefore, in step S104, the certificate in the device is updated, including:
[0096] Step S501: Obtain the certificate version number of the device in the update scope.
[0097] In this embodiment, when creating a certificate update task, the update scope can be set, which can be an organization, power line, transformer area, and data collection point. Under each organization, power line, transformer area, and data collection point, a concentrator and a meter are bound, and the concentrator and meter store a certificate with a version number.
[0098] Step S502: Compare the version number of the updated certificate with the certificate version number of the devices in the update range to obtain the certificate devices to be updated that have different version numbers from the updated certificate.
[0099] In this embodiment, the version number of the updated certificate is compared with the version number of the certificate of the device within the update range. If the comparison results are different, the device is the one whose certificate needs to be updated.
[0100] Step S503: Connect to the device whose certificate needs to be updated, and after confirming a successful connection, send the updated certificate to the device whose certificate needs to be updated.
[0101] In this embodiment, the key management system connects to each certificate device to be updated, and after confirming a successful connection, the key management system sends the update certificate to the certificate device to be updated.
[0102] In this embodiment, the certificate version number of the device within the update range is obtained; the version number of the update certificate is compared with the certificate version number of the device within the update range to obtain the certificate device to be updated that has a different version number from the update certificate; a connection is established with the certificate device to be updated, and after confirming a successful connection, the update certificate is sent to the certificate device to be updated, thereby realizing batch certificate updates and improving the efficiency of certificate updates.
[0103] Figure 6 This is a flowchart illustrating a sixth embodiment of a certificate management method for smart meters provided in this application. Based on the above embodiments, as... Figure 6 As shown, specifically, the certificate update task includes a certificate synchronization identifier. Therefore, after step S104, the method further includes:
[0104] Step S601: Determine that the certificate synchronization identifier is set to confirm synchronization.
[0105] In this embodiment, when creating a certificate update task, a certificate synchronization flag can be set. This flag can be set to "Confirm Synchronization," "No Synchronization," or "Synchronization Only." "Confirm Synchronization" means that certificate synchronization will be performed after the certificate update. "No Synchronization" means that certificate synchronization will not be performed after the certificate update. "Synchronization Only" means that certificate synchronization will only be performed without certificate update. If set to "No Synchronization," certificate synchronization can be achieved later via the manual certificate synchronization button.
[0106] In this embodiment, certificate synchronization refers to the need for communicating devices to exchange their respective certificates.
[0107] Step S602: Send a certificate synchronization command to the device so that the device can send the updated certificate to other devices communicating with the device according to the certificate synchronization command.
[0108] In this embodiment, the key management system sends a certificate synchronization instruction to the device. After receiving the certificate synchronization instruction, the device updates its certificate and sends it to other devices communicating with it. After receiving the updated certificate, the other devices also send their own certificates to the device.
[0109] In this embodiment, the certificate synchronization identifier is determined to be synchronized; a certificate synchronization instruction is sent to the device so that the device can send the updated certificate to other devices communicating with the device according to the certificate synchronization instruction. The certificate synchronization process does not require manual operation, reducing a lot of repetitive manual work and thus avoiding business interruption caused by human error.
[0110] Figure 7 This is a flowchart illustrating Embodiment Seven of a certificate management method for smart meters provided in this application. Based on the above embodiments, as... Figure 7 As shown, specifically, after step S104, the method further includes:
[0111] Step S701: Obtain the certificate number selected by the user in the certificate management interface.
[0112] The certificate management interface displays the certificate numbers of the currently used root certificate and secondary certificates.
[0113] Step S702: Obtain the certificate information corresponding to the certificate number and display the certificate information.
[0114] In the certificate management interface, clicking on a certificate number will take you to the certificate details page. This page retrieves and displays the certificate's information from the credential management system, including the certificate signature, issuer, validity period, certificate number, level, version number, and public key. Furthermore, you can view, synchronize, destroy, update, and revoke the certificate.
[0115] When a device's certificate poses a security risk, it needs to be revoked. Furthermore, each device can only manage one certificate, and once revoked, the certificate will no longer be used for communication verification on that device.
[0116] In this embodiment, a certificate update task management interface may also be included. This interface displays a task list, specifically including the task number, task name, certificate type, execution cycle, number of entities, task progress, last execution time, creation time, creator, operation, retry, task details, and task log. The task log includes the operation type, number of entities, number of successfully executed entities, execution time, and executor.
[0117] In this embodiment, the certificate number selected by the user in the certificate management interface is obtained; based on the certificate number, the certificate information corresponding to the certificate number is obtained and displayed, fully covering the entire lifecycle of the certificate from application to archiving. The certificate is automatically bound and associated with the device and system, and the validity period and usage status are visible in real time, thus avoiding security vulnerabilities such as certificate expiration, duplicate application, and delayed revocation in advance.
[0118] It should be noted that although the steps in the above embodiments are described in a specific order, those skilled in the art will understand that in order to achieve the effect of this application, different steps do not necessarily have to be executed in such an order. They can be executed simultaneously (in parallel) or in other orders, and these variations are all within the scope of protection of this application.
[0119] Furthermore, this application also provides a certificate management device.
[0120] Figure 8 This is a schematic diagram of a certificate management device provided in an embodiment of this application. Figure 8 As shown, the certificate management device in this embodiment mainly includes an acquisition module 11, an update module 12, and a testing module 13. In some embodiments, one or more of the acquisition module 11, update module 12, and testing module 13 can be combined into a single module. In some embodiments, the acquisition module 11 can be configured to acquire a certificate update task. The update module 12 can be configured to obtain an update certificate based on the certificate update task. The testing module 13 can be configured to send the update certificate to the device corresponding to the update certificate for testing and obtain a test result. The update module 12 can also be configured to update the certificate in the device if the test result is deemed successful.
[0121] The aforementioned certificate management device is used for execution Figures 1 to 7 The illustrated embodiments of the certificate management method for smart meters share similar technical principles, the technical problems they solve, and the technical effects they produce. Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process and related descriptions of the certificate management device can be found in the embodiments of the certificate management method for smart meters, and will not be repeated here.
[0122] Those skilled in the art will understand that all or part of the processes in the method of the above-described embodiment can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable storage medium can include any entity or device capable of carrying the computer program code, a medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory, a random access memory, an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0123] Furthermore, this application also provides a certificate management device.
[0124] Figure 9 This is a schematic diagram of the structure of a certificate management device provided in an embodiment of this application. Figure 9 As shown, the certificate management device includes a processor 21 and a memory 22. The memory 22 can be configured to store a program for executing the certificate management method for smart meters according to the above method embodiments. The processor 21 can be configured to execute the program stored in the memory, which includes, but is not limited to, the program for executing the certificate management method for smart meters according to the above method embodiments. For ease of explanation, only the parts related to the embodiments of this application are shown. For specific technical details not disclosed, please refer to the method section of the embodiments of this application. The certificate management device can be a control device device comprising various electronic devices.
[0125] Furthermore, this application also provides a computer-readable storage medium. In one embodiment of the computer-readable storage medium according to this application, the computer-readable storage medium can be configured to store a program that executes the certificate management method for smart meters described in the above-described method embodiments. This program can be loaded and run by a processor to implement the above-described certificate management method for smart meters. For ease of explanation, only the parts related to the embodiments of this application are shown; for specific technical details not disclosed, please refer to the method section of the embodiments of this application. The computer-readable storage medium can be a storage device comprising various electronic devices. Optionally, in the embodiments of this application, the computer-readable storage medium is a non-transitory computer-readable storage medium.
[0126] Furthermore, it should be understood that since the various modules are only provided to illustrate the functional units of the device described in this application, the physical devices corresponding to these modules may be the processor itself, or a part of the processor's software, hardware, or a combination of both. Therefore, the number of modules shown in the figures is merely illustrative.
[0127] Those skilled in the art will understand that the various modules in the device can be adaptively split or combined. Such splitting or combining of specific modules will not cause the technical solution to deviate from the principles of this application; therefore, the technical solutions after splitting or combining will fall within the protection scope of this application.
[0128] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it will be readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. Without departing from the principles of this application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the scope of protection of this application.
Claims
1. A certificate management method for smart meters, characterized in that, include: Obtain certificate update task; Based on the certificate update task, the updated certificate is obtained; The update certificate is sent to the device corresponding to the update certificate for testing, and the test results are obtained. If the test result is determined to be a pass, the certificate in the device will be updated.
2. The method according to claim 1, characterized in that, The certificate update task includes a certificate update time, and obtaining the updated certificate based on the certificate update task includes: Get the current time; If the current time is determined to be the certificate update time, a certificate update request is sent to the credential management system to obtain the updated certificate from the credential management system based on the certificate update request.
3. The method according to claim 2, characterized in that, After sending the update certificate to the device corresponding to the update certificate for testing and obtaining the test results, the method further includes: The test result was determined to be a failure. According to the certificate update task, obtain the updated certificate again.
4. The method according to claim 1, characterized in that, The certificate update task includes a delay retry time. After sending the updated certificate to the device corresponding to the updated certificate for testing, the method further includes: It is confirmed that no test results have been received within the preset time. Get the current time; If the current time reaches the delay retry time, the updated certificate is sent to the device corresponding to the updated certificate.
5. The method according to claim 1, characterized in that, The certificate update task includes an update scope, so updating the certificate in the device includes: Obtain the certificate version number of the device within the update scope; The version number of the updated certificate is compared with the certificate version number of the devices in the update range to obtain the devices whose certificate version number is different from that of the updated certificate; Connect to the device whose certificate is to be updated, and after confirming a successful connection, send the updated certificate to the device whose certificate is to be updated.
6. The method according to claim 1, characterized in that, The certificate update task includes a certificate synchronization identifier. After determining that the test result is a pass, and updating the certificate in the device, the method further includes: The certificate synchronization identifier is determined to be synchronized; A certificate synchronization instruction is sent to the device, so that the device can send the updated certificate to other devices communicating with the device according to the certificate synchronization instruction.
7. The method according to claim 1, characterized in that, The method further includes: Retrieve the certificate number selected by the user in the certificate management interface; Based on the certificate number, obtain the certificate information corresponding to the certificate number, and display the certificate information.
8. A certificate management device, characterized in that, include: The acquisition module is used to acquire certificate update tasks; The update module is used to obtain the updated certificate based on the certificate update task; The testing module is used to send the update certificate to the device corresponding to the update certificate for testing and obtain the test results; The update module is also used to update the certificate in the device if the test result is determined to be a pass.
9. A certificate management device, comprising at least one processor and a memory; wherein, The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method of any one of claims 1 to 7.
10. A computer-readable storage medium storing a plurality of program codes, characterized in that, The program code is adapted to be loaded and run by a processor to perform the method of any one of claims 1 to 7.