Security server, SP server, terminal, security authorization method and system

By generating encrypted SP service keys for terminals and writing them to SIM cards under the control of a secure server, the privacy requirements of service providers managing their own keys and the control requirements of the secure server over the card writing process are resolved, thus achieving separate control of permissions.

CN113852957BActive Publication Date: 2024-11-08CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010517645.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-09
Publication Date
2024-11-08
Estimated Expiration
2040-06-09

Smart Images

  • Figure CN113852957B_ABST
    Figure CN113852957B_ABST
Patent Text Reader

Abstract

The present invention provides a security server, an SP server, a terminal, a security authorization method and a system, which belong to the field of mobile Internet technology. Among them, the security authorization method applied to the SP server includes: generating an SP business key in response to a first authorization request initiated by a terminal, the first authorization request includes the device identification of the terminal; encrypting the SP business key using the SIM card public key of the terminal and calculating the summary information of the SP business key; sending a second authorization request to the security server, the second authorization request includes the summary information. The technical solution of the present invention can meet the privacy requirements of the SP and the security management and control requirements of the security server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of mobile Internet technology, and in particular to a security server, an SP server, a terminal, a security authorization method and a system. Background Art

[0002] At present, in response to the security needs in the field of Internet of Things, some security service agencies have launched security services based on security modules (Secure Element, SE) and / or subscriber identity modules (Subscriber Identity Module, SIM) cards, including security authentication and secure communication services. In this process, the typical service model is that the security service platform provides authentication and encryption and decryption operations, while some service providers (Service Provider, SP) (especially SPs with their own security service capabilities) hope to complete security authentication and encryption and decryption operations by themselves.

[0003] To meet this requirement, the security service platform needs to write a new SP service key into the SIM card for the SP, and let the SP manage the key by itself, so as to avoid requesting services from the security service platform every time. However, this also means that the security service platform completely hands over the service authority to the SP, which means that it loses control over the service, which is unacceptable to the security service platform. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a security server, an SP server, a terminal, a security authorization method and a system, which can meet the privacy requirements of the SP and the security management and control requirements of the security server.

[0005] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0006] On the one hand, a security authorization method is provided, which is applied to an SP server, and the method includes:

[0007] Generate SP service key for the specified terminal;

[0008] Encrypting the SP service key using the SIM card public key of the terminal, and calculating summary information of the SP service key;

[0009] An authorization request is sent to the security server, carrying the summary information.

[0010] In an optional embodiment of the present invention, after sending the authorization request to the security server, the method further includes:

[0011] receiving an authorization response from the security server, wherein the authorization response includes an authorization instruction signed by the security server;

[0012] An authorization instruction message is sent to the terminal, where the authorization instruction message includes a random number, the authorization instruction, and the SP service key.

[0013] In an optional embodiment of the present invention, after sending the authorization instruction message to the terminal, the method further includes:

[0014] receiving a response message returned by the terminal, wherein the response message includes a SIM card signature of the terminal;

[0015] The response message is sent to the security server.

[0016] The embodiment of the present invention further provides a security authorization method, which is applied to a security server, and the method includes:

[0017] In response to an authorization request from the SP server, generating a random number and an authorization instruction including a security server signature, wherein the authorization request includes summary information of the SP service key;

[0018] An authorization response is sent to the SP server, where the authorization response includes a random number and the authorization instruction.

[0019] In an optional embodiment of the present invention, in response to an authorization request from the SP server, a random number and an authorization instruction including a security server signature are generated, wherein the authorization request includes summary information of the SP service key;

[0020] An authorization response is sent to the SP server, where the authorization response includes a random number and the authorization instruction.

[0021] The embodiment of the present invention further provides a security authorization method, which is applied to a terminal, and the method includes:

[0022] Receive an authorization instruction message returned by the SP server, wherein the authorization instruction message includes a random number, an authorization instruction and an SP service key, and the authorization instruction includes a security server signature;

[0023] The authorization instruction is sent to the SIM card, and the SIM card verifies and executes the authorization instruction.

[0024] In an optional embodiment of the present invention, after sending the authorization instruction to the SIM card, the method further includes:

[0025] receiving a response message returned by the SIM card, wherein the response message includes the SIM card signature of the terminal;

[0026] The response message is sent to the SP server.

[0027] The embodiment of the present invention further provides an SP server, including:

[0028] A key generation module is used to generate an SP service key for a specified terminal;

[0029] A calculation module, used to encrypt the SP service key using the SIM card public key of the terminal, and calculate the summary information of the SP service key;

[0030] The first sending module is used to send an authorization request to a security server, where the authorization request carries the summary information.

[0031] The embodiment of the present invention further provides a security server, including:

[0032] A generating module, configured to generate a random number and an authorization instruction including a security server signature in response to an authorization request from an SP server, wherein the authorization request includes summary information of an SP service key;

[0033] The second sending module is used to send an authorization response to the SP server, where the authorization response includes a random number and the authorization instruction.

[0034] An embodiment of the present invention further provides a terminal, including:

[0035] A receiving module, configured to receive an authorization instruction message returned by the SP server, wherein the authorization instruction message includes a random number, an authorization instruction and an SP service key, and the authorization instruction includes a security server signature;

[0036] The third sending module is used to send the authorization instruction to the SIM card, and the SIM card verifies the authorization instruction and executes the authorization instruction.

[0037] An embodiment of the present invention further provides a security management and control system, comprising the SP server as described above, the security server as described above, and the terminal as described above.

[0038] An embodiment of the present invention further provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the program, the security authorization method as described above is implemented.

[0039] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the security authorization method described above are implemented.

[0040] The embodiments of the present invention have the following beneficial effects:

[0041] In the above scheme, during the key writing process, it is ensured that the business key is only in the hands of the SP server; at the same time, the security server controls the card writing process, that is, the key is written to the SIM card for the SP server under the control of the security server. Combined with the design of the interaction process between the SP server, the security server, and the terminal, the business key is controlled by the SP server, and the security server controls the card writing permission, realizing the separation of permissions and satisfying the privacy needs of the SP and the security management needs of the security server. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a schematic diagram of the structure of a security management and control system according to an embodiment of the present invention;

[0043] Figure 2 A schematic diagram of a flow chart of a security authorization method applied to an SP server according to an embodiment of the present invention;

[0044] Figure 3 A schematic diagram of a flow chart of a security authorization method applied to a security server according to an embodiment of the present invention;

[0045] Figure 4 A schematic diagram of a process flow of a security authorization method applied to a terminal according to an embodiment of the present invention;

[0046] Figure 5 A schematic diagram of a process flow of a security authorization method according to an embodiment of the present invention;

[0047] Figure 6 This is a module diagram of the SP server according to an embodiment of the present invention;

[0048] Figure 7 This is a schematic diagram of a module of a security server according to an embodiment of the present invention;

[0049] Figure 8 Schematic diagram of the modules of the terminal according to the embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0051] The embodiments of the present invention provide a security server, an SP server, a terminal, a security authorization method and a system, which can meet the privacy requirements of the SP and the security management and control requirements of the security server.

[0052] According to the analysis of business needs, the SP server hopes to manage the business key by itself. Therefore, during the key writing process, it should be ensured that the business key is only in the hands of the SP server; at the same time, the security server (i.e., the security service platform) needs to control the card writing process, that is, it is necessary to write the key to the SIM card for the SP server under the control of the security server. To this end, the embodiment of the present invention provides a security management and control system, such as Figure 1 As shown, it includes an SP server, a security server and a terminal. Among them, the terminal includes a terminal application (application, APP) and a SIM card. The keys managed by the SIM card include: a SIM card private key, an SP service key and a security server public key, wherein the SIM card private key is used to sign the SIM card's own messages to identify its own identity, the security server public key is used to verify the identity of the security server, and the SP service key is written from the outside by the security server. The keys managed by the security server include: a security server private key and a SIM card public key, wherein the security server private key is used to sign the security server's own messages to identify its own identity, and the SIM card public key is used to verify the identity of the SIM card. The keys managed by the SP server include: a SIM card public key and an SP service key, wherein the SIM card public key is used to verify the identity of the SIM card and encrypt and transmit data to the SIM card. The SP service key is generated by the SP server and authorized by the security server to be written to the SIM card.

[0053] The embodiment of the present invention provides a security authorization method, which is applied to an SP server, such as Figure 2 As shown, the method includes:

[0054] Step 101: Generate an SP service key for a specified terminal;

[0055] Step 102: Encrypt the SP service key using the SIM card public key of the terminal, and calculate summary information of the SP service key;

[0056] Among them, a summary calculation algorithm can be used, such as MD5, SHA-1 and other algorithms to calculate the summary information.

[0057] Step 103: Send an authorization request to the security server, carrying the summary information.

[0058] In this embodiment, only the summary information of the SP service key is sent to the security server instead of sending the SP service key to the security server, which can ensure that the service key is only controlled by the SP server.

[0059] In an optional embodiment of the present invention, after sending the authorization request to the security server, the method further includes:

[0060] receiving an authorization response from the security server, wherein the authorization response includes an authorization instruction signed by the security server;

[0061] An authorization instruction message is sent to the terminal, where the authorization instruction message includes a random number, the authorization instruction, and the SP service key.

[0062] In this embodiment, the security server is required to send an authorization instruction to ensure the security server's control over the card writing process.

[0063] In an optional embodiment of the present invention, after sending the authorization instruction message to the terminal, the method further includes:

[0064] receiving a response message returned by the terminal, wherein the response message includes a SIM card signature of the terminal;

[0065] The response message is sent to the security server.

[0066] The embodiment of the present invention also provides a security authorization method, which is applied to a security server, such as Figure 3 As shown, the method includes:

[0067] Step 201: In response to an authorization request from an SP server, a random number and an authorization instruction including a security server signature are generated, wherein the authorization request includes summary information of an SP service key;

[0068] Step 202: Send an authorization response to the SP server, where the authorization response includes a random number and the authorization instruction.

[0069] In an optional embodiment of the present invention, after sending the authorization response to the SP server, the method further includes:

[0070] Receiving a response message sent by the SP server, wherein the response message includes a SIM card signature of the terminal;

[0071] The SIM card signature is verified.

[0072] The embodiment of the present invention also provides a security authorization method, which is applied to a terminal, such as Figure 4 As shown, the method includes:

[0073] Step 301: receiving an authorization instruction message returned by the SP server, wherein the authorization instruction message includes a random number, an authorization instruction and an SP service key, and the authorization instruction includes a security server signature;

[0074] Step 302: Send the authorization instruction to the SIM card, which verifies and executes the authorization instruction.

[0075] In an optional embodiment of the present invention, after sending the authorization instruction to the SIM card, the method further includes:

[0076] receiving a response message returned by the SIM card, wherein the response message includes the SIM card signature of the terminal;

[0077] The response message is sent to the SP server.

[0078] like Figure 5 As shown, the security authorization method applied to the security management and control system specifically includes the following steps:

[0079] Step 1: The terminal triggers an authorization request and sends an authorization request to the SP server, which carries SID and DeviceID. SID is the SIM card ID and DeviceID is the device ID of the terminal.

[0080] Step 2: The SP server generates an SP service key;

[0081] Step 3: The SP server encrypts the newly generated SP service key with the SIM card public key and calculates the summary information;

[0082] Step 4: The SP server sends an authorization request to the security server, carrying summary information but not transmitting the newly generated SP service key);

[0083] Step 5: The security server generates a random number and authorization instruction (including the security server signature);

[0084] Step 6: The security server sends the authorization instruction to the SP server. The authorization instruction may carry other parameters in addition to the random number and the security server signature.

[0085] Step 7: The SP server attaches the SP key ciphertext to the authorization instruction and transmits it to the terminal;

[0086] Step 8. The terminal APP sends the authorization instruction to the SIM card;

[0087] Step 9: The SIM card verifies the command and executes it, including writing the SP service key;

[0088] Step 10: The SIM card returns a response to the terminal APP, including the SIM card signature;

[0089] Step 11: The terminal APP returns a response to the SP server, including the SIM card signature;

[0090] Step 12: The SP server returns a response to the security server, including the SIM card signature;

[0091] Step 13: The security server performs response verification and verifies the SIM card signature;

[0092] Step 14: Successful confirmation.

[0093] In this embodiment, during the key writing process, it is ensured that the service key is only in the hands of the SP server; at the same time, the security server controls the card writing process, that is, the key is written to the SIM card for the SP server under the control of the security server. Combined with the design of the interaction process between the SP server, the security server, and the terminal, the service key is controlled by the SP server, and the security server controls the card writing authority, realizing the separation control of the authority, and at the same time meeting the privacy requirements of the SP and the security management requirements of the security server.

[0094] The embodiment of the present invention also provides a SP server, such as Figure 6 As shown, including:

[0095] The key generation module 11 is used to generate an SP service key for a specified terminal;

[0096] A calculation module 12, configured to encrypt the SP service key using the SIM card public key of the terminal, and calculate summary information of the SP service key;

[0097] The first sending module 13 is used to send an authorization request to the security server, carrying the summary information.

[0098] In an optional embodiment of the present invention, the SP server further includes:

[0099] A receiving module, configured to receive an authorization response from the security server, wherein the authorization response includes an authorization instruction signed by the security server;

[0100] The first sending module is further used to send an authorization instruction message to the terminal, where the authorization instruction message includes a random number, the authorization instruction and the SP service key.

[0101] In an optional embodiment of the present invention, the receiving module is further used to receive a response message returned by the terminal, wherein the response message includes a SIM card signature of the terminal;

[0102] The first sending module is further configured to send the response message to the security server.

[0103] The SP server provided in the embodiment of the present application can implement each process implemented by the SP server in the above-mentioned security authorization method embodiment applied to the SP server. To avoid repetition, they are not described here.

[0104] The embodiment of the present invention also provides a security server, such as Figure 7 As shown, including:

[0105] A generating module 21, configured to generate a random number and an authorization instruction including a security server signature in response to an authorization request from an SP server, wherein the authorization request includes summary information of an SP service key;

[0106] The second sending module 22 is used to send an authorization response to the SP server, where the authorization response includes a random number and the authorization instruction.

[0107] In an optional embodiment of the present invention, the security server further includes:

[0108] A receiving module, receiving a response message sent by the SP server, wherein the response message includes a SIM card signature of the terminal;

[0109] The second sending module is also used to verify the signature of the SIM card.

[0110] The security server provided in the embodiment of the present application can implement the various processes implemented by the security server in the above-mentioned security authorization method embodiment applied to the security server. To avoid repetition, they are not repeated here.

[0111] The embodiment of the present invention further provides a terminal, such as Figure 8 As shown, including:

[0112] The receiving module 31 is used to receive the authorization instruction message returned by the SP server, wherein the authorization instruction message includes a random number, an authorization instruction and an SP service key, and the authorization instruction includes a security server signature;

[0113] The third sending module 32 is used to send the authorization instruction to the SIM card, and the SIM card verifies the authorization instruction and executes the authorization instruction.

[0114] In an optional embodiment of the present invention, the receiving module is further used to receive a response message returned by the SIM card, wherein the response message includes a SIM card signature of the terminal;

[0115] The third sending module 32 is further configured to send the response message to the SP server.

[0116] The terminal provided in the embodiment of the present application can implement each process implemented by the terminal in the above-mentioned security authorization method embodiment applied to the terminal. To avoid repetition, it will not be repeated here.

[0117] An embodiment of the present invention further provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the program, the security authorization method as described above is implemented.

[0118] The communication device may be an SP server, or a security server or a terminal.

[0119] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the security authorization method described above are implemented.

[0120] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0121] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A secure authorization method, It is characterized in that Applied to an SP server, the method comprises: Generate SP service key for the specified terminal; Encrypting the SP service key using the SIM card public key of the terminal, and calculating summary information of the SP service key ciphertext; Sending an authorization request to a security server, carrying the summary information; After sending the authorization request to the security server, the method further includes: receiving an authorization response from the security server, wherein the authorization response includes an authorization instruction, and the authorization instruction includes a security server signature and a random number; Sending an authorization instruction message to the terminal, wherein the authorization instruction message includes the authorization instruction and the SP service key ciphertext.

2. The security authorization method according to claim 1, It is characterized in that After sending the authorization instruction message to the terminal, the method further includes: receiving a response message returned by the terminal, wherein the response message includes a SIM card signature of the terminal; The response message is sent to the security server.

3. A secure authorization method, It is characterized in that Applied to a security server, the method comprises: In response to the authorization request of the SP server, an authorization instruction is generated, wherein the authorization instruction includes a security server signature and a random number, and the authorization request includes summary information of the ciphertext of the SP service key; Sending an authorization response to the SP server, where the authorization response includes the authorization instruction; Among them, the SP server generates an SP business key for the designated terminal, encrypts the SP business key using the SIM card public key of the terminal, and calculates the summary information of the SP business key ciphertext; after receiving the authorization response, sends an authorization instruction message to the terminal, and the authorization instruction message includes the authorization instruction and the SP business key ciphertext.

4. The security authorization method according to claim 3, It is characterized in that After sending the authorization response to the SP server, the method further includes: Receiving a response message sent by the SP server, wherein the response message includes a SIM card signature of the terminal; The SIM card signature is verified.

5. A secure authorization method, It is characterized in that Applied to a terminal, the method comprises: Receive an authorization instruction message returned by the SP server, wherein the authorization instruction message includes an authorization instruction and a ciphertext of an SP service key, and the authorization instruction includes a security server signature and a random number; The authorization instruction is sent to the SIM card, and the SIM card verifies and executes the authorization instruction; Among them, the SP server generates an SP business key for the terminal, encrypts the SP business key using the SIM card public key of the terminal, and calculates the summary information of the SP business key ciphertext; sends an authorization request to the security server, carrying the summary information; the authorization instruction message is sent by the SP server after receiving the authorization response of the security server, the authorization response includes an authorization instruction, and the authorization instruction includes a security server signature and a random number.

6. The security authorization method according to claim 5, It is characterized in that After sending the authorization instruction to the SIM card, the method further includes: receiving a response message returned by the SIM card, wherein the response message includes the SIM card signature of the terminal; The response message is sent to the SP server.

7. A SP server, It is characterized in that include: A key generation module is used to generate an SP service key for a specified terminal; A calculation module, used to encrypt the SP service key using the SIM card public key of the terminal, and calculate the summary information of the SP service key ciphertext; A first sending module, configured to send an authorization request to a security server, wherein the authorization request carries the summary information; The first sending module is also used to receive an authorization response from the security server, the authorization response includes an authorization instruction, the authorization instruction includes a security server signature and a random number; send an authorization instruction message to the terminal, the authorization instruction message includes the authorization instruction and SP business key ciphertext.

8. A secure server, It is characterized in that include: A generating module, configured to generate an authorization instruction in response to an authorization request from an SP server, wherein the authorization instruction includes a security server signature and a random number, and the authorization request includes summary information of a ciphertext of an SP service key; A second sending module is used to send an authorization response to the SP server, where the authorization response includes the authorization instruction; Among them, the SP server generates an SP business key for the designated terminal, encrypts the SP business key using the SIM card public key of the terminal, and calculates the summary information of the SP business key ciphertext; after receiving the authorization response, sends an authorization instruction message to the terminal, and the authorization instruction message includes the authorization instruction and the SP business key ciphertext.

9. A terminal, It is characterized in that include: A receiving module, configured to receive an authorization instruction message returned by the SP server, wherein the authorization instruction message includes an authorization instruction and a ciphertext of an SP service key, and the authorization instruction includes a security server signature and a random number; A third sending module is used to send the authorization instruction to the SIM card, and the SIM card verifies the authorization instruction and executes the authorization instruction; Among them, the SP server generates an SP business key for the terminal, encrypts the SP business key using the SIM card public key of the terminal, and calculates the summary information of the SP business key ciphertext; sends an authorization request to the security server, carrying the summary information; the authorization instruction message is sent by the SP server after receiving the authorization response of the security server, the authorization response includes an authorization instruction, and the authorization instruction includes a security server signature and a random number.

10. A security control system, It is characterized in that It comprises the SP server as claimed in claim 7, the security server as claimed in claim 8 and the terminal as claimed in claim 9.

11. A communication device comprising a memory, a processor and a computer program stored in the memory and executable on the processor; It is characterized in that When the processor executes the program, the security authorization method according to any one of claims 1 to 6 is implemented.

12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps in the security authorization method as described in any one of claims 1 to 6 are implemented.