Dynamic key exchange secure access registration authentication method and system for power monitoring system
By using the combination of dynamic random symmetric keys and SM2 public and private key certificates in the power monitoring system, the key security problem in the traditional secure access registration and authentication method is solved, and the uniqueness of each device and the high system are achieved. Security and reliability reduce the risk of illegal access.
Patent Information
- Application Number
- CN202410950115.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-12
AI Technical Summary
The secure access registration and authentication method of traditional power monitoring systems has problems such as low key security and easy tampering of registration information, which leads to serious hidden dangers in the operation of the system. It requires a more secure and reliable dynamic key exchange method to prevent malicious intentions. Tampering and illegal access.
Encrypted with dynamic random symmetric keys, generate a new temporary dynamic random symmetric key every time a connection is established, and secure access authentication and key negotiation are performed through SM2 public and private key certificates and TCP connections to ensure each secure access customer The end has a unique identifier to achieve accurate identification and distinction of devices.
Improve the security and complexity of keys, reduce the risk of hackers obtaining sensitive information, ensure the uniqueness of the device, improve the security and reliability of the system, and effectively prevent confusion or errors in illegal access and data management. .
Smart Images

Figure HDA0004946980920000011 
Figure HDA0004946980920000021 
Figure HDA0004946980920000022
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power monitoring system security technology, and in particular to a dynamic key exchange security access registration and authentication method and system for a power monitoring system. Background Art
[0002] At present, with the widespread application of power monitoring systems, it is crucial to ensure the security and reliability of system data. The traditional security access registration and authentication method has problems such as low key security and easy tampering of registration information, which has become a serious hidden danger in the operation of power monitoring systems. Therefore, how to solve the security problems existing in traditional power monitoring systems, ensure the secure access of the system, ensure that each security client has a unique identification, and effectively prevent malicious tampering and illegal access have become problems that need to be solved urgently. In order to meet this challenge, it is necessary to propose a more secure and reliable dynamic key security access registration and authentication method. Summary of the invention
[0003] Purpose of the invention: The purpose of the present invention is to provide a dynamic key exchange secure access registration and authentication method for an electric power monitoring system; another purpose of the present invention is to provide a dynamic key exchange secure access registration and authentication system for an electric power monitoring system.
[0004] Technical solution: The dynamic key exchange secure access registration and authentication method for the power monitoring system of the present invention comprises the following steps:
[0005] (1) The secure access server imports the certificate issued by the certificate system, and the secure access client imports the public key certificate that matches the certificate issued by the certificate system;
[0006] (2) When the secure access client is first started, it generates a universal SM2 public and private key certificate and a temporary dynamic random symmetric key, and establishes a TCP connection with the secure access server;
[0007] (3) After the TCP connection is established, the secure access client initiates a secure access authentication request, which carries the authentication content information, the temporary dynamic random symmetric key, and the public key certificate generated by the secure access client;
[0008] (4) The security access server receives the security access authentication request from the security access client, uses the certificate system certificate to decrypt and obtain the dynamic random symmetric key and the public key certificate of the security access client, and uses the dynamic random symmetric key to decrypt the authentication request content, and generates authentication result information and a temporary dynamic random symmetric key, and returns the authentication result information, wherein the authentication result information is encrypted using the temporary dynamic random symmetric key, and the temporary dynamic random symmetric key is encrypted using the public key certificate of the security access client;
[0009] (5) After receiving the authentication result response from the security access server, the security access client uses the same method to obtain the authentication result information, and generates completion information and a temporary dynamic random symmetric key, and sends them to the security access server using the same method, thus completing the security access authentication;
[0010] (6) After the secure access client completes the secure access authentication, it initiates a key negotiation request at startup, and generates a temporary dynamic random symmetric key and a random 8-digit number as the first 8 bits of the negotiation key. The key negotiation request carries the first 8 bits of the negotiation key and the temporary dynamic random symmetric key. The first 8 bits of the negotiation key are encrypted using the temporary dynamic random symmetric key, and the temporary dynamic random symmetric key is encrypted using the public key certificate of the secure access server.
[0011] (7) The secure access server receives the key negotiation request from the secure access client, obtains the first 8 bits of the negotiation key using the previous method, and generates a random 8-digit number as the last 8 bits of the negotiation key and a temporary dynamic random symmetric key, and returns a request response;
[0012] (8) The secure access client receives the key negotiation response from the secure access server, parses and obtains the last 8 bits of the negotiated key and forms a 16-bit dynamic random symmetric key, thus completing the key negotiation;
[0013] (9) After key negotiation is completed, the secure access client initiates a negotiated key verification process to verify the consistency of the negotiated key. After the verification confirmation process passes, the secure access client and the secure access server perform service transmission and encrypt the service using the negotiated key.
[0014] Furthermore, in the step (1), after the secure access server imports the certificate issued by the certificate system, it extracts the public key certificate in X509 format from the certificate issued by the certificate system and pre-sets it to the secure access client.
[0015] Furthermore, in step (2), the secure access client generates a public key certificate in X509 format after startup, and in the secure access authentication request, the public key certificate of the secure access client is encrypted and transmitted to the secure access server.
[0016] Furthermore, in step (3), the secure access client initiates a secure access authentication request after the connection is successfully established, wherein the authentication content information is encrypted using a temporary dynamic random symmetric key, and the temporary dynamic random symmetric key is encrypted using a public key certificate of the secure access server.
[0017] Furthermore, in step (4), after receiving the security access authentication request from the security access client, the security access server generates a unique identifier as the security access client authentication identifier, and includes it in the authentication result information and returns it to the security access client.
[0018] Furthermore, in step (8), after receiving the key negotiation result from the security access server, the security access client combines the last 8 bits of the negotiation key transmitted by the security access server with the first 8 bits of the negotiation key generated by the security access client itself to form a 16-bit dynamic message transmission key.
[0019] Furthermore, in step (9), after the key negotiation is completed, the secure access client initiates a negotiated key verification request to the secure access server and uses the negotiated key for encrypted transmission. After the secure access server receives the request and verifies that the negotiated key is correct, it returns a verification response to complete the negotiated key verification process.
[0020] The dynamic key exchange secure access registration and authentication system for an electric power monitoring system of the present invention comprises: a secure access client, a secure access server, a public key certificate, a dynamic random symmetric key, a secure access authentication module, a key negotiation module and a negotiated key verification module.
[0021] Furthermore, the secure access client is used as the initiator of the secure access authentication process, the key negotiation process and the negotiated key verification process, and makes a registration request to the secure access server in combination with various authentication processes by using encryption such as a public key certificate and a dynamic random symmetric key until the registration process is completed;
[0022] The secure access server is used as the initiator of the secure access authentication process, the key negotiation process and the negotiated key verification process. By using public key certificates, dynamic random symmetric keys and other encryption methods, combined with various authentication processes, after the secure access client initiates a registration request, it responds until the registration process is completed;
[0023] The public key certificate is an X509 format public key certificate of SM2 generated by the secure access server or the secure access client;
[0024] The dynamic random symmetric key is a 16-bit SM4 symmetric key generated by a secure access server and a secure access client.
[0025] Furthermore, the security access authentication module is used for the security access client to initiate a security access authentication request, and the security access server receives the authentication request and allocates a unique identifier to the security access client;
[0026] The key negotiation module is used to initiate a key negotiation request from the security access client after the security access authentication process is successful, and finally the security access client and the security access server each allocate an 8-bit random number to form a dynamic random symmetric key;
[0027] The negotiated key verification module is used for the secure access client to initiate a negotiated key verification request after the key negotiation process is successful, to verify whether the 16-bit dynamic random symmetric key is consistent between the secure access client and the secure access server.
[0028] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:
[0029] (1) The secure access registration and authentication method of the present invention uses a dynamic random symmetric key for encryption, and a new temporary dynamic random symmetric key is generated each time a connection is established. This dynamically generated key has a high degree of complexity and randomness, which effectively improves the security of the key; compared with static keys, dynamic keys are more difficult to crack or steal. Because dynamic keys are one-time and only valid during a specific session. A new key is generated each time a connection is established, making it impossible for an attacker to crack subsequent communications by obtaining the old key. This dynamic key mechanism greatly reduces the risk of hackers or malicious users obtaining sensitive information, effectively protects the security of the power monitoring system, and effectively enhances the security of the power monitoring system. Through the characteristics of dynamic generation, complexity and one-time use, the risk of attackers obtaining sensitive information is reduced, and the data security of the system and users is protected. This has brought important technological advances to fields such as power monitoring systems and improved the security and reliability of the system.
[0030] (2) After the secure access client successfully completes the secure access authentication, the secure access server will assign a unique identifier to the secure access client, making it device-unique, which means that each device has a unique identity. Having uniqueness in the system can help the server accurately identify and distinguish different devices, avoiding confusion or errors caused by repeated device statistics or difficulty in merging data. By ensuring device uniqueness, the system can more accurately record and manage device information, improve data accuracy and reliability, and effectively solve problems such as repeated statistics of indicators across the entire network and difficulty in merging device data, providing reliable guarantees for the stable operation of the system and data management. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a system architecture diagram of the present invention;
[0032] Figure 2 A flow chart of the secure access authentication method;
[0033] Figure 3 The figure is a flow chart of the key negotiation and verification method. DETAILED DESCRIPTION
[0034] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0035] like Figure 1As shown, the dynamic key exchange secure access registration and authentication system for the power monitoring system described in the present invention includes: a secure access client, a secure access server, a public key certificate, a dynamic random symmetric key, a secure access authentication module, a key negotiation module and a negotiated key verification module.
[0036] The secure access client, the initiator of the secure access authentication process, the key negotiation process and the negotiated key verification process, makes a registration request to the secure access server by using public key certificates, dynamic random symmetric keys and other encryptions, combined with various authentication processes of the present invention, until the registration process is completed.
[0037] The secure access server, the initiator of the secure access authentication process, the key negotiation process and the negotiated key verification process, uses public key certificates, dynamic random symmetric keys, etc. for encryption, and combines various authentication processes of the present invention to respond after the secure access client initiates a registration request until the registration process is completed.
[0038] Public key certificate, X509 format public key certificate of SM2 generated by the secure access server or secure access client.
[0039] Dynamic random symmetric key, 16-bit SM4 symmetric key generated by the security access server and the security access client.
[0040] The secure access authentication module is initiated by the secure access client and the secure access server receives the authentication request and allocates a unique identifier to the secure access client.
[0041] The key negotiation module, after the security access authentication process is successful, the security access client initiates a key negotiation request, and finally the security access client and the security access server each allocate an 8-bit random number to form a dynamic random symmetric key.
[0042] Negotiation key verification flow module: after the key negotiation process is successful, the security access client initiates a negotiation key verification request to verify whether the 16-bit dynamic random symmetric key is consistent on the security access client and the security access server.
[0043] The dynamic key exchange secure access registration and authentication method for the power monitoring system of the present invention first initiates a secure access authentication process by a secure access client, and after completing the secure access authentication process, the secure access client initiates a key negotiation and negotiated key verification process, and the scheme of the method is described in conjunction with the accompanying drawings. The dynamic key exchange secure access registration and authentication method applied to the system includes the following steps:
[0044] like Figure 2 As shown, first, the secure access client initiates the secure access authentication process;
[0045] Step 101: The secure access server imports the certificate issued by the certificate system, and the secure access client presets the public key certificate matching the certificate issued by the certificate system;
[0046] Step 102, when the secure access client is started for the first time, it generates a universal SM2 public and private key certificate and a temporary dynamic random symmetric key, and establishes a TCP connection with the secure access server;
[0047] Step 103: After the TCP connection is established, the secure access client initiates a secure access authentication request, carrying registration content information, a temporary dynamic random symmetric key, and a public key certificate generated by the secure access client, wherein the registration content information is encrypted using the temporary dynamic random symmetric key, and the temporary dynamic random symmetric key is encrypted using the public key certificate of the secure access server;
[0048] Step 104: The secure access server receives the registration request from the secure access client, uses the certificate system certificate to decrypt and obtain the dynamic random symmetric key and the public key certificate of the secure access client, and uses the dynamic random symmetric key to decrypt the registration content, and generates a registration result and a temporary dynamic random symmetric key at the same time, and returns the registration result, wherein the registration result information is encrypted using the temporary dynamic random symmetric key, and the temporary dynamic random symmetric key is encrypted using the public key certificate of the secure access client;
[0049] Step 105: After receiving the registration result response from the security access server, the security access client uses the same method to obtain the registration result information, and generates completion information and a temporary dynamic random symmetric key, and sends them to the security access server using the same method to complete the security access authentication;
[0050] like Figure 3 As shown, after completing the secure access authentication process, the secure access client initiates the key negotiation and negotiated key verification process;
[0051] Step 201: After the secure access client completes the registration secure access authentication, it initiates key negotiation at startup, and generates a temporary dynamic random symmetric key and a random 8-digit number as the first 8 bits of the negotiation key. The online request carries the first 8 bits of the negotiation key and the temporary dynamic random symmetric key, wherein the first 8 bits of the negotiation key are encrypted using the temporary dynamic random symmetric key, and the temporary dynamic random symmetric key is encrypted using the public key certificate of the secure access server.
[0052] Step 202: The secure access server receives the key negotiation request from the secure access client, obtains the first 8 bits of the negotiation key using the previous method, and generates a random 8-digit number as the last 8 bits of the negotiation key and a temporary dynamic random symmetric key, and returns a request response.
[0053] Step 203: The secure access client receives the key negotiation response from the secure access server, parses and obtains the last 8 bits of the negotiated key and forms a 16-bit dynamic random symmetric key, thus completing the key negotiation.
[0054] Step 204: After the key negotiation is completed, the secure access client initiates a negotiation key verification request, carrying the verification message content, and the message is encrypted using the negotiation key negotiated in step 203;
[0055] Step 205: After receiving the verification request, the secure access server negotiates a key verification response, and the message is encrypted using the negotiated key.
[0056] Step 206, after receiving a correct response from the security access service form, the secure access client completes verification of the consensus key.
[0057] Step 207: After the key negotiation verification process is passed, the secure access client and the secure access server can perform service transmission, and the message content is encrypted using the negotiated key that has passed the verification;
[0058] The key advantage of the present invention is that it ensures that the secure access client can only perform subsequent services after successful registration and dynamic key negotiation, effectively reducing the risk of illegal or unauthorized device access and preventing malicious users from attacking or tampering with the system. This restriction ensures that the system only communicates with authenticated and legitimate devices, improving the overall security and reliability of the system.
[0059] Secondly, each secure access client has a unique identifier, which means that each device has device uniqueness and is unique in the system, which can help the server accurately identify and distinguish different devices, avoiding confusion or errors caused by repeated device statistics or difficulty in data merging. By ensuring device uniqueness, the system can more accurately record and manage device information, improving data accuracy and reliability.
[0060] Through this mechanism, the present invention can effectively solve the problems of repeated statistics of indicators across the entire network and difficulty in merging device data in the multi-level distributed cascade deployment scenario of the platform. It has brought important technological progress to the fields of power monitoring systems, improved the security, reliability and management efficiency of the system, and provided users with a safer and more stable service experience.
Claims
1. A dynamic key exchange secure access registration and authentication method for an electric power monitoring system, characterized in that: The steps include: (1) The secure access server imports the certificate issued by the certificate system, and the secure access client imports the public key certificate that matches the certificate issued by the certificate system; (2) When the secure access client is first started, it generates a universal SM2 public and private key certificate and a temporary dynamic random symmetric key, and establishes a TCP connection with the secure access server; (3) After the TCP connection is established, the secure access client initiates a secure access authentication request, which carries the authentication content information, the temporary dynamic random symmetric key, and the public key certificate generated by the secure access client; (4) The security access server receives the security access authentication request from the security access client, uses the certificate system certificate to decrypt and obtain the dynamic random symmetric key and the public key certificate of the security access client, and uses the dynamic random symmetric key to decrypt the authentication request content, and generates authentication result information and a temporary dynamic random symmetric key, and returns the authentication result information, wherein the authentication result information is encrypted using the temporary dynamic random symmetric key, and the temporary dynamic random symmetric key is encrypted using the public key certificate of the security access client; (5) After receiving the authentication result response from the security access server, the security access client uses the same method to obtain the authentication result information, and generates completion information and a temporary dynamic random symmetric key, and sends them to the security access server using the same method, thus completing the security access authentication; (6) After the secure access client completes the secure access authentication, it initiates a key negotiation request at startup, and generates a temporary dynamic random symmetric key and a random 8-digit number as the first 8 bits of the negotiation key. The key negotiation request carries the first 8 bits of the negotiation key and the temporary dynamic random symmetric key. The first 8 bits of the negotiation key are encrypted using the temporary dynamic random symmetric key, and the temporary dynamic random symmetric key is encrypted using the public key certificate of the secure access server. (7) The secure access server receives the key negotiation request from the secure access client, obtains the first 8 bits of the negotiation key using the previous method, and generates a random 8-digit number as the last 8 bits of the negotiation key and a temporary dynamic random symmetric key, and returns a request response; (8) The secure access client receives the key negotiation response from the secure access server, parses and obtains the last 8 bits of the negotiated key and forms a 16-bit dynamic random symmetric key, thus completing the key negotiation; (9) After key negotiation is completed, the secure access client initiates a negotiated key verification process to verify the consistency of the negotiated key. After the verification confirmation process passes, the secure access client and the secure access server perform service transmission and encrypt the service using the negotiated key.
2. The method for dynamic key exchange secure access registration and authentication for electric power monitoring system according to claim 1, characterized in that: In the step (1), after the secure access server imports the certificate issued by the certificate system, it extracts the public key certificate in X509 format from the certificate issued by the certificate system and pre-sets it to the secure access client.
3. The method for dynamic key exchange secure access registration and authentication for electric power monitoring system according to claim 1, characterized in that: In step (2), the secure access client generates a public key certificate in X509 format after startup, and in the secure access authentication request, encrypts the public key certificate of the secure access client and transmits it to the secure access server.
4. The method for dynamic key exchange secure access registration and authentication for electric power monitoring system according to claim 1, characterized in that: In step (3), the secure access client initiates a secure access authentication request after the connection is successfully established, wherein the authentication content information is encrypted using a temporary dynamic random symmetric key, and the temporary dynamic random symmetric key is encrypted using the public key certificate of the secure access server.
5. The method for dynamic key exchange secure access registration and authentication for electric power monitoring system according to claim 1, characterized in that: In the step (4), after receiving the security access authentication request from the security access client, the security access server generates a unique identifier as the security access client authentication identifier, and includes it in the authentication result information and returns it to the security access client.
6. The method for dynamic key exchange secure access registration and authentication for electric power monitoring system according to claim 1, characterized in that: In step (8), after receiving the key negotiation result from the security access server, the security access client combines the last 8 bits of the negotiation key transmitted by the security access server with the first 8 bits of the negotiation key generated by the security access client itself to form a 16-bit dynamic message transmission key.
7. The method for dynamic key exchange secure access registration and authentication for electric power monitoring system according to claim 1, characterized in that: In step (9), after the key negotiation is completed, the secure access client initiates a negotiated key verification request to the secure access server and uses the negotiated key for encrypted transmission. After the secure access server receives the request and verifies that the negotiated key is correct, it returns a verification response to complete the negotiated key verification process.
8. A dynamic key exchange secure access registration and authentication system for power monitoring system, characterized in that: include: A secure access client, a secure access server, a public key certificate, a dynamic random symmetric key, a secure access authentication module, a key negotiation module and a negotiated key verification module.
9. The dynamic key exchange secure access registration and authentication system for power monitoring system according to claim 8, characterized in that: The secure access client is used as the initiator of the secure access authentication process, the key negotiation process and the negotiated key verification process, and makes a registration request to the secure access server by using public key certificates, dynamic random symmetric keys and other encryption, combined with various authentication processes, until the registration process is completed; The secure access server is used as the initiator of the secure access authentication process, the key negotiation process and the negotiated key verification process. By using public key certificates, dynamic random symmetric keys and other encryption methods, combined with various authentication processes, after the secure access client initiates a registration request, it responds until the registration process is completed; The public key certificate is an X509 format public key certificate of SM2 generated by the secure access server or the secure access client; The dynamic random symmetric key is a 16-bit SM4 symmetric key generated by a secure access server and a secure access client.
10. The dynamic key exchange secure access registration and authentication system for power monitoring system according to claim 8, characterized in that: The secure access authentication module is used for the secure access client to initiate a secure access authentication request, and the secure access server receives the authentication request and allocates a unique identifier to the secure access client; The key negotiation module is used to initiate a key negotiation request from the security access client after the security access authentication process is successful, and finally the security access client and the security access server each allocate an 8-bit random number to form a dynamic random symmetric key; The negotiated key verification module is used for the secure access client to initiate a negotiated key verification request after the key negotiation process is successful, to verify whether the 16-bit dynamic random symmetric key is consistent between the secure access client and the secure access server.
