Data transmission method and system based on bidirectional identity authentication

Through two-way identity authentication and operation log recording, the problem of single authentication method and low security of storage device encryption schemes in the existing technology is solved, and the security and traceability of data transmission are improved.

CN118646586APending Publication Date: 2024-09-13SHANDONG ZHONGFU INFORMATION IND
View PDF 0 Cites 4 Cited by

Patent Information

Application Number
CN202410887373.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing mobile storage device encryption technology solutions have problems such as single authentication method, low security level, and inability to achieve two-way identity authentication, resulting in low security of data transmission and no traceability.

Method used

Adopt a data transmission method based on two-way identity authentication, use digital identity certificates for device registration and two-way identity authentication, generate transmission keys for encrypted transmission, and record operation logs to achieve two-way recording.

Benefits of technology

It improves the security of data transmission between storage devices and hosts, avoids the problems of cross-use of non-certified devices and failure to record logs, and achieves security and traceability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646586A
    Figure CN118646586A
Patent Text Reader

Abstract

The invention provides a data transmission method and system based on bidirectional identity authentication, and relates to the technical field of data security, a storage device is used as a client, a PC host is used as a server, and data transmission between the client and the server is carried out. The client sends an equipment serial number and an equipment certificate identifier to the server for equipment registration; based on a TLS authentication mode, bidirectional identity authentication is performed between the client and the server, and the server authenticates the identity of the client, including verifying whether the device serial number and the device certificate identifier of the client are consistent with the device serial number and the device certificate identifier during registration; after the bidirectional identity authentication is passed, a transmission key is generated and is used for data encryption transmission between the server side and the client side; according to the invention, registration and bidirectional identity authentication of the device are carried out by using the digital identity certificate, so that the data transmission security between the storage device and the host is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data security, and in particular relates to a data transmission method and system based on two-way identity authentication. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] With the advent of the digital age and the rapid development of artificial intelligence technology, the importance of data security and privacy protection has become increasingly prominent. Data security and privacy protection face huge challenges.

[0004] The widespread use of mobile storage devices has also brought about many security issues. There are two main technical solutions for encrypting existing mobile storage devices: one is to encrypt the storage device based on the operating system disk encryption software, such as BitLocker of the Windows operating system and FileVai lt of the Mac operating system; the other is to encrypt the storage device by a third-party encryption software tool, such as TrueCrypt, VeraCrypt, etc.; and the above two solutions mostly use methods such as security passwords to authenticate the device, the authentication method is single, the password security level is low, and it is easy to lose and forget; the authentication method is one-way authentication, and two-way identity authentication cannot be achieved; no encrypted transmission is performed during the file transfer process; the operation logs of the secure storage device and the host cannot be recorded and tracked, which ultimately leads to low data transmission security between the storage device and the host, and it cannot be traced. Summary of the invention

[0005] To overcome the above-mentioned deficiencies of the prior art, the present invention provides a data transmission method and system based on two-way identity authentication, which utilizes digital identity certificates to perform device registration and two-way identity authentication, thereby improving the data transmission security between the storage device and the host.

[0006] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:

[0007] A first aspect of the present invention provides a data transmission method based on two-way identity authentication.

[0008] A data transmission method based on two-way identity authentication, with a storage device as the client and a PC host as the server, performs data transmission between the two ends. The specific steps are as follows:

[0009] When the client and server connect for the first time, the client sends the device serial number and device certificate identifier to the server to register the device;

[0010] Based on the TLS authentication method, two-way identity authentication is performed between the client and the server, wherein the server's identity authentication of the client includes verifying whether the client's device serial number and device certificate identifier are consistent with the device serial number and device certificate identifier at the time of registration;

[0011] After the two-way identity authentication is passed, a transmission key is generated for encrypted data transmission between the server and the client;

[0012] Among them, corresponding operation logs are generated during device registration, two-way identity authentication and data transmission, and stored in the respective log storage areas of the server and the client, realizing two-way recording of operation logs.

[0013] Furthermore, the client includes a read-only partition and a hidden partition, the read-only partition stores the client software program, which is used for two-way identity authentication, data transmission, and operation log recording with the server;

[0014] The server side stores the server side software program, which is used for storage device registration, two-way identity authentication, data transmission, and operation log recording.

[0015] Furthermore, the specific steps of the device registration are:

[0016] After the storage device is inserted into the PC host, the client software program is opened from the read-only partition, and the device certificate is imported through the client software program. After the device certificate is imported, the device serial number and device certificate identifier are sent to the PC host;

[0017] The PC host opens the server software program, authenticates the received device serial number and device certificate identifier, and stores the device serial number and device certificate identifier in the storage device registration list after passing the authentication.

[0018] Furthermore, the storage device registration list also records the status of the registered storage devices, including normal status, deregistered status, suspended status, and abnormal status.

[0019] Furthermore, the specific steps of the two-way identity authentication are:

[0020] The client initiates an authentication request to the server;

[0021] The server sends the server certificate to the client;

[0022] The client verifies the server certificate, verifies that the PC host has been authenticated successfully, and sends the device certificate and the encrypted device serial number and device certificate identifier to the server;

[0023] The server verifies the device certificate, decrypts and verifies whether the device serial number and device certificate identifier are consistent with those when registered, and successfully completes the authentication of the storage device.

[0024] Furthermore, the server certificate and device certificate are both issued by a trusted digital certificate authority CA after verifying the identities of the server and the storage device, and have identity authentication and data transmission encryption functions.

[0025] Furthermore, the generation of the transmission key is specifically as follows:

[0026] The client calculates the transmission key based on the server certificate, device certificate, device serial number, device certificate identifier and random number, and encrypts it and sends it to the server.

[0027] After verifying the signature, the server decrypts and obtains the transmission key.

[0028] A second aspect of the present invention provides a data transmission system based on two-way identity authentication.

[0029] A data transmission system based on two-way identity authentication, with a storage device as the client and a PC host as the server, performs data transmission between the two ends, including a device registration module, a two-way identity authentication module and a key generation module:

[0030] The device registration module is configured as follows: when the client and the server are connected for the first time, the client sends the device serial number and the device certificate identifier to the server to register the device;

[0031] The two-way identity authentication module is configured to: perform two-way identity authentication between the client and the server based on the TLS authentication method, wherein the server's identity authentication of the client includes verifying whether the device serial number and device certificate identifier of the client are consistent with the device serial number and device certificate identifier at the time of registration;

[0032] The key generation module is configured to: after the two-way identity authentication is passed, generate a transmission key for data encryption transmission between the server and the client;

[0033] Among them, corresponding operation logs are generated during device registration, two-way identity authentication and data transmission, and stored in the respective log storage areas of the server and the client, realizing two-way recording of operation logs.

[0034] A third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps of a data transmission method based on two-way identity authentication as described in the first aspect of the present invention.

[0035] The fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of a data transmission method based on two-way identity authentication as described in the first aspect of the present invention are implemented.

[0036] One or more of the above technical solutions have the following beneficial effects:

[0037] The present invention registers the storage device and performs two-way identity authentication between the two ends, thereby solving the identity insecurity problem caused by one-way authentication between the device and the host, avoiding cross-use between unauthenticated devices, and solving the storage device application tracing problem through two-way recording of operation logs, that is, what storage device the host has used and where the storage device is used, thereby improving the security of data transmission as a whole.

[0038] The invention provides a two-way authentication method for storage devices and hosts, which uses a digital certificate as the identity of the device, completes two-way identity authentication and establishes a secure channel through TLS, and transmits files through a secure channel, thereby eliminating the risk of file leakage during the transmission process.

[0039] The present invention implements a method for registering a storage device on a host. The host obtains the serial number and certificate information of the storage device and stores them in a registration list for managing the storage device status and identity authentication.

[0040] The storage device and the host of the present invention can both record complete operation logs, realize two-way recording of logs, and solve the problem that logs cannot be recorded and tracked.

[0041] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0043] Figure 1 This is a structural diagram of the first embodiment.

[0044] Figure 2 This is a flow chart of the method of the first embodiment.

[0045] Figure 3 This is a registration flow chart of the first embodiment.

[0046] Figure 4 This is a two-way authentication flow chart of the first embodiment.

[0047] Figure 5 This is a flow chart of transmission key generation and data transmission according to the first embodiment. DETAILED DESCRIPTION

[0048] It should be noted that the following detailed descriptions are illustrative and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used in the present invention have the same meanings as those commonly understood by those skilled in the art to which the present application belongs.

[0049] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0050] First, let's explain TLS:

[0051] Transport Layer Security (TLS) is used to establish a secure communication connection between the client and the server. It can protect the confidentiality, integrity and authentication of data. TLS uses public key encryption and symmetric key encryption to protect the security of communication. The client and the server will exchange public keys and digital identity certificates to ensure the authentication of both parties and the confidentiality of communication. Digital signatures are used to ensure the integrity of data to prevent data tampering and forgery.

[0052] The present invention uses a digital certificate as the identity of the device, completes two-way identity authentication between the storage device and the host through TLS, and establishes a secure channel. File transmission is carried out through the secure channel, which eliminates the risk of file leakage during the transmission process.

[0053] Embodiment 1

[0054] In one embodiment of the present disclosure, a data transmission method based on two-way identity authentication is provided. Figure 1 As shown, the storage device is used as the client and the PC host is used as the server to perform data transmission between the two ends. The client includes a read-only partition and a hidden partition. The read-only partition stores the client software program for two-way identity authentication, data transmission, and operation log recording with the server; the server stores the server software program for registration, two-way identity authentication, data transmission, and operation log recording of the storage device. Corresponding operation logs are generated during device registration, two-way identity authentication, and data transmission, and are stored in the respective log storage areas of the server and the client, thereby realizing two-way recording of operation logs.

[0055] Among them, the server certificate and device certificate are both issued by a trusted digital certificate authority CA after verifying the identity of the server and storage device, and have identity authentication and data transmission encryption functions.

[0056] Based on the above content, a data transmission method based on two-way identity authentication, such as Figure 2 As shown, the specific steps are:

[0057] Step S1: When the client and the server are connected for the first time, the client sends the device serial number and device certificate identifier to the server to register the device.

[0058] Furthermore, the specific steps of the device registration are:

[0059] After the storage device is inserted into the PC host, the client software program is opened from the read-only partition, and the device certificate is imported through the client software program. After the device certificate is imported, the device serial number and device certificate identifier are sent to the PC host;

[0060] The PC host opens the server software program, authenticates the received device serial number and device certificate identifier, and stores the device serial number and device certificate identifier in the storage device registration list after passing the authentication.

[0061] Furthermore, the storage device registration list also records the status of the registered storage devices, including normal status, deregistered status, suspended status, and abnormal status.

[0062] Provide a Figure 3 The registration process shown:

[0063] Step S101: After the storage device is inserted into the PC host, the client software program is opened from the read-only area.

[0064] Step S102: Import the device certificate through the client software program, and wait for the PC host to register the storage device after the device certificate is imported.

[0065] Step S103: The storage device client software program saves all operation log information to the log storage area.

[0066] Step S104, open the PC host server software program, start registering the storage device through the PC host server software program, check the storage device status and certificate information, and complete the verification of the storage device after passing.

[0067] Step S105: The registration process reads the serial number (SN) and the unique identifier (DN) of the certificate holder in the storage device and stores them in the PC host to complete the registration.

[0068] Step S106: The PC host server software program saves all operation log information to the log storage area.

[0069] Step S2: Based on the TLS authentication method, two-way identity authentication is performed between the client and the server, wherein the server's identity authentication of the client includes verifying whether the client's device serial number and device certificate identifier are consistent with the device serial number and device certificate identifier at the time of registration.

[0070] Furthermore, the specific steps of the two-way identity authentication are:

[0071] The client initiates an authentication request to the server;

[0072] The server sends the server certificate to the client;

[0073] The client verifies the server certificate, verifies that the PC host has been authenticated successfully, and sends the device certificate and the encrypted device serial number and device certificate identifier to the server;

[0074] The server verifies the device certificate, decrypts and verifies whether the device serial number and device certificate identifier are consistent with those when registered, and successfully completes the authentication of the storage device.

[0075] Provide a Figure 4 The following figure shows the bidirectional authentication process between the storage device and the host:

[0076] Step S201: The client initiates an authentication request, uses TLS authentication, and sends TLS version information, encryption suite, random number and other information to the server.

[0077] Step S202: The server returns TLS version information, encryption suite, random number, server certificate and public key, signature value, server parameters and other information.

[0078] Step S203: The client verifies the server certificate and signature value, and verifies that the authentication of the PC host is successfully completed.

[0079] Step S204: after authentication is passed, the client certificate and public key, client parameters encrypted by the server public key (storage device SN, certificate DN items), signature value and other information are sent to the server.

[0080] Step S205: The server verifies the client certificate and signature value, decrypts the private key and verifies whether the storage device SN and certificate DN items are consistent with those when registered, and successfully completes the authentication of the storage device.

[0081] Step S3: After the two-way identity authentication is passed, a transmission key is generated for encrypted data transmission between the server and the client.

[0082] Furthermore, the generation of the transmission key is specifically as follows:

[0083] The client calculates the transmission key based on the server certificate, device certificate, device serial number, device certificate identifier and random number, and encrypts it and sends it to the server.

[0084] After verifying the signature, the server decrypts and obtains the transmission key.

[0085] Provide a Figure 5 The transmission key generation and data transmission process shown:

[0086] Step S301: Calculate the transmission key based on the parameters of the two-way identity authentication in step S2 and the random number, and send the transmission key, signature value and other information encrypted by the client public key to the client.

[0087] Step S302: After verifying the signature value, the client uses the private key to decrypt the ciphertext to obtain the transmission key.

[0088] Step S303: The two-way authentication between the storage device and the PC host is completed, a secure channel is established using the transmission key, and the file is transferred through the secure channel.

[0089] Step S304: The storage device client software program saves all operation log information to the log storage area.

[0090] Step S305: The PC host server software program saves all operation log information to the log storage area.

[0091] Embodiment 2

[0092] In one embodiment of the present disclosure, a data transmission system based on two-way identity authentication is provided, with a storage device as a client and a PC host as a server, to perform data transmission between the two ends, including a device registration module, a two-way identity authentication module and a key generation module:

[0093] The device registration module is configured as follows: when the client and the server are connected for the first time, the client sends the device serial number and the device certificate identifier to the server to register the device;

[0094] The two-way identity authentication module is configured to: perform two-way identity authentication between the client and the server based on the TLS authentication method, wherein the server's identity authentication of the client includes verifying whether the device serial number and device certificate identifier of the client are consistent with the device serial number and device certificate identifier at the time of registration;

[0095] The key generation module is configured to: after the two-way identity authentication is passed, generate a transmission key for data encryption transmission between the server and the client;

[0096] Among them, corresponding operation logs are generated during device registration, two-way identity authentication and data transmission, and stored in the respective log storage areas of the server and the client, realizing two-way recording of operation logs.

[0097] Embodiment 3

[0098] The purpose of this embodiment is to provide a computer-readable storage medium.

[0099] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a data transmission method based on two-way identity authentication as described in Embodiment 1 of the present disclosure.

[0100] Embodiment 4

[0101] The purpose of this embodiment is to provide an electronic device.

[0102] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in a data transmission method based on two-way identity authentication as described in Embodiment 1 of the present disclosure are implemented.

[0103] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A data transmission method based on two-way identity authentication, It is characterized in that The storage device is used as the client and the PC host is used as the server to perform data transmission between the two ends. The specific steps are as follows: When the client and server connect for the first time, the client sends the device serial number and device certificate identifier to the server to register the device; Based on the TLS authentication method, two-way identity authentication is performed between the client and the server, wherein the server's identity authentication of the client includes verifying whether the client's device serial number and device certificate identifier are consistent with the device serial number and device certificate identifier at the time of registration; After the two-way identity authentication is passed, a transmission key is generated for encrypted data transmission between the server and the client; Among them, corresponding operation logs are generated during device registration, two-way identity authentication and data transmission, and stored in the respective log storage areas of the server and the client, realizing two-way recording of operation logs.

2. A data transmission method based on two-way identity authentication as claimed in claim 1, It is characterized in that The client includes a read-only partition and a hidden partition. The read-only partition stores the client software program for two-way identity authentication, data transmission, and operation log recording with the server. The server side stores the server side software program, which is used for storage device registration, two-way identity authentication, data transmission, and operation log recording.

3. A data transmission method based on two-way identity authentication as claimed in claim 2, It is characterized in that The specific steps of device registration are: After the storage device is inserted into the PC host, the client software program is opened from the read-only partition, and the device certificate is imported through the client software program. After the device certificate is imported, the device serial number and device certificate identifier are sent to the PC host; The PC host opens the server software program, authenticates the received device serial number and device certificate identifier, and stores the device serial number and device certificate identifier in the storage device registration list after passing the authentication.

4. A data transmission method based on two-way identity authentication as claimed in claim 3, It is characterized in that The storage device registration list also records the status of the registered storage devices, including normal status, deregistered status, suspended status, and abnormal status.

5. A data transmission method based on two-way identity authentication as claimed in claim 1, It is characterized in that The specific steps of the two-way identity authentication are: The client initiates an authentication request to the server; The server sends the server certificate to the client; The client verifies the server certificate, verifies that the PC host has been authenticated successfully, and sends the device certificate and the encrypted device serial number and device certificate identifier to the server; The server verifies the device certificate, decrypts and verifies whether the device serial number and device certificate identifier are consistent with those when registered, and successfully completes the authentication of the storage device.

6. A data transmission method based on two-way identity authentication as claimed in claim 5, It is characterized in that The server certificate and device certificate are both issued by a trusted digital certificate authority CA after verifying the identity of the server and the storage device, and have identity authentication and data transmission encryption functions.

7. A data transmission method based on two-way identity authentication as claimed in claim 1, It is characterized in that The generating of the transmission key is specifically as follows: The client calculates the transmission key based on the server certificate, device certificate, device serial number, device certificate identifier and random number, and encrypts it and sends it to the server. After verifying the signature, the server decrypts and obtains the transmission key.

8. A data transmission system based on two-way identity authentication, It is characterized in that With the storage device as the client and the PC host as the server, data transmission between the two ends is carried out, including device registration module, two-way identity authentication module and key generation module: The device registration module is configured as follows: when the client and the server are connected for the first time, the client sends the device serial number and the device certificate identifier to the server to register the device; The two-way identity authentication module is configured to: perform two-way identity authentication between the client and the server based on the TLS authentication method, wherein the server's identity authentication of the client includes verifying whether the device serial number and device certificate identifier of the client are consistent with the device serial number and device certificate identifier at the time of registration; The key generation module is configured to: after the two-way identity authentication is passed, generate a transmission key for data encryption transmission between the server and the client; Among them, corresponding operation logs are generated during device registration, two-way identity authentication and data transmission, and stored in the respective log storage areas of the server and the client, realizing two-way recording of operation logs.

9. An electronic device, Its characteristics include: a memory for non-transitory storage of computer readable instructions; a processor for executing the computer-readable instructions; Wherein, when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 7 is executed.

10. A storage medium, Its characteristics are: The computer-readable instructions are non-transitorily stored, wherein when the computer-readable instructions are executed by a computer, the method of any one of claims 1 to 7 is performed.

Citation Information

Cited By

  • Remote security verification method and system and electronic equipment

    CN119155105A

  • Remote security verification method, system and electronic equipment

    CN119155105B

  • Data security transmission system based on bidirectional authentication mechanism

    CN120074837A