Data processing method and device and related equipment
By using proxy components in business processing equipment to manage keys, it is ensured that only authorized business components can obtain keys, which solves the problem of low security caused by illegal components obtaining keys and improves the security of electronic certificates.
Patent Information
- Application Number
- CN202411118565.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-10-15
AI Technical Summary
In business processing equipment, if there are illegal business components, it will easily lead to key leakage and reduce the security of electronic voucher issuance or verification.
The proxy component determines the key that has an authorization relationship with the business component deployed in the same device, and issues or verifies the electronic certificate based on the key to ensure that only authorized business components can obtain the key and improve security.
It effectively prevents illegal components from obtaining keys, improves the security of electronic certificate issuance or verification, and prevents key leaks.
Smart Images

Figure CN118784248A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to data processing methods, devices and related equipment. Background Art
[0002] Currently, when business processing devices (such as servers) issue and verify electronic certificates, they obtain the key used for certificate issuance or certificate verification from an external key management system through the same business component in the business processing device, and then issue or verify the certificate based on the obtained key.
[0003] However, the inventors discovered in practice that if a business processing device obtains a key from an external key management system for credential issuance or verification, then all business components deployed in the device can obtain the key obtained from the external key management system. Once there are illegal business components in the business processing device, it is easy to cause key leakage, resulting in low security in electronic credential issuance or verification. Summary of the invention
[0004] The embodiments of the present application provide a data processing method, apparatus and related equipment, which can determine, through a proxy component, a key having an authorization relationship with a business component deployed in the same device, so that the business component issues or verifies an electronic certificate based on the key obtained from the proxy component, thereby improving the security of the issuance or verification of the electronic certificate.
[0005] On the one hand, an embodiment of the present application provides a data processing method, which is executed by a first device, in which a first proxy component and a first service component are deployed; the method includes:
[0006] Acquire first business information associated with the target business through the first business component;
[0007] Determine, by the first proxy component, from the first mapping relationship list, a first private key having an authorization relationship with the first business component, and transmit the first private key to the first business component; the first proxy component is used to perform key management on the first business component through the first mapping relationship list;
[0008] The first business component performs a certificate issuance process based on the first private key and the first business information to obtain a first electronic certificate;
[0009] The first electronic certificate is transferred from the first business component to the second business component in the second device; the second business component is the next business component of the first business component; the first electronic certificate is used to indicate the second business component, and when the first public key with an authorization relationship with the second business component is obtained from the second mapping relationship list corresponding to the second proxy component, the first electronic certificate is verified by the first public key; the second proxy component is used to manage the keys of the second business component through the second mapping relationship list; the first public key and the first private key are each other's key pair.
[0010] On the one hand, an embodiment of the present application provides a data processing method, which is executed by a second device, in which a second proxy component and a second service component are deployed; the method includes:
[0011] The first electronic certificate sent by the first business component in the first device is obtained through the second business component; the first business component is the previous business component of the second business component; the first device also includes a first proxy component; the first electronic certificate is obtained by the first business component performing a certificate issuance process based on the first private key and the first business information; the first private key is a private key with an authorization relationship with the first business component determined by the first proxy component from the first mapping relationship list;
[0012] Acquire, through the second proxy component, from the second mapping relationship list, a first public key having an authorization relationship with the second business component; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are a key pair to each other;
[0013] The first electronic certificate is verified using the first public key.
[0014] On the one hand, an embodiment of the present application provides a data processing device, which runs on a first device, in which a first proxy component and a first service component are deployed; the device includes:
[0015] A business information determination module, used to obtain first business information associated with a target business through a first business component;
[0016] A private key acquisition module, used to determine, through the first proxy component, from the first mapping relationship list, a first private key having an authorization relationship with the first business component, and transmit the first private key to the first business component; the first proxy component is used to perform key management on the first business component through the first mapping relationship list;
[0017] The certificate issuance module is used for the first business component to perform certificate issuance processing based on the first private key and the first business information to obtain a first electronic certificate;
[0018] A credential transfer module is used to transfer a first electronic credential from a first business component to a second business component in a second device; the second business component is the next business component of the first business component; the first electronic credential is used to indicate the second business component, and when a first public key having an authorization relationship with the second business component is obtained from a second mapping relationship list corresponding to the second proxy component, the first electronic credential is verified using the first public key; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are each other's key pair.
[0019] On one hand, an embodiment of the present application provides a data processing device, which runs on a second device, in which a second proxy component and a second service component are deployed; the device includes:
[0020] A credential acquisition module, used to acquire a first electronic credential sent by a first business component in a first device through a second business component; the first business component is a previous business component of the second business component; the first device also includes a first proxy component; the first electronic credential is obtained by the first business component performing credential issuance processing based on a first private key and first business information; the first private key is a private key having an authorization relationship with the first business component determined by the first proxy component from a first mapping relationship list;
[0021] A public key acquisition module, used to acquire a first public key having an authorization relationship with a second business component from a second mapping relationship list through a second proxy component; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are a key pair;
[0022] The certificate verification module is used to perform certificate verification processing on the first electronic certificate through the first public key.
[0023] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method provided by the embodiment of the present application.
[0024] In one aspect, the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in the present application.
[0025] In an embodiment of the present application, a first proxy component and a first business component can be deployed in a first device. The first proxy component can be used to perform key management on the first business component, and then the first private key having an authorization relationship with the first business component can be determined through the first proxy component, and then the first business component issues a certificate through the first private key to obtain a first electronic certificate. Furthermore, after the second business component obtains the first electronic certificate, the first public key having an authorization relationship with the second business component can be obtained from the second proxy component corresponding to the second business component, so as to perform certificate verification on the first electronic certificate based on the first public key. Thus, the business component can obtain the key for issuing or verifying the certificate from the proxy component deployed in the same device. The proxy component ensures that only the business component having an authorization relationship with the key can obtain the corresponding key by performing key management, and avoids illegal components from illegally obtaining the key for issuing or verifying the electronic certificate, thereby improving the security of issuing or verifying the electronic certificate. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 It is a structural diagram of a data processing system provided in an embodiment of the present application;
[0028] Figure 2 It is a scenario schematic diagram of a data processing method provided in an embodiment of the present application;
[0029] Figure 3 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0030] Figure 4 This is a schematic diagram of the effect of a service call chain provided by an embodiment of the present application;
[0031] Figure 5 This is a schematic diagram of the effect of an electronic certificate chain provided by an embodiment of the present application;
[0032] Figure 6 It is a schematic diagram of a process for updating an electronic certificate chain provided by an embodiment of the present application;
[0033] Figure 7 It is a schematic diagram of a process for updating an electronic certificate chain provided by an embodiment of the present application;
[0034] Figure 8It is a flowchart of a method for determining an electronic certificate chain provided in an embodiment of the present application;
[0035] Fig. 9 It is a scenario schematic diagram of a data processing method provided in an embodiment of the present application;
[0036] Fig.10 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0037] Fig.11 This is a schematic diagram of the effect of a service configuration provided by an embodiment of the present application;
[0038] Fig.12 This is a schematic diagram of the effect of storing data in a database provided by an embodiment of the present application;
[0039] Fig.13 This is a scenario diagram of a key authorization method provided in an embodiment of the present application;
[0040] Fig.14 This is a schematic diagram of a scenario of a key acquisition process provided in an embodiment of the present application;
[0041] Fig.15 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0042] Fig.16 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0043] Fig.17 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0044] Fig.18 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0046] See also Figure 1 , Figure 1 Schematic diagram of a data processing system provided in an embodiment of the present application. Figure 1As shown, the data processing system may include terminal devices (such as device 11a, device 12a, device 13a) and servers (also referred to as business processing devices, such as device 21a, device 22a, device 23a). It can be understood that Figure 1 The number of terminal devices and service processing devices in the figure is only illustrative, and any number of terminal devices and service processing devices may be provided according to implementation requirements. The terminal devices (such as device 11a, device 12a, and device 13a) may communicate with the service processing devices through a network (i.e., a medium providing a communication link through a wired or wireless communication link or an optical fiber cable, etc.) to transmit data.
[0047] It is understandable that a client may be running on the terminal device (such as device 12a), and the client may be a program that provides local services to users (also called business objects, operation objects). Each business processing device may be a server corresponding to the client, and each business processing device may run a program for providing resources, service data and other services to the client. It is understandable that the client running on the terminal device may also be called an application client, a business client, etc. For example, the client running on the terminal device may be a client for purchasing products (such as commodities, insurance products, financial products, etc.) (such as a client of an e-commerce platform or any video client, communication client, etc. with a product purchase function), and then in the conventional product purchase process, the business object (such as user U1) may send a request to purchase a product to the business processing device through the client K1 in the terminal device (such as device 11a), and then the business processing device for processing the product purchase request in each business processing device may perform corresponding business processing on the business request to complete the business of purchasing the product for user U1. It can be understood that in the embodiment of the present application, the request for purchasing the product can be processed step by step through the business components deployed on each business processing device. For example, the business request can be obtained through the business component A1 in the device 21a, and the user who initiated the business request can be verified. After the verification is passed, the business request is verified by the business component A2 in the device 22a via SMS. After the SMS verification is passed, the user is deducted through the business component A3 in the device 21a, thereby completing the processing of the entire business request. Different business components can use electronic certificates to ensure that the corresponding business processing is carried out and to ensure the authentication of the key business data of the business request.
[0048] It is understandable that the terminal device (such as device 11a) may include but is not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle terminals, aircraft, smart speakers, smart home appliances, etc., and is not limited here. The server (such as device 21a) can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms, and is not limited here.
[0049] See also Figure 2 , Figure 2 Schematic diagram of a data processing method provided in an embodiment of the present application. Figure 2 As shown, the first device 21a may run a first proxy component 201a and a first service component 202a. The first proxy component may perform key management on the first service component through a first mapping relationship list. It should be understood that the first service component 202a may obtain first service information associated with the target service (such as Figure 2 As shown in 205a in the figure, the first business information may include at least hash information of key business data associated with the target business (such as key hash information), and the key business data may refer to key information for the target business, such as information of the business object initiating the target business (such as the unique identifier and identity information of the object), key parameter information for executing the target business (such as the product and amount indicated by the business for purchasing the product), and the like.
[0050] Furthermore, the first service component may request the first proxy component to obtain the first private key (eg Figure 2 In step S221a), the first proxy component can select from the first mapping relationship list (such as Figure 2 203a in the example) determines a first private key (such as Figure 2 ), and then the first proxy component returns the first private key to the first business component (as shown in 204a in FIG. Figure 2 Step S222a in the process). It should be understood that the first mapping relationship list can be a list for recording keys (private keys or public keys) with authorization relationships with various business components in the device 21a, thereby determining the first private key with authorization relationship with the first business component from the first mapping relationship list. It should be understood that in the embodiment of the present application, the first business component can only obtain the key with authorization relationship with the first business component from the first proxy component. If the first private key requested by the first business component does not have authorization relationship with the first business component, the first proxy component will not return the first private key to the first business component.
[0051] Furthermore, the first business component may perform a credential issuance process based on the first private key and the first business information (eg Figure 2 206a in the figure), obtain the first electronic certificate (as shown in Figure 2 207a in the figure). The credential issuance process may be to sign the first business information based on the first private key, and then determine the electronic credential based on the generated signature. The first electronic credential may be an electronic credential issued based on the first private key and the first business information. It should be understood that the first electronic credential may be used to prove to the second business component that the corresponding business processing has been performed by the first business component, so as to avoid the processing process of the business component being bypassed, thereby improving the security of the business processing process.
[0052] Furthermore, the first business component may transfer the first electronic certificate to the second business component (eg Figure 2 Step S223a in the above example), and then the second business component 209a can request the second proxy component 208a to obtain the first public key (such as Figure 2 The first public key may be a public key corresponding to the first private key, and is used to verify the first electronic certificate. It should be understood that the second service component may be run on the device 22a, and the device 22a may also include a second proxy component (such as Figure 2 It should be understood that the second proxy component can be represented by a second mapping relationship list (such as Figure 2 Then, the second proxy component can determine the first public key (such as 210a in FIG. 1 ) that has an authorization relationship with the second service component from the second mapping relationship list. Figure 2 211a in the figure). It should be understood that the second mapping relationship list can be a list for recording keys (private keys or public keys) with authorization relationships with various business components in the device 22a, thereby determining the first public key with authorization relationship with the second business component from the second mapping relationship list. It should be understood that in the embodiment of the present application, the second business component can only obtain the key with authorization relationship with the second business component from the second proxy component. If the first public key requested by the second business component does not have an authorization relationship with the second business component, the second proxy component will not return the first public key to the second business component.
[0053] Furthermore, the second proxy component may return the first public key to the second service component (eg Figure 2 Then, the second service component can perform a certificate verification process on the first electronic certificate based on the first public key (such as Figure 2The credential verification process may be to perform signature verification on the signature in the first electronic credential based on the first public key. Only when the signature verification succeeds, it is determined that the first electronic credential has passed the verification, and then the corresponding business processing can be performed through the second business component.
[0054] It should be noted that before collecting relevant user data and during the process of collecting relevant user data (such as information about business objects in business requests), this application can display a prompt interface, pop-up window or output voice prompt information. The prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining user-related data after obtaining the user's confirmation operation on the prompt interface or pop-up window, otherwise (that is, when the user's confirmation operation on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining user-related data are terminated, that is, the user's relevant data is not obtained. In other words, all user data collected by this application are collected with the user's consent and authorization, and the collection, use and processing of relevant user data need to comply with relevant laws, regulations and standards in the relevant regions.
[0055] It is understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0056] For further information, see Figure 3 , Figure 3 1 is a flow chart of a data processing method provided by an embodiment of the present application. The method can be performed by a first device. For example, the first device can be the above-mentioned device 21a, and a first proxy component and a first business component are deployed in the first device. The method can at least include the following steps S101-S104.
[0057] S101. Acquire first business information associated with a target business through a first business component.
[0058] The target business may be any business. For example, the target business may be a business for purchasing products (such as commodities, financial products, insurance products, etc.).
[0059] It is understandable that the processing process for the target business can be processed step by step through multiple business components, the target business is associated with a business call chain, the business call chain includes multiple business components, and each business component is connected according to the processing order. It is understandable that a key (public key or private key) with an authorization relationship can be configured for each business component.
[0060] It should be understood that the service call chain can be configured through the service management client for the service configuration object used for service configuration, and the keys with authorization relationships corresponding to the various service components can also be obtained by configuring the service configuration object through the service management client. The service configuration object can be an object of the service component corresponding to the processing flow for configuring the service, and the service management client can be a client for performing service management, and the service management client can be run in a terminal device different from the terminal device corresponding to the service configuration object.
[0061] For example, see Figure 4 , Figure 4 This is a schematic diagram of the effect of a service call chain provided by an embodiment of the present application. Figure 4 As shown in the figure, the business configuration object U1 configures the business call chain L1 for business Y1 through the business management client as follows: business component A1→business component A2→business component A3. Then, for business Y1, after the server obtains the business request for business Y1, it can firstly call business component A1 (such as Figure 4 401a in FIG. 401a) performs business processing on the business request, and then passes the business component A2 (such as Figure 4 402a in FIG. 4 ) performs corresponding business processing based on the processing result of business component A1, and then performs corresponding business processing through business component A3 (such as Figure 4 403a in the figure) performs corresponding business processing based on the processing result of business component A2 to complete a complete business processing process for business Y1. During the processing of business Y1, each business component can issue electronic certificates to ensure that each business component has performed corresponding business processing, thereby improving the reliability and security of the business.
[0062] It should be understood that the first business component can be any business component except the last business component in the business call chain. The first business component can be the first business component in the business call chain, or it can be a non-first business component, which is not limited here. For example, the business call chain L1 for business Y1 is: business component A1→business component A2→business component A3. In the processing of business Y1, business component A1 can be used as the first business component first, so that business component A1 performs corresponding business processing, and then business component A2 can be used as the first business component to perform corresponding business processing, thereby realizing the business credential flow process for business Y1.
[0063] Among them, the first business information can be business information used to determine the electronic certificate to be transferred to the next business component. It should be understood that the business information (such as the first business information) may include hash information of key business data used for business certificate circulation and pre-credential hash information. The business information may include the key business data itself, or it may not include the key business data itself, which is not limited here. For example, in some cases, if the amount of key business data is large, it is not necessary to add the key business data itself to the electronic certificate, so the key business data may not be included in the business information (such as the first business information) determined by each business component.
[0064] Among them, the key business data can be key information for the target business, such as information about the business object that initiates the target business, key parameter information for executing the target business, etc. For example, for a transaction business for purchasing products, the determined key business data can include information about the business object that initiates the transaction (such as unique identification information, identity information, etc. of the business object), and the key parameter information for executing the transaction business can include information about the purchased product (such as product identification, product name, etc.), the amount to be traded, etc., which are not limited here. It can be understood that the pre-credential hash information can be the hash information of the previous electronic credential (such as can be called the pre-credential) in the electronic credential chain associated with the target business of the electronic credential to be issued. It should be understood that the previous electronic credential of the electronic credential to be issued in the electronic credential chain can be the last electronic credential of the current electronic credential chain. It should be understood that if the electronic credential to be issued is the first electronic credential, there is no electronic credential before the electronic credential to be issued, then the value of the pre-credential hash information in the corresponding business information can be a null value. If the electronic certificate to be issued is not the first electronic certificate in the electronic certificate chain, the preceding certificate hash information in the corresponding business information may be the hash information of the previous electronic certificate (such as the preceding electronic certificate) of the electronic certificate to be issued.
[0065] It should be understood that the electronic certificate chain can be a chain of electronic certificates generated in the process of processing the target business. An electronic certificate chain can include at least one electronic certificate, and each electronic certificate is connected in sequence according to the order of issuance, and the latter electronic certificate can include the hash information of the previous electronic certificate (i.e., the hash information of the previous certificate). It should be understood that different electronic certificates can be distinguished based on the key business data corresponding to the electronic certificate, that is, the hash information of the key business data in the business information of different electronic certificates is different. It should be understood that in the process of business processing through different business components, the electronic certificate chain can be transferred to each business component according to the calling order of each business component in the business call chain, so that after the corresponding business processing is performed by each business group, the electronic certificate chain is updated by the electronic certificate issued by itself, so as to obtain the electronic certificate chain transferred to the next business component. It should be understood that after all business components in a business call chain are processed, the number of electronic certificates in the electronic certificate chain finally generated can be one or more, which is not limited here, and is specifically determined according to actual business needs. It should be understood that by circulating the electronic certificate chain between various business components, the electronic certificate chain can be used to ensure that each business component has executed the corresponding business processing steps, avoid illegal tampering with the processing logic of a certain business component, and improve the security and reliability of business execution.
[0066] For example, see Figure 5 , Figure 5 This is a schematic diagram of the effect of an electronic certificate chain provided by an embodiment of the present application. Figure 5 As shown, the electronic certificate chain 500a may be an electronic certificate chain for business Y1, in which a plurality of electronic certificates may be arranged in the order of issuance. For example, the electronic certificate chain may include electronic certificate M1 (eg Figure 5 501a in FIG. 5), electronic certificate M2 (as shown in FIG. Figure 5 502a in FIG. 1 ), electronic certificate M3 (as shown in FIG. Figure 5503a in the electronic certificate chain). Each electronic certificate in the electronic certificate chain can be obtained by issuing certificates by each business component in the above-mentioned business call chain. Among them, the first electronic certificate in the electronic certificate chain 800a is the electronic certificate M1, and the business information in the electronic certificate M1 may include the preceding certificate hash information H1 and the hash information HG1 of the key business data G1. The preceding certificate hash information H1 may be a null value, and the key business data G1 may be determined from the business request. The next electronic certificate of the electronic certificate M1 is the electronic certificate M2. The business information in the electronic certificate M2 may include the preceding certificate hash information H2 and the hash information HG2 of the key business data G2. The preceding certificate hash information H2 may be the hash information of the electronic certificate M1, and the key business data G2 may be determined based on the key business data G1 corresponding to the electronic certificate M1. The next electronic certificate of electronic certificate M2 is electronic certificate M3. The business information in electronic certificate M3 may include the previous certificate hash information H3 and the hash information HG3 of key business data G3. The previous certificate hash information H3 may be the hash information of electronic certificate M2. The key business data G3 may be determined based on the key business data G2 corresponding to the electronic certificate M2.
[0067] Optionally, in an embodiment of the present application, if the first business component is the first business component of the business call chain, the first business information may be determined based on the business request obtained by the first business component. Specifically, the key business data corresponding to the first business information may be determined based on the business request obtained by the first business component. The business request may be a request for a target business initiated by a business object. For example, the target business may be a business for purchasing insurance products, and the business request may be a business request for business object U1 to purchase insurance product C1, so that information such as business object U1, product C1, and amount of product C1 in the business request may be determined as key business data.
[0068] Specifically, the business call chain corresponding to the target business includes multiple business components, and the first business component is the first business component among the multiple business components; then, obtaining the first business information associated with the target business through the first business component may include the following steps: performing business processing on the business request associated with the acquired target business through the first business component, and determining the first key business data used for business credential circulation from the business request; further, performing hash calculation on the first key business data to obtain the first hash information of the first key business data; further, determining the null value as the first pre-credential hash information associated with the first electronic credential to be generated; further, determining the first business information based on the first hash information and the first pre-credential hash information.
[0069] It should be understood that when the first business component is the first business component in the business call chain, the key business data (i.e., the first key business data) used for business credential circulation can be determined based on the business request obtained by the first business component. The first key business data can be the key business data determined based on the business request. The specific determination method can refer to the above-mentioned relevant description and will not be elaborated here.
[0070] The first hash information may be hash information determined for the first key business data. It should be understood that the hash calculation may be performed on the first key business data based on a hash calculation function, for example, the hash calculation may be performed using a hash calculation function such as MD5 (a hash calculation method), SHA-1 (a hash calculation method), or SHA-256 (a hash calculation method), which is not limited here.
[0071] It should be understood that when the first business component is the first business component, it means that no business component has generated an electronic certificate before this, so there is no electronic certificate before the electronic certificate to be generated, and the corresponding pre-credential hash information is a null value.
[0072] Optionally, in an embodiment of the present application, if the first business component is not the first business component in the business call chain, the first business information can be determined based on the electronic certificate (ie, the second electronic certificate) sent by the previous business component (ie, the third business component) of the first business component.
[0073] Specifically, the business call chain corresponding to the target business includes multiple business components, the first business component and the second business component both belong to multiple business components, the multiple business components also include a third business component, and the third business component is the previous business component of the first business component; then, obtaining the first business information associated with the target business through the first business component may include the following steps: obtaining the second electronic certificate sent by the third business component through the first business component; the second electronic certificate includes the second business information; the second business information is determined by the third business component; further, the first business component performs certificate verification on the second electronic certificate, and when the verification of the second electronic certificate is successful, the first business information associated with the target business is determined based on the second electronic certificate.
[0074] Among them, the third business component can be the previous business component of the first business component in the business call chain. It should be understood that the third business component can be the first business component of the business call chain, or it may not be the first business component in the business call chain, which is not limited here. It should be understood that including the third business component before the first business component indicates that the first business component is not the first business component in the business call chain. It should be understood that the third business component can send the second electronic certificate to the first business component.
[0075] Among them, the second electronic certificate can be an electronic certificate sent by the third business component to the first business component. The second electronic certificate can include the second business information, and the second business information can refer to the relevant description of the first business information for the introduction of the second business information, which will not be repeated here. It should be understood that the second electronic certificate can be the first electronic certificate in the electronic certificate chain, or it can be a non-first electronic certificate in the electronic certificate chain, which is not limited here. It should be understood that if the second electronic certificate is the first electronic certificate in the electronic certificate chain, the preceding certificate hash information in the second business information can be a null value, and if the second electronic certificate is not the first electronic certificate in the electronic certificate chain, the preceding certificate hash information in the second business information can be the hash information of the previous electronic certificate of the second electronic certificate in the electronic certificate chain. It should be understood that the second business information is determined by the third business component, and the method for the third business component to determine the second business information can refer to the relevant description of the first business component determining the first business information, which will not be repeated here.
[0076] It should be understood that the determination of the first business information associated with the target business based on the second electronic certificate may be to directly determine the second business information in the second electronic certificate as the first business information, or may be to generate new key business data (i.e., third key business data) based on the key business data (i.e., second key business data) corresponding to the second business information in the second electronic certificate, and then determine the first business information based on the new key business data, which may be determined based on business needs, which is not limited here. Among them, if the business processing policy of the first business component is a processing policy (i.e., first processing policy) for indicating that the key business data of the target business is not updated, then the second business information in the second electronic certificate may be directly determined as the first business information; if the business processing policy of the first business component is a processing policy (i.e., first processing policy) for indicating that the key business data of the target business is updated, then the new key business data (i.e., third key business data) may be generated based on the key business data (i.e., second key business data) corresponding to the second business information in the second electronic certificate, and then determine the first business information based on the new key business data.
[0077] The business processing strategy may be a strategy for the first business component to perform business processing. The first processing strategy may be a strategy for indicating that key business data is updated. The second processing strategy may be a strategy for indicating that key business data is updated. It should be understood that the business processing strategy of a business component is determined based on actual business needs and is not limited here.
[0078] For example, in some scenarios, the target business is the business of purchasing products, and the business call chain of the target business includes: business component A1→business component A2. Business component A1 can obtain the business request of business object U1 to purchase product C1, and business component A1 can determine that key business data G1 includes information such as business object U1 and product C1 identification. Business component A2 can be used for SMS verification, so the business processing process of business component A2 does not involve changes to business key data, that is, the business component A2 may not update the business key data of the target business, that is, the business processing strategy of business component A2 is the first processing strategy.
[0079] For example, in some scenarios, the target business is the business of purchasing products, and the business call chain of the target business includes: business component A1→business component A3. Business component A1 can obtain the business request of business object U1 to purchase product C1, and business component A1 can determine that key business data G1 includes information such as business object U1 and product C1 identifiers, wherein the identifier of product C1 in key business data G1 is an external product identifier for docking with customers. Business component A3 can be used to convert the identifier of product C1 into an internal product identifier for docking with the product system. Therefore, business component A3 can convert the product identifier of product C1 in business key data G1 (from an external product identifier to an internal product identifier), and determine business key data G2 based on the business key data G1 after the converted product identifier. In other words, the business component A3 can be used to update the business key data of the target business, that is, the business processing strategy of business component A3 is the second processing strategy.
[0080] Specifically, the second business information includes second hash information of second key business data and second pre-credential hash information; then, determining the first business information associated with the target business based on the second electronic certificate may include the following steps: if the business processing policy of the first business component is a first processing policy that does not update key business data used for business credential circulation, then the second hash information and the second pre-credential hash information are determined as the first business information associated with the target business.
[0081] The second key business data may be key business data corresponding to the second business information, and the second hash information may be hash information of the second key business data. The second pre-credential hash information may be pre-credential hash information of the second electronic credential. It should be understood that the introduction of the first processing strategy can refer to the above-mentioned related description, which will not be repeated here.
[0082] Specifically, the second business information includes second hash information of second key business data; then, determining the first business information associated with the target business based on the second electronic certificate may include the following steps: if the business processing strategy of the first business component is a second processing strategy for updating key business data used for business certificate circulation, the first business component determines the third key business data based on the second key business data, performs hash calculation on the third key business data, and obtains third hash information of the third key business data; further, performs hash calculation on the second electronic certificate to obtain third pre-certificate hash information associated with the first electronic certificate to be generated; further, based on the third hash information and the third pre-certificate hash information, determine the first business information associated with the target business.
[0083] It should be understood that the introduction to the second processing strategy can refer to the above-mentioned related description and will not be repeated here.
[0084] The third key business data may be new key business data determined by the first business component based on the second key business data, and may be specifically determined based on the second processing strategy, which is not described in detail here. It should be understood that the third hash information may refer to the hash information of the third key business data, and the method for performing hash calculation may refer to the above-mentioned related description, which is not described in detail here.
[0085] The third pre-credential hash information may be the hash information of the second electronic credential. It should be understood that the second electronic credential may be the last electronic credential in the electronic credential chain acquired by the first business component, that is, the previous electronic credential of the electronic credential to be issued. Therefore, the pre-credential hash information of the electronic credential to be issued is the hash information of the second electronic credential (that is, the third pre-credential hash information).
[0086] It should be understood that the credential verification processing performed on the second electronic credential by the first business component can be used to verify the signature and the previous credential hash in the second electronic credential, thereby ensuring that the second electronic credential is sent by the third business component and that the electronic credential before the second electronic credential has not been tampered with.
[0087] Specifically, the second electronic certificate is the last electronic certificate in the electronic certificate chain transferred to the first business component, and the electronic certificate chain also includes a third electronic certificate, which is the previous electronic certificate of the second electronic certificate; the second electronic certificate includes a second signature, and the second signature is obtained by signing the second business information based on the second private key that has an authorization relationship with the third business component; the second business information includes the second pre-credential hash information; then, the first business component performs credential verification processing on the second electronic certificate, which may include the following steps: determining, by the first proxy component, from the first mapping relationship list, the second public key corresponding to the second private key; key, and transmit the second public key to the first business component; there is an authorization relationship between the second public key and the first business component; further, based on the second public key and the second business information, the second signature is signature verified to obtain a signature verification result; further, a third electronic certificate is determined from the electronic certificate chain, a hash calculation is performed on the third electronic certificate to obtain the verification hash information corresponding to the third electronic certificate, and the second pre-certificate hash information and the verification hash information are compared to obtain a comparison result; further, if the signature verification result indicates that the verification is successful, and the comparison result indicates that the second pre-certificate hash information and the verification hash information are consistent, it is determined that the second electronic certificate verification is successful.
[0088] The third electronic certificate is the previous electronic certificate of the second electronic certificate. It should be understood that if the third electronic certificate is included before the second electronic certificate, it means that the second electronic certificate is not the first electronic certificate in the electronic certificate chain. Then, under normal circumstances, the previous certificate hash information in the second electronic certificate is the hash information of the third electronic certificate.
[0089] It should be understood that the second signature may be a signature determined by the third business component and included in the second electronic certificate. The second private key refers to a private key used to determine the second signature, and the second private key may have an authorization relationship with the third business component. It should be understood that the third business component may obtain the second signature by signing the second business information with the second private key, and then determine the second electronic certificate based on the second signature and the second business information.
[0090] It should be understood that the first proxy component can be a component for key management of the first business component. The first mapping relationship list can be a list for recording keys (private keys or public keys) with authorization relationships with various business components in the first device. It should be understood that the first proxy component can be used to determine the second public key corresponding to the second private key from the first mapping relationship list when obtaining a request from the first business component for obtaining a public key (i.e., the second public key) corresponding to the second private key, and transmit the second public key to the first business component. It should be understood that the second public key refers to the public key corresponding to the second private key, that is, the second private key and the second public key constitute a key pair. It should be understood that there is an authorization relationship between the second public key and the first business component, so the first proxy component will return the second public key to the first business component, thereby enabling the key to be given only to the business component with the authorization relationship, which helps to improve the security of the key.
[0091] It should be understood that the signature verification result may be the result obtained by performing signature verification processing on the second signature based on the second public key and the second business information. The signature verification result may indicate that the verification is successful, or it may indicate that the verification fails. It should be understood that if the signature verification result may indicate that the verification is successful, it means that the second electronic certificate is an electronic certificate issued by the third business component, and the content in the second electronic certificate has not been tampered with. Otherwise, it means that the second electronic certificate is not an electronic certificate issued by the third business component, and its content may have been tampered with, and then the certificate verification of the second electronic certificate fails.
[0092] It should be understood that the verification hash information can be the hash information of the third electronic certificate determined when the second electronic certificate is subjected to the certificate verification process, and is used to verify the second pre-credential hash information. The comparison result can be the result obtained by comparing the second pre-credential hash information and the verification hash information, and the comparison result can be used to indicate that the second pre-credential hash information and the verification hash information are consistent, or to indicate that the second pre-credential hash information and the verification hash information are inconsistent. It should be understood that if the comparison result is used to indicate that the second pre-credential hash information and the verification hash information are consistent, it means that the second pre-credential hash information is successfully verified, and further indicates that the previous electronic certificate of the second electronic certificate is a correct electronic certificate; otherwise, the second pre-credential hash information is successfully verified, and further indicates that the previous electronic certificate of the second electronic certificate is an incorrect electronic certificate, that is, the second electronic certificate or the previous electronic certificate of the second electronic certificate may be maliciously tampered with, and then the certificate verification of the second electronic certificate fails.
[0093] It should be understood that in the embodiment of the present application, if the signature verification result indicates that the verification is successful, and the comparison result indicates that the second pre-credential hash information is consistent with the verification hash information, then it is determined that the second electronic credential is successfully verified. On the contrary, if the signature verification result indicates that the verification fails, or the comparison result indicates that the second pre-credential hash information is inconsistent with the verification hash information, then it is determined that the second electronic credential is failed to be verified.
[0094] It should be understood that if the verification of the second electronic certificate fails, the first business component will no longer perform the corresponding business processing, and the business components after the first business component will no longer perform the corresponding business processing, and a prompt message indicating the request failure can be returned to the business object.
[0095] Optionally, if the second electronic certificate is the first electronic certificate in the electronic certificate chain, the preceding certificate hash information in the second electronic certificate may be a null value. Then, when performing certificate verification processing on the second electronic certificate, if the preceding certificate hash information in the second electronic certificate may be a null value, then when it is determined that the second electronic certificate is the first electronic certificate in the electronic certificate chain, it is determined that the verification of the second preceding certificate hash information of the second electronic certificate is successful. Conversely, if the preceding certificate hash information in the second electronic certificate may be a null value, then when it is determined that the second electronic certificate is not the first electronic certificate in the electronic certificate chain, it is determined that the verification of the second preceding certificate hash information of the second electronic certificate has failed.
[0096] Specifically, the second electronic certificate is the last electronic certificate in the electronic certificate chain that flows to the first business component; the second electronic certificate includes a second signature, and the second signature is obtained by signing the second business information based on the second private key that has an authorization relationship with the third business component; the second business information includes the second pre-credential hash information; then, the first business component performs credential verification processing on the second electronic certificate, which may include the following steps: determining the second public key corresponding to the second private key from the first mapping relationship list through the first proxy component, and transmitting the second public key to the first business component; there is an authorization relationship between the second public key and the first business component; further, based on the second public key and the second business information, the second signature is signature verified to obtain a signature verification result; further, if the second pre-credential hash information in the second electronic signature is a null value, and the second electronic certificate is the first electronic certificate in the electronic certificate chain, it is determined that the second pre-credential hash information is successfully verified; if the signature verification result indicates that the verification is successful, and the second pre-credential hash information is successfully verified, it is determined that the second electronic certificate is successfully verified.
[0097] S102. Determine, through the first proxy component, from the first mapping relationship list, a first private key having an authorization relationship with the first business component, and transmit the first private key to the first business component; the first proxy component is used to perform key management on the first business component through the first mapping relationship list.
[0098] The first proxy component may be a component for performing key management on a business component in the first device, and the business component in the first device includes a first business component. It should be understood that in the first device, each business component and the first proxy component may communicate securely, for example, a secure connection may be established between the first proxy component and the first business component via a local socket, and then the first business component may exchange data with the first proxy component via the secure connection.
[0099] It should be understood that, based on the above description, the first mapping relationship list can be a list for recording keys (private keys or public keys) having an authorization relationship with each business component in the first device. It should be understood that the first business component can send a request (or instruction) for obtaining the first private key to the first proxy component, and then the first proxy component can perform component verification on the first business component, and after the component verification is successful, determine the first private key that has an authorization relationship with the first business component from the first mapping relationship list. It should be understood that in the first mapping relationship list, the authorization relationship between each business component in the first device and the corresponding key (public key or private key) can be recorded, and the specific key value of the first private key can be recorded.
[0100] It should be understood that the first private key can be a private key for the first business component to issue a certificate for the first business information. The first private key should have an authorization relationship with the first business component. Whether the first private key has an authorization relationship with the first business component can be determined by the first mapping relationship list. It should be understood that the first private key can be determined based on the information of the component signer (also known as the signature object, signature function) corresponding to the first business component. The component signer can be a function used in the component to sign the business information. For example, a key pair (including a private key and a public key) is generated based on the name of the signer of the first business component, and the private key (such as the first private key) is authorized to the first business component, and the public key (such as the first public key) is authorized to the next business component of the first business component. Generally speaking, the signer corresponding to a business component can include one or more, which is not limited here. Then, the number of first private keys can be consistent with the number of signers, and the number of first public keys can also be consistent with the number of signers.
[0101] S103: The first business component performs a certificate issuance process based on the first private key and the first business information to obtain a first electronic certificate.
[0102] It should be understood that the first electronic certificate may be an electronic certificate issued by the first business component. It should be understood that the first electronic certificate may be obtained by the first business component performing a certificate issuance process on the first private key and the first business information. The certificate issuance process may include signing the first business information based on the first private key to obtain corresponding signature information, and then determining the first electronic certificate based on the corresponding signature information.
[0103] Specifically, the first business component performs certificate issuance processing based on the first private key and the first business information to obtain the first electronic certificate, which may include the following steps: the first business component performs signature processing on the first business information based on the first private key to obtain a first signature, and determines the first electronic certificate based on the first signature.
[0104] Among them, the first signature can be a signature obtained by signing the first business information based on the first private key. It should be understood that determining the first electronic certificate based on the first signature can be to generate the first electronic certificate based on the first signature and the first business information, or to append the first signature to the previous electronic certificate of the electronic certificate to be issued (that is, the last electronic certificate in the current electronic certificate chain) to obtain the first electronic certificate. It should be understood that the method for determining the first electronic certificate can be determined according to the business processing policy of the first business component. It should be understood that the number of first signatures generated can be consistent with the number of signatories corresponding to the first business component, that is, consistent with the number of first private keys with authorization relationships obtained. For example, the first business component includes two signers (signer Q1 and signer Q2). Then, the first business component can obtain the private key S01 corresponding to the signer Q1 and the private key S02 corresponding to the signer Q2, so that the first business information can be signed based on the private key S01 to obtain the signature Sig1, and the first business information can be signed based on the private key S02 to obtain the signature Sig2, so that the signature Sig1 and the signature Sig2 can be determined as the first signature.
[0105] Optionally, the business call chain corresponding to the target business includes multiple business components, and the first business component is the first business component among the multiple business components; then, determining the first electronic certificate based on the first signature may include: generating the first electronic certificate based on the first signature and the first business information.
[0106] Optionally, the business call chain corresponding to the target business includes multiple business components, and the multiple business components also include a third business component, which is the previous business component of the first business component, and the third business component is used to send the second electronic certificate to the first business component; then, determining the first electronic certificate based on the first signature may include: if the business processing strategy of the first business component is a first business processing strategy that does not update the key business data used for the business certificate circulation, adding the first signature to the second electronic certificate to obtain the first electronic certificate. In other words, when the first business component is not used to update the key business data, the certificate issuance process is performed, that is, the signature information of the first business component itself is appended to the current last electronic certificate (such as the second electronic certificate) to obtain the electronic certificate issued by itself.
[0107] Optionally, the business call chain corresponding to the target business includes multiple business components, and the multiple business components also include a third business component, which is the previous business component of the first business component, and the third business component is used to send a second electronic certificate to the first business component; then, determining the first electronic certificate based on the first signature may include: if the business processing strategy of the first business component is a second business processing strategy for updating key business data used for business certificate circulation, generating the first electronic certificate based on the first signature and the first business information. In other words, when the first business component is used to update key business data, the certificate issuance process is performed, that is, a new electronic certificate is determined based on the signature information and the first business information of the first business component itself, thereby obtaining the electronic certificate issued by itself.
[0108] S104, transferring the first electronic certificate from the first business component to the second business component in the second device; the second business component is the next business component of the first business component; the first electronic certificate is used to indicate the second business component, and when a first public key having an authorization relationship with the second business component is obtained from a second mapping relationship list corresponding to the second proxy component, the first electronic certificate is verified by using the first public key; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are each other's key pair.
[0109] It should be understood that the second service component can be the next service component of the first service component in the service call chain, and the second device can be an electronic device running the second service component. It should be understood that the second device and the first device can be the same service component or different service components, which is not limited here.
[0110] It should be understood that when the first electronic certificate is transferred from the first business component to the second business component in the second device, the electronic certificate chain can also be updated based on the determined first electronic certificate, and then the updated electronic certificate chain can be sent to the second business component, so that the second business component can perform certificate verification processing on the received first electronic certificate. It should be understood that updating the electronic certificate chain based on the first electronic certificate can be to determine the first electronic certificate as the electronic certificate chain, or to replace the last electronic certificate in the electronic certificate chain based on the first electronic certificate, or to add the first electronic certificate after the last electronic certificate in the electronic certificate chain, which can be specifically determined based on the business processing policy of the first business component.
[0111] Optionally, the business call chain corresponding to the target business includes multiple business components, and the first business component is the first business component among the multiple business components; the first electronic certificate is generated based on the first signature and the first business information; the first signature is obtained by signing the first business information based on the first private key; then, the embodiment of the present application may also include: determining an electronic certificate chain associated with the target business based on the first electronic certificate; the electronic certificate chain is used to send to the second business component.
[0112] It should be understood that when the first business component is the first business component, the first business component can directly determine a new electronic certificate chain based on the first electronic certificate. At this time, the first electronic certificate is the only electronic certificate in the electronic certificate chain.
[0113] Optionally, the business call chain corresponding to the target business includes multiple business components, and the multiple business components also include a third business component, which is the previous business component of the first business component; the third business component is used to send a second electronic certificate to the first business component; then, the embodiment of the present application may also include: if the business processing policy of the first business component is a first business processing policy that does not update key business data used for business certificate circulation, obtain an electronic certificate chain associated with the target business; the electronic certificate chain includes a second electronic certificate; the second electronic certificate is the last electronic certificate in the electronic certificate chain; the first electronic certificate is obtained by adding a first signature to the second electronic certificate; the first signature is obtained by signing the first business information based on the first private key; further, the second electronic certificate in the electronic certificate chain is replaced based on the first electronic certificate to obtain an updated electronic certificate chain; the updated electronic certificate chain is used to send to the second business component.
[0114] When the business call chain includes the third business component, it means that the first business component is not the first business component of the business call chain, and the first business component can obtain the second electronic certificate sent by the third business component (the introduction of the second electronic certificate can refer to the above related description, which is not repeated here), and the electronic certificate chain including the second electronic certificate. It should be understood that in the electronic certificate chain obtained by the first business component, the second electronic certificate is the last electronic certificate in the electronic certificate chain.
[0115] It should be understood that when the business processing strategy of the first business component is the first business processing strategy, the corresponding first electronic certificate is obtained by adding the first signature to the second electronic certificate, and the business key data corresponding to the first electronic certificate and the second electronic certificate remain unchanged, then the second electronic certificate and the first electronic certificate can be understood as the same electronic certificate with different signatures.
[0116] Then, updating the electronic certificate chain based on the first electronic certificate can be performed by replacing the second electronic certificate in the electronic certificate chain based on the first electronic certificate to obtain an updated electronic certificate chain. That is to say, when the business processing policy of the first business component is the first business processing policy, updating the electronic certificate chain can be performed by directly adding the first signature generated by the first business component to the last electronic certificate in the electronic certificate chain to obtain an updated electronic certificate chain.
[0117] For example, see Figure 6 , Figure 6 1 is a flow chart of updating an electronic certificate chain provided by an embodiment of the present application. Figure 6 As shown, the first business component can obtain the electronic certificate chain 600a sent by the previous business component, and the electronic certificate chain 600a may include the electronic certificate M1 (such as Figure 6 602a in FIG. 1 ) and the electronic certificate M2 (as shown in FIG. Figure 6 If the business processing strategy of the first business component is the first business processing strategy, an electronic certificate M2′ (such as the key business data G2) corresponding to the same key business data as the electronic certificate M2 can be generated. Figure 6 As shown in 601a in the figure, the electronic certificate M2' adds the signature Sig3 to the electronic certificate M2, and then the electronic certificate M2' may include two signatures, signature Sig2 and signature Sig3. Then, the first business component may replace the electronic certificate M2 in the electronic certificate chain 600a with the electronic certificate M2' (as shown in Figure 6 As shown in step S611a in the figure), an updated electronic certificate chain is obtained. The updated electronic certificate chain is as follows: Figure 6As shown in 610a in FIG. 1 , the electronic certificate chain includes electronic certificate M1 and electronic certificate M2′ (eg, Figure 6 604a in FIG. 1 ).
[0118] Optionally, the business call chain corresponding to the target business includes multiple business components, and the multiple business components also include a third business component, which is the previous business component of the first business component; the third business component is used to send a second electronic certificate to the first business component; then, the embodiment of the present application may also include: if the business processing policy of the first business component is a second business processing policy for updating key business data used for business certificate circulation, an electronic certificate chain associated with the target business is obtained; the electronic certificate chain includes the second electronic certificate; the second electronic certificate is the last electronic certificate in the electronic certificate chain; the first electronic certificate is generated based on the first signature and the first business information; the first signature is obtained by signing the first business information based on the first private key; further, the first electronic certificate is added after the second electronic certificate in the electronic certificate chain to obtain an updated electronic certificate chain; the updated electronic certificate chain is used to send to the second business component.
[0119] It should be understood that when the business processing strategy of the first business component is the second business processing strategy, the corresponding first electronic certificate is a new electronic certificate generated based on the first signature and the first business information, and the business key data corresponding to the first electronic certificate and the second electronic certificate are different, then the second electronic certificate and the first electronic certificate can be understood as different electronic certificates.
[0120] Then, the electronic certificate chain is updated based on the first electronic certificate, and the first electronic certificate can be added after the second electronic certificate in the electronic certificate chain to obtain an updated electronic certificate chain. That is, when the business processing strategy of the first business component is the first business processing strategy, the electronic certificate chain is updated by adding a new electronic certificate (i.e., the first electronic certificate) generated by the first business component after the last electronic certificate in the electronic certificate chain to obtain an updated electronic certificate chain.
[0121] For example, see Figure 7 , Figure 7 1 is a flow chart of updating an electronic certificate chain provided by an embodiment of the present application. Figure 7 As shown, the first business component can obtain the electronic certificate chain 700a sent by the previous business component, and the electronic certificate chain 700a may include the electronic certificate M1 (such as Figure 7 702a in FIG. 1 ) and the electronic certificate M2 (as shown in FIG. Figure 7If the business processing strategy of the first business component is the second business processing strategy, an electronic certificate M3 (such as the key business data G3) corresponding to the same key business data (i.e., the key business data G2) as the electronic certificate M2 may be generated. Figure 7 The electronic certificate M3 is determined based on the pre-credential hash information H3, the hash information HG3 of the key business data G3, and the signature Sig4. Then, the first business component can add the electronic certificate M3 to the electronic certificate M2 in the electronic certificate chain 700a (as shown in FIG. Figure 7 As shown in step S711a in the figure), an updated electronic certificate chain is obtained. The updated electronic certificate chain is as follows: Figure 7 As shown in 710a in FIG. 1 , the electronic certificate chain includes electronic certificates M1, M2 and M3 (such as Figure 7 704a in FIG. 1 ).
[0122] Here, with the help of diagrams, the process of issuing electronic certificates through the first business component and updating the electronic certificate chain is described. Figure 8 , Figure 8 FIG. 1 is a flow chart of a method for determining an electronic certificate chain provided in an embodiment of the present application. Figure 8 As shown, first determine whether the first business component is the first business component of the business call chain (such as Figure 8 801a in ), if the first business component is the first business component of the business call chain, the first business component can determine the first key business data from the business request, perform hash calculation on the first key business data, obtain first hash information of the first key business data, determine the null value as the first pre-credential hash information associated with the first electronic certificate to be generated, and determine the first business information (such as Figure 8 Then, the first business information is signed based on the first private key to obtain a first signature, and a first electronic certificate (such as Figure 8 803a in FIG), further, based on the first electronic certificate, an electronic certificate chain associated with the target business is determined (eg Figure 8 804a in FIG. 1 ).
[0123] If the first business component is not the first business component of the business call chain, it is determined whether the business processing strategy of the first business component is used to update the business key data (such as Figure 8If the business processing strategy of the first business component is not used to update the business-critical data, the first business component can obtain the second electronic certificate sent by the third business component, perform certificate verification on the second electronic certificate, and when the verification of the second electronic certificate is successful, determine the first business information (such as Figure 8 Then, the first signature is added to the second electronic certificate to obtain the first electronic certificate (as shown in 806a in FIG. 1 ). Figure 8 807a in FIG), further, based on the first electronic certificate, the second electronic certificate in the electronic certificate chain is replaced to obtain an updated electronic certificate chain (such as Figure 8 808a in FIG. 1 ).
[0124] If the business processing strategy of the first business component is used to update the business-critical data, the first business component can determine the third key business data based on the second key business data, perform hash calculation on the third key business data to obtain third hash information of the third key business data, perform hash calculation on the second electronic certificate to obtain third pre-credential hash information, and determine the first business information (such as Figure 8 Then, a first electronic certificate (such as 809a in FIG. 1 ) is generated based on the first signature and the first business information. Figure 8 Further, the first electronic certificate is added after the second electronic certificate in the electronic certificate chain to obtain an updated electronic certificate chain (as shown in 810a in FIG. 1 ). Figure 8 811a in FIG. 1 ).
[0125] It should be understood that the second proxy component can be a proxy component corresponding to the second service component, and the second proxy component can be used to perform key management on the second service component. It should be understood that the second proxy component and the first service component both run on the second device, that is, the second proxy component and the first proxy component can be the same proxy component or different proxy components, which is not limited here.
[0126] The second mapping relationship list may be a list for recording keys (private keys or public keys) having an authorization relationship with each service component in the second device. In other words, the second mapping relationship list may record keys having an authorization relationship with the second service component.
[0127] It should be understood that after obtaining the first electronic certificate, the second business component can obtain the first public key corresponding to the first private key from the second proxy component. The first public key can be the public key corresponding to the first private key, that is, the first public key and the first private key are a key pair to each other. It should be understood that there is an authorization relationship between the first public key and the second business component, so the second business component can obtain the first public key from the second business component. Furthermore, the first electronic certificate can be verified based on the first public key. It should be understood that the method for performing the verification can refer to the above-mentioned description of the verification of the second electronic certificate based on the second public key, which will not be repeated here.
[0128] It should be understood that if the first business component and the second business component are deployed in the same device, then the second proxy component and the first proxy component are the same proxy component. Therefore, the process of the data processing method when the first business component and the second business component are deployed in the same device is illustrated here.
[0129] See also Fig. 9 , Fig. 9 Schematic diagram of a data processing method provided in an embodiment of the present application. Fig. 9 As shown, the device 21a may run a first proxy component 901a and a first service component 902a. The first proxy component and the first mapping relationship list may refer to the above-mentioned related descriptions, which will not be repeated here. The first proxy component may be connected to the first mapping relationship list (such as Fig. 9 It should be understood that the first service component 901a can obtain the first service information associated with the target service (such as Fig. 9 905a in FIG. 1 ).
[0130] Furthermore, the first service component may request the first proxy component to obtain the first private key (eg Fig. 9 In step S921a), the first proxy component can select from the first mapping relationship list (such as Fig. 9 903a in FIG. 1 ) determines a first private key (such as Fig. 9 ), and then the first proxy component returns the first private key to the first business component (as shown in 904a in FIG. Fig. 9 Step S922a in the process.
[0131] Furthermore, the first business component may perform a credential issuance process based on the first private key and the first business information (eg Fig. 9 906a in ), obtain the first electronic certificate (such as Fig. 9The certificate issuance process may be to sign the first business information based on the first private key, and then determine the electronic certificate based on the generated signature.
[0132] Furthermore, the first business component may transfer the first electronic certificate to the second business component (eg Fig. 9 Step S923a in the above example), and then the second service component 910a can request the first proxy component 901a to obtain the first public key (such as Fig. 9 The first public key may be a public key corresponding to the first private key, and is used to verify the first electronic certificate. It should be understood that the second service component may be run on the device 21a, that is, the first service component and the first proxy component may be run on the same device. Further, the first proxy component may determine the first public key (such as the first public key) having an authorization relationship with the second service component from the first mapping relationship list. Fig. 9 908a in FIG. 1 ).
[0133] Furthermore, the second proxy component may return the first public key to the second service component (eg Fig. 9 Then, the second service component can perform a certificate verification process on the first electronic certificate based on the first public key (such as Fig. 9 The credential verification process may be to perform signature verification on the signature in the first electronic credential based on the first public key. Only when the signature verification succeeds, it is determined that the first electronic credential has passed the verification, and then the corresponding business processing can be performed through the second business component.
[0134] For further information, see Fig.10 , Fig.10 1 is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a first device, in which a first proxy component and a first business component are deployed. The method can at least include the following steps S201-S206.
[0135] S201. Acquire first business information associated with a target business through a first business component.
[0136] The relevant introduction of step S201 can refer to the relevant description of the above step S101, which will not be repeated here.
[0137] It should be understood that in an embodiment of the present application, based on the above description, the business call chain of the target business and each business component in the business call chain can be obtained by configuring through a business management client based on a business configuration object for business configuration. It should be understood that in an embodiment of the present application, the credential issuance and verification of each business component can be obtained by processing through a credential component in the business component. The credential component can be a component for issuing and verifying credentials, and its essence can be a software development kit (SDK). In an embodiment of the present application, the key acquisition interface of the proxy component can be called by the credential component in the business component, so that the business component can obtain the key determined by the proxy component and having an authorization relationship with the corresponding business component.
[0138] See also Fig.11 , Fig.11 This is a schematic diagram of the effect of a service configuration provided by an embodiment of the present application. Fig.11 As shown, it should be understood that the business configuration object can configure the business call chain through the credential management client 1101a, and the business components can be deployed in each device associated with the target business, such as the first business component 1103a can be deployed in the device 21a, and the first business component 1103a can include the credential component 1104a. In addition, the second business component 1106a can be deployed in the device 22a, and the second business component 1106a can include the credential component 1107a. The second business component can be the next business component of the first business component in the business call chain, so that the first business component can send the electronic credential chain determined by the first business component to the second business. It should be understood that the first business component and the second business component can be deployed for the same business configuration object, or can be deployed for the same business configuration object, which is not limited here. It should be understood that the device 21a may include a first proxy component 1102a, which may be pre-deployed in each device by the service provider of the credential issuance and verification system provided by the present application, and the second proxy component 1105a may be pre-deployed in each device by the service provider of the credential issuance and verification system provided by the present application. Furthermore, the first proxy component may be used to perform key management on the first business component, so that the first business component may request the first proxy component to obtain the key for credential issuance or verification through the credential component 1104a, and the first business component may obtain the key only after the first proxy component successfully verifies the first business component. The second proxy component may be used to perform key management on the second proxy component, so that the second business component may request the second proxy component to obtain the key for credential issuance or verification through the credential component 1107a, and the second business component may obtain the key only after the second proxy component successfully verifies the second business component.
[0139] It should be understood that when configuring a business call chain through a business management client, the business configuration object may include: creating a business component, adding a credential issuance or credential verification permission to the business component (i.e., an authorization key for the business component), and configuring the connection relationship between each business component in the business call chain to be configured. The connection relationship can be used to indicate the execution order of each business component in the business call chain.
[0140] When a business component is created by a business configuration object, the component information of the business component to be created (such as business component A1) can be configured in the component configuration page. The component information may include one or more of the following: component name, component signer information (such as the name of the component signer), description information (such as information describing the purpose of the business component, creator, etc.). The component signer may be a function in the component used to sign the business information, and the name of the component signer may be the name of the function. Optionally, if a business component is only used for one signature, the component signer may be the business component itself, and the name of the component signer may be the name of the business component. If a business component needs to be signed multiple times, the signer of each signature is a different function, so each signer is the name of the corresponding function. For example, in a business component for transaction verification, it can be used for SMS verification and password verification, so it is necessary to generate a signature for SMS verification and a signature for password verification. The signer of the business component may include a processing function for SMS verification and a processing function for password verification.
[0141] Furthermore, the business management client can generate a public-private key pair based on the component signer information (such as the name of the component signer) corresponding to the business component (such as business component A1). For example, based on the name of the component signer, a public-private key pair is generated: internal_pri_ticket_user_auth and internal_pub_ticket_user_auth, which are used for issuing and verifying electronic certificates.
[0142] Furthermore, the business configuration object can authorize the use of the private key internal_pri_ticket_user_auth for the created business component (such as business component A1) through the business management client, so that the business component has the authority to issue electronic certificates.
[0143] Furthermore, the public key internal_pub_ticket_user_auth can be authorized to the next business component of business component A1 (such as business component A2), and then the business component A2 can be used to verify the legitimacy of the ticket chain issued by the previous business component (ie, business component A1) using the private key.
[0144] It should be understood that in the embodiments of the present application, in a business call chain, the business component at the starting point of the business call chain (i.e., the first business component in the business call chain) generally only has the private key corresponding to its own signer, that is, it is only responsible for issuing electronic certificates, and the business component at the end of the business call chain (i.e., the last business component in the business call chain) generally only has the public key corresponding to the signer of the previous business component, that is, it is responsible for verifying the electronic certificate issued by the previous business component. The business component in the middle of the business call chain generally has both the private key corresponding to its own signer and the public key corresponding to the signer of the previous business component, that is, it is responsible for both issuing electronic certificates and verifying the electronic certificates sent by the previous business component.
[0145] It should be understood that in the embodiment of the present application, after a service call chain is created through a service management client, each service component in the created service call chain and the authorization relationship between each service component can be stored in a database through the service management client.
[0146] It should be understood that a global mapping relationship list may be stored in the database, and after a business call chain is created, records associated with each business component in the newly created business call chain may be added to the global mapping relationship list.
[0147] It should be understood that the global mapping relationship list can be used to store information about service components of each service processing device used for service processing and a list of key information associated with the service components. It should be understood that the service processing device can include at least one, such as the first device and the second device mentioned above.
[0148] It should be understood that in the global mapping relationship list, a global key information list and a global key authorization relationship list (also referred to as a global authorization relationship list) may be included. Among them, the global key information list may be a list for storing all key information records generated for all business components, and a key information record is used to record the key identifier, key name, key value, key signature type and other information corresponding to a key. Among them, the key identifier may be an identifier for uniquely identifying a key, the key name may be the name of the key, the key value may be the actual value of the key, and the key signature type may be used to indicate the algorithm type signed by the key, for example, the key signature type may be the SM2 algorithm (a signature algorithm). The global key authorization relationship list may be a list for storing the authorization relationship records between all keys and authorized business components, and an authorization relationship record is used to record a key and an authorized business component, indicating that the key and the business component have an authorization relationship. It should be understood that all business components here may be business processing devices deployed on all business processing devices, and then all keys may be keys generated for all business components.
[0149] For example, when deploying a new business component A1, a key pair, namely, a private key S1 and a public key S2, can be generated for the new business component A1, and then the private key S1 can be authorized to the business component A1, and the public key S2 can be authorized to the next business component A2 of the business component A1. Then, the global key information list in the global mapping relationship list can include the key information record of the private key S1 and the key information record of the public key S2, and the global key authorization relationship list can include the authorization relationship record corresponding to the private key S1 and the business component A1, and the authorization relationship record corresponding to the public key S2 and the business component A2.
[0150] For example, in the global mapping relationship list, the global key information list may refer to the following table (Table 1), and the global key authorization relationship list may refer to the following table (Table 2).
[0151] Table 1 Global key information list
[0152] Key Identification Key Name Key Signature Type Key value key001 pri_key SM2 xxxx1 key001 pub_key SM2 Xxxx2
[0153] Table 2 Global key authorization relationship list
[0154] Serial number Key Identification Business component name 001 key001 Business Component A1 001 key002 Business Component A2
[0155] For example, see Fig.12 , Fig.12 Schematic diagram of the effect of a database for data storage provided by an embodiment of the present application. Fig.12As shown, the business configuration object U2 can configure the business call chain through the business management client 1201a, and authorize the business component in the business call chain. Then, the business management client can Fig.12 In the global key authorization relationship list 1205a in the global mapping relationship list 1203a in the service call chain, the authorization relationship records corresponding to the business components in the business call chain are added, such as the authorization relationship records with serial numbers 001 and 002 can be added to authorize the key with key identifier key001 to the business component A1, and the key with key identifier key002 to the business component A2. In addition, key information records can be added in the global key information list 1204a, such as the key information record of the key with key identifier key001 and the key information record of the key with key identifier key002 can be added, wherein the key information record with key identifier key001 can include: key identifier key001, key name pri_key, key signature type SM2, key value xxxx1, and the key information record with key identifier key001 can include: key identifier key002, key name pub_key, key signature type SM2, key value xxxx2.
[0156] See also Fig.13 , Fig.13 Schematic diagram of a key authorization method provided in an embodiment of the present application. Fig.13 As shown, the business call chain can be: business component A1→business component A2→business component A3, and then based on business component A1 (such as Fig.13 The signing party determines a key pair, such as private key S01 (as shown in 1301a in Fig.13 1304a in ) and public key S11 (as shown in Fig.13 ), and then, the private key S01 can be authorized to the business component A1, so that the business component A1 can issue the certificate based on the private key S01, and the public key S11 can be authorized to the business component A2, so that the business component A2 can verify the certificate based on the public key S11. Fig.13 The signing party determines a key pair, such as private key S02 (as shown in 1302a in Fig.13 1306a in ) and public key S12 (as shown in Fig.13 ), and then, the private key S02 can be authorized to the business component A2, so that the business component A2 can issue a certificate based on the private key S02, and the private key S12 can be authorized to the business component A3 (as shown in 1307a in FIG. Fig.13 1303a in the figure), so that the business component A3 can perform credential verification based on the public key S12.
[0157] S202: When the first business component requests the first proxy component to obtain the first private key, the first proxy component performs component verification on the first business component to obtain a component verification result.
[0158] The component verification result may be a result of performing component verification on the first service component. The component verification result may be used to indicate that the verification of the first service component is successful, or may be used to indicate that the verification of the first service component is failed.
[0159] It should be understood that the first proxy component performing component verification on the first business component may include verifying whether the first business component is a legitimate business component and verifying whether there is an authorization relationship between the first business component and the first private key.
[0160] Specifically, the first mapping relationship list includes a key authorization relationship list; then, performing component verification on the first business component through the first proxy component to obtain a component verification result may include the following steps: the first proxy component obtains component feature information associated with the first business component, and performs component feature verification on the first business component based on the component feature information to obtain a component feature verification result; further, querying the authorization relationship record corresponding to the first private key and the first business component in the key authorization relationship list to obtain an authorization relationship query result; further, if the component feature verification result indicates that the component feature information of the first business component has been successfully verified, and the authorization relationship query result indicates that the authorization relationship record corresponding to the first private key and the first business component has been found, then determining a component verification result indicating that the verification of the first business component is successful.
[0161] Among them, the component characteristic information can be the characteristic information submitted by the first business component when the first business component requests to obtain the first private key. For example, the first proxy component can determine the component characteristic information from the request for obtaining the first private key sent by the first business component to the first proxy component. The component characteristic information may include information of multiple characteristic dimensions, such as the information of the multiple characteristic dimensions may include one or more of the following: the process name of the business component, the process path of the business component, and the process name hash of the business component. It should be understood that the process name of the business component is used to identify a business component (also referred to as a component name), and the process names of different business components are different. It should be understood that the process path of the business component refers to the location of the process of the business component in the file system of the first device, which can be used to locate the executable file and other related files of the process. The process name hash of the business component can be the hash information obtained by hashing the process name of the business process.
[0162] It should be understood that the component feature verification result may be a result obtained by performing component feature verification on the first business component. The component feature verification result may be used to indicate that the component feature information verification of the first business component is successful, or may be used to indicate that the component feature information verification of the first business component fails.
[0163] It should be understood that performing component feature verification on the first business component based on component feature information may include: obtaining reference feature information of the first business component through the first proxy component, performing comparison based on the reference feature information and the component feature information, and determining the component feature verification result based on the comparison result. The reference feature information may be feature information of the first business component obtained by the first proxy component from the background service device. It should be understood that the multiple feature dimensions included in the reference feature information may include one or more of the following: the process name of the business component, the process path of the business component, and the process name hash of the business component. It should be understood that the reference characteristic information can be understood as the characteristic information of the correct business component that can obtain the key. If the reference characteristic information and the component characteristic information are consistent after comparison, a component characteristic verification result indicating that the component characteristic information verification of the first business component is successful is determined, indicating that the first business component can be a business component operating normally in the first device; conversely, if the reference characteristic information and the component characteristic information are inconsistent after comparison, a component characteristic verification result indicating that the component characteristic information verification of the first business component has failed is determined, indicating that the first business component may have been tampered with, the first business component is unreliable, and the key cannot be returned to the first business component.
[0164] It should be understood that the key authorization relationship list may be a list for storing authorization relationships between keys and business components, and the key authorization relationship list may include authorization relationship records corresponding to each key and business component, and each authorization relationship record is used to associate each key with an authorized business component. It should be understood that if the key authorization relationship list includes authorization relationship records corresponding to a key and a business component, it means that there is an authorization relationship between the key and the business component. In other words, it is possible to determine whether there is an authorization relationship between a key and a business component by querying the authorization relationship records in the key authorization relationship list.
[0165] Among them, the authorization relationship query result can be the result of searching the authorization relationship record between the first private key and the first business component in the key authorization relationship list. The authorization relationship query result can be used to indicate that the authorization relationship record corresponding to the first private key and the first business component is found, or to indicate that the authorization relationship record corresponding to the first private key and the first business component is not found. It should be understood that if the authorization relationship query result indicates that the authorization relationship record corresponding to the first private key and the first business component is found, it means that there is an authorization relationship between the first business component and the first private key. Conversely, if the authorization relationship query result indicates that the authorization relationship record corresponding to the first private key and the first business component is not found, it means that there is no authorization relationship between the first business component and the first private key.
[0166] It should be understood that if the component feature verification result indicates that the component feature information of the first business component has been successfully verified, and the authorization relationship query record indicates that the authorization relationship record between the first private key and the first business component has been found, it means that the first business component is a legal business component, and it is verified that there is an authorization relationship between the first business component and the first private key, and then the component verification result indicating that the verification of the first business component is successful can be determined, and then the first proxy component will return the first private key with which the first business component has an authorization relationship to the first business component.
[0167] On the contrary, if the component feature verification result indicates that the component feature information verification of the first business component has failed, or the authorization relationship query record indicates that the authorization relationship record between the first private key and the first business component has not been found, then it means that the first business component is an illegal business component, or there is no authorization relationship between the first business component and the first private key, and then the component verification result indicating that the verification of the first business component has failed can be determined, and then the first proxy component will not return the first private key to the first business component, and then can return prompt information indicating the failure to obtain the first private key to the first business component, so as to prompt the first business component that the acquisition of the first private key has failed.
[0168] S203: When the component verification result indicates that the verification of the first business component is successful, the first proxy component obtains a first mapping relationship list.
[0169] It should be understood that in the embodiment of the present application, the first mapping relationship list may be obtained from the credential background service device. The credential background service device may be used to store information about business components deployed on various business processing devices (such as the first device, the second business processing device, etc.) and information about keys associated with the business components, while the first mapping relationship list obtained by the first proxy component in the first device is only used to manage information about business components deployed in the first device and information about keys associated with the business components.
[0170] Specifically, an embodiment of the present application also includes: obtaining a component list of business components deployed in a first device through a first proxy component; the component list includes a first business component; further, sending the component list to a credential background service device through the first proxy component, so that the credential background service device determines the key information list and key authorization relationship list associated with the component list from a global mapping relationship list, and returns the key information list and key authorization relationship list associated with each business component to the first proxy component; further, the first proxy component determines the first mapping relationship list based on the received key information list and key authorization relationship list.
[0171] The component list may refer to a list of business components deployed in the first device. For example, the component list may include identifiers (such as component names) corresponding to each business component. It should be understood that the component list may include the first business component.
[0172] It should be understood that the introduction of the global mapping relationship list can refer to the above-mentioned related description, which will not be repeated here. It should be understood that the global mapping relationship list in the credential background service device can be synchronized from the database. The credential background service device synchronizes the information of each key required in the business execution process and the authorization relationship between each key and the business component by periodically polling the database, that is, synchronizing the global mapping relationship list.
[0173] It should be understood that the key information list may be a list of key information records for storing keys having authorization relationships with business components in the business component list. The key authorization relationship list may be a list for storing authorization relationship records corresponding to each business component in the business component list and keys having authorization relationships.
[0174] It should be understood that the credential background service device determines the key information list and key authorization relationship list associated with the component list from the global mapping relationship list, which may include: searching the global authorization relationship list for the key authorization relationship records associated with each business component in the business component list, and determining the key authorization relationship list associated with the component list based on the key authorization relationship records found; further, determining the keys that have authorization relationships with each business component in the business component list based on each key authorization relationship record in the key authorization relationship list, searching the target key authorization relationship record for the key information records of the keys that have authorization relationships with each business component in the business component list, and determining the key information list associated with the component list based on the key information records found.
[0175] It should be understood that each key information record in the global key information list includes a key identifier corresponding to each key, and each authorization relationship record in the global key authorization relationship list includes a key identifier corresponding to a key with an authorization relationship between a business component and the key. Then, the credential background service device determines the keys having an authorization relationship with each business component in the business component list based on each key authorization relationship record in the key authorization relationship list, and searches for the key information records of the keys having an authorization relationship with each business component in the business component list from the target key authorization relationship record. It may include: determining the key identifier of the key having an authorization relationship with each business component in the business component list based on each key authorization relationship record in the key authorization relationship list, and searching for the key information records of the keys having an authorization relationship with each business component in the business component list from the target key authorization relationship record based on the determined key identifier.
[0176] The entire key acquisition process is described here with diagrams, see Fig.14 , Fig.14 Schematic diagram of a key acquisition process provided by an embodiment of the present application. Fig.14 As shown, the credential backend server device (such as Fig.14 1401a in ) can be performed by periodically polling the database (such as Fig.14 As shown in 1402a in the figure), synchronize the global mapping relationship list, that is, synchronize the key information of the key required for the certificate issuance or verification of each business processing device and the authorization relationship between each key and the business component.
[0177] Furthermore, the first proxy component 1403a can be run on the same machine (i.e., device 21a) as the first business component 1404a, so that the first proxy component can obtain information about all business components in device 21a, and send the component list of device 21a to the credential background server device by means of a polling request. The credential background server device can be connected to device 21a by means of HTTPS two-way authentication to ensure the identity of the credential background server device. In addition, when the credential background server device receives the request of the first proxy component, it verifies the identity of the first proxy component by means of two-way HTTPS authentication, and after the verification is passed, reads the component list submitted by the first proxy component, and determines the key information list and authorization relationship list associated with the component list submitted by the first business component from the global mapping relationship list, and returns the determined key information list and authorization relationship list to the first business component. Similarly, the second proxy component 1406a can run on the same machine (i.e., device 21a) as the second business component 1405a, so that the second proxy component can obtain information about all business components in device 22a, and send the component list of the device 22a to the credential background server device by means of a polling request, so as to obtain the key information list and the authorization relationship list associated with the component list submitted by the second business component from the credential background server device. It should be understood that after receiving the key information list and the authorization relationship list returned by the credential background service device, the proxy component (such as the first proxy component or the second proxy component) determines that the proxy component has the ability to perform key management for the business component.
[0178] Further, after the business component (such as the first business component or the second business component) issues or verifies the credentials, the business component can request the proxy component to obtain the required key through the credential component in the component. It should be understood that the business component can initiate a connection with the proxy component using UnixSocket (local socket) through the credential component, and the proxy component can enable the option of obtaining the process information of the process (i.e., the SO_PEERCRED option), then the proxy component can obtain the characteristic information corresponding to the process corresponding to the business component (such as the process name, process name hash information, process path, etc.). Furthermore, the proxy component can perform component verification on the business component requesting to obtain the key through some component verification logic. The specific verification logic can refer to the above-mentioned related description, which is not repeated here. Therefore, after the proxy component successfully verifies the business component, it returns the required key to the business component, thereby ensuring the security of key acquisition and preventing illegal business components from obtaining the key. Further, when the credential component in the business component obtains the key used for credential issuance or verification, the credential is issued or verified through the function provided by the credential component.
[0179] It can be understood that in the embodiment of the present application, when the first device obtains the key information list and the key authorization relationship list returned by the credential background service device through the first proxy component, the key information list and the key authorization relationship list can be used to determine the first mapping relationship list, and the first mapping relationship list is securely and persistently stored, wherein the persistent storage can refer to saving the data (the first mapping relationship list) in a disk or other non-volatile storage medium, and the persistently stored data is used for downgrade reading of the proxy component (such as the first proxy component) when it cannot be used. The downgrade file (i.e., the first mapping relationship list of persistent storage) needs to ensure security to prevent it from being read by malicious programs or directly exposing sensitive data to users. In the embodiment of the present application, the relevant characteristics of the device (such as MAC address, etc.) can be used for encrypted storage to ensure the security of the first mapping relationship list of persistent storage. In addition to encrypted storage, persistent data will also be accessed and managed. On the one hand, it is used to ensure the availability of the proxy component, and on the other hand, it can also effectively control the access of malicious programs.
[0180] Specifically, the embodiments of the present application may further include the following steps: obtaining device key information associated with the first device, and generating device key information based on the device key information; encrypting the first mapping relationship list based on the device key information to obtain encrypted mapping relationship data, and storing the encrypted mapping relationship data.
[0181] The device key information may be key information of the first device, such as the MAC address of the first device. It should be understood that the device key information may be key information generated based on the device key information, such as key information generated based on encryption algorithms such as RSA and AES, which is not limited here.
[0182] The encrypted mapping relationship data may be data obtained by encrypting the first mapping relationship list. It should be understood that the encrypted mapping relationship data may be obtained by encrypting the first mapping relationship list based on the device key information. Storing the encrypted mapping relationship data may be storing the encrypted mapping relationship data in a disk or other non-volatile storage medium of the first device to ensure the persistence of the encrypted mapping relationship data.
[0183] Furthermore, if the first proxy component cannot be used, the first business component can obtain the device key information from the first device, and then decrypt the encrypted mapping relationship data based on the device key information to obtain the first mapping relationship list, and then obtain the key with the authorization relationship from the decrypted first mapping relationship list (such as the first business component can obtain the first private key with the authorization relationship from the decrypted first mapping relationship list). This ensures that when the first proxy component is unavailable, the business is not affected, and the reliability of business execution is guaranteed.
[0184] S204: Determine, by the first proxy component, from the first mapping relationship list, a first private key having an authorization relationship with the first business component, and transmit the first private key to the first business component.
[0185] Specifically, the first mapping relationship list also includes a key information list; then, determining the first private key that has an authorization relationship with the first business component from the first mapping relationship list may include the following steps: obtaining the private key information of the first private key, and determining the first private key that has an authorization relationship with the first business component from the key information list based on the private key information.
[0186] The private key information may be information for identifying a private key, and the private key information may be a key name of a first private key to be obtained, or may be a key identifier of a first private key to be obtained, which is not limited here. It should be understood that in the key information list, each key information record may include a key identifier and a key name of a corresponding key, and a key information record matching the private key information of the first private key may be searched from the key information list, so that the first private key having an authorization relationship with the first business component may be determined based on the key value recorded in the key information record found.
[0187] S205: The first business component performs a certificate issuance process based on the first private key and the first business information to obtain a first electronic certificate.
[0188] S206. Transfer the first electronic certificate from the first business component to the second business component in the second device; the second business component is the next business component of the first business component; the first electronic certificate is used to indicate the second business component, and when a first public key having an authorization relationship with the second business component is obtained from a second mapping relationship list corresponding to the second proxy component, the first electronic certificate is verified by using the first public key; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are each other's key pair.
[0189] It should be understood that steps S205-S206 may refer to the above-mentioned related descriptions and will not be elaborated here.
[0190] For further information, see Fig.15 , Fig.15 1 is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a second device, for example, the second device is the above-mentioned device 22a, and a second proxy component and a second business component are deployed in the second device. The method can at least include the following steps S301-S303.
[0191] S301. Acquire, through the second business component, a first electronic certificate sent by a first business component in a first device; the first business component is the previous business component of the second business component; the first device also includes a first proxy component; the first electronic certificate is obtained by issuing a certificate through the first business component based on a first private key and first business information; the first private key is a private key that has an authorization relationship with the first business component, as determined by the first proxy component from a first mapping relationship list.
[0192] It should be understood that the method for determining the first electronic certificate can refer to the above-mentioned related description, which will not be repeated here.
[0193] S302. Obtain, through the second proxy component, from the second mapping relationship list, a first public key having an authorization relationship with the second business component; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are each other's key pair.
[0194] It should be understood that the method for obtaining the first public key can refer to the above-mentioned description of obtaining the first private key, which will not be repeated here.
[0195] S303: Perform certificate verification processing on the first electronic certificate using the first public key.
[0196] It should be understood that the method of performing credential verification processing on the first electronic credential through the first public key can refer to the above-mentioned description of the credential verification processing on the second electronic credential by the first business component, which will not be repeated here. It should be understood that after the credential verification of the second business component is successful, corresponding business processing can be performed based on the second business component.
[0197] Specifically, the first electronic certificate is the last electronic certificate in the electronic certificate chain transferred to the second business component, and the electronic certificate chain also includes a second electronic certificate, which is the previous electronic certificate of the first electronic certificate; the first electronic certificate includes a first signature, and the first signature is obtained by signing the first business information based on the first private key that has an authorization relationship with the first business component; the first business information includes the target pre-credential hash information; then, the second business component performs credential verification processing on the first electronic certificate, which may include the following steps: determining, by the first proxy component, from the first mapping relationship list the first public key corresponding to the first private key; key, transmit the first public key to the first business component; there is an authorization relationship between the first public key and the second business component; further, based on the first public key and the first business information, the first signature is verified to obtain a signature verification result; further, the second electronic certificate is determined from the electronic certificate chain, a hash calculation is performed on the second electronic certificate to obtain the verification hash information corresponding to the second electronic certificate, the target pre-certificate hash information and the verification hash information are compared to obtain a comparison result; further, if the signature verification result indicates that the verification is successful, and the comparison result indicates that the target pre-certificate hash information and the verification hash information are consistent, it is determined that the first electronic certificate verification is successful.
[0198] It should be understood that in an embodiment of the present application, if the second business component is not the last business component in the business call chain, then after the first electronic certificate is verified, the second business component can be determined as the updated first business component, and the next business component of the updated first business component can be determined as the updated second business component, so that the updated first business component can refer to the above-mentioned processing method of the first business component to issue the certificate, and the updated second business component can perform certificate verification processing on the electronic certificate issued by the updated first business component with reference to the above-mentioned processing method of the second business component, until the updated second business component is the last business component in the business call chain.
[0199] See also Fig.16 , Fig.16 Schematic diagram of a data processing device provided in an embodiment of the present application. Fig.16 As shown, the data processing device 1 can be a computer program (including program code) running on a first device (for example, the above-mentioned device 21a). For example, the data processing device 1 is an application software, and the first agent component and the first business component are deployed in the first device; it can be understood that the data processing device 1 can be used to execute the corresponding steps in the data processing method provided in the embodiment of the present application. Fig.16 As shown, the data processing device 1 may include: a business information determination module 11, a private key acquisition module 12, a certificate issuance module 13, and a certificate circulation module 14;
[0200] A business information determination module 11, configured to obtain first business information associated with a target business through the first business component;
[0201] The private key acquisition module 12 is used to determine, from the first mapping relationship list, a first private key having an authorization relationship with the first business component through the first proxy component, and transmit the first private key to the first business component; the first proxy component is used to perform key management on the first business component through the first mapping relationship list;
[0202] The certificate issuing module 13 is configured to perform a certificate issuing process based on the first private key and the first business information by the first business component to obtain a first electronic certificate;
[0203] The credential transfer module 14 is used to transfer the first electronic credential from the first business component to the second business component in the second device; the second business component is the next business component of the first business component; the first electronic credential is used to indicate the second business component, and when a first public key having an authorization relationship with the second business component is obtained from a second mapping relationship list corresponding to the second proxy component, the first public key is used to perform credential verification processing on the first electronic credential; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are each other's key pair.
[0204] The service call chain corresponding to the target service includes multiple service components, and the first service component is the first service component among the multiple service components;
[0205] The business information determination module 11 is specifically used for:
[0206] Performing business processing on the acquired business request associated with the target business through the first business component, and determining first key business data for business credential circulation from the business request;
[0207] Performing hash calculation on the first key business data to obtain first hash information of the first key business data;
[0208] Determine a null value as first pre-credential hash information associated with a first electronic credential to be generated;
[0209] The first business information is determined based on the first hash information and the first pre-credential hash information.
[0210] The business call chain corresponding to the target business includes multiple business components, the first business component and the second business component both belong to the multiple business components, the multiple business components also include a third business component, and the third business component is the previous business component of the first business component;
[0211] The business information determination module 11 is specifically used for:
[0212] Acquire, through the first business component, a second electronic certificate sent by the third business component; the second electronic certificate includes second business information; the second business information is determined by the third business component;
[0213] The first business component performs a credential verification process on the second electronic credential, and when the verification of the second electronic credential succeeds, determines first business information associated with the target business based on the second electronic credential.
[0214] The second business information includes second hash information of the second key business data and the second pre-credential hash information;
[0215] The business information determination module 11 is specifically used for:
[0216] If the business processing policy of the first business component is a first processing policy that does not update key business data used for business credential circulation, the second hash information and the second pre-credential hash information are determined as the first business information associated with the target business.
[0217] Wherein, the second business information includes second hash information of second key business data;
[0218] The business information determination module 11 is specifically used for:
[0219] If the business processing strategy of the first business component is a second processing strategy for updating key business data used for business credential circulation, the first business component determines third key business data based on the second key business data, performs hash calculation on the third key business data, and obtains third hash information of the third key business data;
[0220] Performing hash calculation on the second electronic credential to obtain third pre-credential hash information associated with the first electronic credential to be generated;
[0221] Based on the third hash information and the third pre-credential hash information, first business information associated with the target business is determined.
[0222] The second electronic certificate is the last electronic certificate in the electronic certificate chain transferred to the first business component, and the electronic certificate chain also includes a third electronic certificate, and the third electronic certificate is the previous electronic certificate of the second electronic certificate; the second electronic certificate includes a second signature, and the second signature is obtained by signing the second business information based on a second private key that has an authorization relationship with the third business component; the second business information includes second previous certificate hash information;
[0223] The business information determination module 11 is specifically used for:
[0224] Determine, by the first proxy component, from the first mapping relationship list, the second public key corresponding to the second private key, and transmit the second public key to the first business component; there is an authorization relationship between the second public key and the first business component;
[0225] Performing signature verification processing on the second signature based on the second public key and the second business information to obtain a signature verification result;
[0226] Determine the third electronic certificate from the electronic certificate chain, perform hash calculation on the third electronic certificate to obtain verification hash information corresponding to the third electronic certificate, and compare the second pre-credential hash information with the verification hash information to obtain a comparison result;
[0227] If the signature verification result indicates that the verification is successful, and the comparison result indicates that the second pre-credential hash information is consistent with the verification hash information, it is determined that the second electronic certificate is successfully verified.
[0228] The certificate issuing module 13 is specifically used for:
[0229] The first business component performs signature processing on the first business information based on the first private key to obtain a first signature, and determines a first electronic certificate based on the first signature.
[0230] The business call chain corresponding to the target business includes multiple business components, and the first business component is the first business component among the multiple business components; the first electronic certificate is generated based on the first signature and the first business information; the first signature is obtained by signing the first business information based on the first private key;
[0231] The data processing device further includes: a credential updating module 15;
[0232] The credential updating module 15 is specifically used for:
[0233] An electronic credential chain associated with the target business is determined based on the first electronic credential; the electronic credential chain is used to be sent to the second business component.
[0234] The business call chain corresponding to the target business includes multiple business components, the multiple business components also include a third business component, the third business component is the previous business component of the first business component; the third business component is used to send a second electronic certificate to the first business component;
[0235] The credential updating module 15 is further used for:
[0236] If the business processing policy of the first business component is a first business processing policy that does not update key business data used for business credential circulation, an electronic credential chain associated with the target business is obtained; the electronic credential chain includes the second electronic credential; the second electronic credential is the last electronic credential in the electronic credential chain; the first electronic credential is obtained by adding a first signature to the second electronic credential; the first signature is obtained by signing the first business information based on the first private key;
[0237] The second electronic certificate in the electronic certificate chain is replaced based on the first electronic certificate to obtain an updated electronic certificate chain; the updated electronic certificate chain is used to be sent to the second business component.
[0238] The business call chain corresponding to the target business includes multiple business components, the multiple business components also include a third business component, the third business component is the previous business component of the first business component; the third business component is used to send a second electronic certificate to the first business component;
[0239] The credential updating module 15 is also used for:
[0240] If the business processing strategy of the first business component is a second business processing strategy for updating key business data used for business credential circulation, an electronic credential chain associated with the target business is obtained; the electronic credential chain includes the second electronic credential; the second electronic credential is the last electronic credential in the electronic credential chain; the first electronic credential is generated based on the first signature and the first business information; the first signature is obtained by signing the first business information based on the first private key;
[0241] The first electronic certificate is added after the second electronic certificate in the electronic certificate chain to obtain an updated electronic certificate chain; the updated electronic certificate chain is used to be sent to the second business component.
[0242] The private key acquisition module 12 is specifically used for:
[0243] When the first service component requests the first proxy component to obtain the first private key, the first proxy component performs component verification on the first service component to obtain a component verification result;
[0244] When the component verification result indicates that the verification of the first service component is successful, the first proxy component obtains the first mapping relationship list;
[0245] The first proxy component determines, from a first mapping relationship list, a first private key having an authorization relationship with the first service component, and transmits the first private key to the first service component.
[0246] Wherein, the first mapping relationship list includes a key authorization relationship list;
[0247] The private key acquisition module 12 is specifically used for:
[0248] The first proxy component obtains component feature information associated with the first business component, and performs component feature verification on the first business component based on the component feature information to obtain a component feature verification result;
[0249] Querying the authorization relationship record corresponding to the first private key and the first business component in the key authorization relationship list to obtain an authorization relationship query result;
[0250] If the component feature verification result indicates that the component feature information of the first business component has been successfully verified, and the authorization relationship query result indicates that the authorization relationship record corresponding to the first private key and the first business component has been found, then a component verification result indicating that the verification of the first business component has been successful is determined.
[0251] Wherein, the first mapping relationship list also includes a key information list;
[0252] The private key acquisition module 12 is specifically used for:
[0253] The private key information of the first private key is obtained, and based on the private key information, a first private key having an authorization relationship with the first business component is determined from the key information list.
[0254] The data processing device 1 further includes: a mapping relationship list determining module 16;
[0255] The mapping relationship list determination module 16 is specifically used for:
[0256] Acquire, through the first proxy component, a component list of service components deployed in the first device; the component list includes the first service component;
[0257] Sending the component list to the credential background service device through the first proxy component, so that the credential background service device determines the key information list and the key authorization relationship list associated with the component list from the global mapping relationship list, and returns the key information list and the key authorization relationship list associated with each business component to the first proxy component;
[0258] The first proxy component determines the first mapping relationship list based on the received key information list and key authorization relationship list.
[0259] The data processing device 1 further includes: a data encryption storage module 17;
[0260] The data encryption storage module 17 is specifically used for:
[0261] Acquire device key information associated with the first device, and generate device key information based on the device key information;
[0262] The first mapping relationship list is encrypted based on the device key information to obtain encrypted mapping relationship data, and the encrypted mapping relationship data is stored.
[0263] See also Fig.17 , Fig.17 Schematic diagram of a data processing device provided in an embodiment of the present application. Fig.17 As shown, the data processing device 2 may be a computer program (including program code) running on a second device (e.g., the above-mentioned device 22a). For example, the data processing device 2 is an application software, and the second device is deployed with a second proxy component and a second business component. It can be understood that the data processing device 2 can be used to execute the corresponding steps in the data processing method provided in the embodiment of the present application. Fig.17 As shown, the data processing device 2 may include: a credential acquisition module 21, a public key acquisition module 22, and a credential verification module 23;
[0264] The credential acquisition module 21 is used to acquire, through the second business component, a first electronic credential sent by a first business component in a first device; the first business component is a previous business component of the second business component; the first device also includes a first proxy component; the first electronic credential is obtained by the first business component performing a credential issuance process based on a first private key and first business information; the first private key is a private key having an authorization relationship with the first business component determined by the first proxy component from a first mapping relationship list;
[0265] The public key acquisition module 22 is used to acquire, through the second proxy component, from the second mapping relationship list, a first public key having an authorization relationship with the second business component; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are a key pair;
[0266] The certificate verification module 23 is used to perform certificate verification processing on the first electronic certificate using the first public key.
[0267] See also Fig.18 , Fig.18 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig.18 As shown, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Fig.18 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.
[0268] In such Fig.18In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to execute the description of the data processing method in any of the corresponding embodiments above, which will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated.
[0269] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores the computer program executed by the data processing device 1 and the data processing device 2 mentioned above, and the computer program includes program instructions. When the processor executes the program instructions, it can execute the description of the data processing method in the previous embodiment, so it will not be repeated here. In addition, the description of the beneficial effects of using the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0270] The computer-readable storage medium may be the data processing device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0271] In addition, it should be noted here that: the embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided by any of the corresponding embodiments in the foregoing text. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in this application, please refer to the description of the method embodiment of this application.
[0272] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0273] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.
[0274] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0275] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, characterized in that: The method is performed by a first device, in which a first proxy component and a first service component are deployed; the method includes: Acquire first business information associated with the target business through the first business component; Determine, by the first proxy component, from a first mapping relationship list, a first private key having an authorization relationship with the first business component, and transmit the first private key to the first business component; the first proxy component is used to perform key management on the first business component through the first mapping relationship list; The first business component performs a certificate issuance process based on the first private key and the first business information to obtain a first electronic certificate; The first electronic certificate is transferred from the first business component to the second business component in the second device; the second business component is the next business component of the first business component; the first electronic certificate is used to indicate the second business component, and when a first public key with an authorization relationship with the second business component is obtained from a second mapping relationship list corresponding to the second proxy component, the first electronic certificate is verified by using the first public key; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are each other's key pair.
2. The method according to claim 1, characterized in that The service call chain corresponding to the target service includes multiple service components, and the first service component is the first service component among the multiple service components; The acquiring, through the first business component, first business information associated with the target business includes: Performing business processing on the acquired business request associated with the target business through the first business component, and determining first key business data for business credential circulation from the business request; Performing hash calculation on the first key business data to obtain first hash information of the first key business data; Determine a null value as first pre-credential hash information associated with a first electronic credential to be generated; The first business information is determined based on the first hash information and the first pre-credential hash information.
3. The method according to claim 1, characterized in that The service call chain corresponding to the target service includes multiple service components, the first service component and the second service component both belong to the multiple service components, the multiple service components also include a third service component, and the third service component is the previous service component of the first service component; The acquiring, through the first business component, first business information associated with the target business includes: Acquire, through the first business component, a second electronic certificate sent by the third business component; The second electronic certificate includes second business information; the second business information is determined by the third business component; The first business component performs a credential verification process on the second electronic credential, and when the verification of the second electronic credential succeeds, determines first business information associated with the target business based on the second electronic credential.
4. The method according to claim 3, characterized in that The second business information includes second hash information of second key business data and second pre-credential hash information; The determining, based on the second electronic certificate, first business information associated with the target business includes: If the business processing policy of the first business component is a first processing policy that does not update key business data used for business credential circulation, the second hash information and the second pre-credential hash information are determined as the first business information associated with the target business.
5. The method according to claim 3, characterized in that: The second business information includes second hash information of second key business data; The determining, based on the second electronic certificate, first business information associated with the target business includes: If the business processing strategy of the first business component is a second processing strategy for updating key business data used for business credential circulation, the first business component determines third key business data based on the second key business data, performs hash calculation on the third key business data, and obtains third hash information of the third key business data; Performing hash calculation on the second electronic credential to obtain third pre-credential hash information associated with the first electronic credential to be generated; Based on the third hash information and the third pre-credential hash information, first business information associated with the target business is determined.
6. The method according to claim 3, characterized in that: The second electronic certificate is the last electronic certificate in the electronic certificate chain transferred to the first business component, and the electronic certificate chain also includes a third electronic certificate, and the third electronic certificate is the previous electronic certificate of the second electronic certificate; the second electronic certificate includes a second signature, and the second signature is obtained by signing the second business information based on a second private key that has an authorization relationship with the third business component; the second business information includes second previous certificate hash information; The first business component performing credential verification processing on the second electronic credential includes: Determine, by the first proxy component, from the first mapping relationship list, the second public key corresponding to the second private key, and transmit the second public key to the first business component; there is an authorization relationship between the second public key and the first business component; Performing signature verification processing on the second signature based on the second public key and the second business information to obtain a signature verification result; Determine the third electronic certificate from the electronic certificate chain, perform hash calculation on the third electronic certificate to obtain verification hash information corresponding to the third electronic certificate, and compare the second pre-credential hash information with the verification hash information to obtain a comparison result; If the signature verification result indicates that the verification is successful, and the comparison result indicates that the second pre-credential hash information is consistent with the verification hash information, it is determined that the second electronic certificate is successfully verified.
7. The method according to claim 1, characterized in that The first business component performs a certificate issuance process based on the first private key and the first business information to obtain a first electronic certificate, including: The first business component performs signature processing on the first business information based on the first private key to obtain a first signature, and determines a first electronic certificate based on the first signature.
8. The method according to claim 1, characterized in that The business call chain corresponding to the target business includes multiple business components, the first business component is the first business component among the multiple business components; the first electronic certificate is generated based on the first signature and the first business information; The first signature is obtained by signing the first service information based on the first private key; The method further comprises: Determining an electronic credential chain associated with the target business based on the first electronic credential; The electronic certificate chain is used to be sent to the second business component.
9. The method according to claim 1, characterized in that: The business call chain corresponding to the target business includes multiple business components, the multiple business components also include a third business component, the third business component is the previous business component of the first business component; the third business component is used to send a second electronic certificate to the first business component; The method further comprises: If the business processing policy of the first business component is a first business processing policy that does not update key business data used for business credential circulation, an electronic credential chain associated with the target business is obtained; the electronic credential chain includes the second electronic credential; the second electronic credential is the last electronic credential in the electronic credential chain; the first electronic credential is obtained by adding a first signature to the second electronic credential; the first signature is obtained by signing the first business information based on the first private key; The second electronic certificate in the electronic certificate chain is replaced based on the first electronic certificate to obtain an updated electronic certificate chain; the updated electronic certificate chain is used to be sent to the second business component.
10. The method according to claim 1, characterized in that The service call chain corresponding to the target service includes multiple service components, and the multiple service components also include a third service component, and the third service component is the previous service component of the first service component; The third business component is used to send a second electronic certificate to the first business component; The method further comprises: If the business processing strategy of the first business component is a second business processing strategy for updating key business data used for business credential circulation, an electronic credential chain associated with the target business is obtained; the electronic credential chain includes the second electronic credential; the second electronic credential is the last electronic credential in the electronic credential chain; the first electronic credential is generated based on the first signature and the first business information; the first signature is obtained by signing the first business information based on the first private key; The first electronic certificate is added after the second electronic certificate in the electronic certificate chain to obtain an updated electronic certificate chain; the updated electronic certificate chain is used to be sent to the second business component.
11. The method according to claim 1, characterized in that: The determining, by the first proxy component from a first mapping relationship list, a first private key having an authorization relationship with the first service component, and transmitting the first private key to the first service component includes: When the first service component requests the first proxy component to obtain the first private key, the first proxy component performs component verification on the first service component to obtain a component verification result; When the component verification result indicates that the verification of the first service component is successful, the first proxy component obtains the first mapping relationship list; The first proxy component determines, from a first mapping relationship list, a first private key having an authorization relationship with the first service component, and transmits the first private key to the first service component.
12. The method according to claim 11, characterized in that The first mapping relationship list includes a key authorization relationship list; The performing component verification on the first service component by the first proxy component to obtain a component verification result includes: The first proxy component obtains component feature information associated with the first business component, and performs component feature verification on the first business component based on the component feature information to obtain a component feature verification result; Querying the authorization relationship record corresponding to the first private key and the first business component in the key authorization relationship list to obtain an authorization relationship query result; If the component feature verification result indicates that the component feature information of the first business component has been successfully verified, and the authorization relationship query result indicates that the authorization relationship record corresponding to the first private key and the first business component has been found, then a component verification result indicating that the verification of the first business component has been successful is determined.
13. The method according to claim 11, characterized in that The first mapping relationship list also includes a key information list; The determining, from the first mapping relationship list, a first private key having an authorization relationship with the first service component includes: The private key information of the first private key is obtained, and based on the private key information, a first private key having an authorization relationship with the first business component is determined from the key information list.
14. The method according to claim 1, characterized in that The method further comprises: Acquire, through the first proxy component, a component list of service components deployed in the first device; the component list includes the first service component; Sending the component list to the credential background service device through the first proxy component, so that the credential background service device determines the key information list and the key authorization relationship list associated with the component list from the global mapping relationship list, and returns the key information list and the key authorization relationship list associated with each business component to the first proxy component; The first proxy component determines the first mapping relationship list based on the received key information list and key authorization relationship list.
15. The method according to claim 14, characterized in that The method further comprises: Acquire device key information associated with the first device, and generate device key information based on the device key information; The first mapping relationship list is encrypted based on the device key information to obtain encrypted mapping relationship data, and the encrypted mapping relationship data is stored.
16. A data processing method, characterized in that: The method is performed by a second device, in which a second proxy component and a second service component are deployed; the method includes: The first electronic certificate sent by the first business component in the first device is obtained through the second business component; the first business component is the previous business component of the second business component; the first device also includes a first proxy component; the first electronic certificate is obtained by the first business component performing a certificate issuance process based on the first private key and the first business information; the first private key is a private key with an authorization relationship with the first business component determined by the first proxy component from a first mapping relationship list; Acquire, by the second proxy component, a first public key having an authorization relationship with the second business component from a second mapping relationship list; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are a key pair to each other; The first electronic certificate is verified using the first public key.
17. A data processing device, characterized in that: The apparatus is run on a first device, in which a first proxy component and a first service component are deployed; the apparatus comprises: A business information determination module, configured to obtain first business information associated with a target business through the first business component; a private key acquisition module, configured to determine, through the first proxy component, from a first mapping relationship list, a first private key having an authorization relationship with the first business component, and transmit the first private key to the first business component; the first proxy component is configured to perform key management on the first business component through the first mapping relationship list; A certificate issuance module, configured to perform certificate issuance processing by the first business component based on the first private key and the first business information to obtain a first electronic certificate; A credential transfer module, used to transfer the first electronic credential from the first business component to the second business component in the second device; the second business component is the next business component of the first business component; the first electronic credential is used to indicate the second business component, and when a first public key having an authorization relationship with the second business component is obtained from a second mapping relationship list corresponding to the second proxy component, the first electronic credential is verified by using the first public key; the second proxy component is used to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are each other's key pair.
18. A data processing device, characterized in that: The apparatus is run on a second device, in which a second proxy component and a second service component are deployed; the apparatus comprises: A credential acquisition module, configured to acquire, through the second business component, a first electronic credential sent by a first business component in a first device; the first business component is a previous business component of the second business component; the first device further includes a first proxy component; the first electronic credential is obtained by the first business component performing credential issuance processing based on a first private key and first business information; the first private key is a private key having an authorization relationship with the first business component determined by the first proxy component from a first mapping relationship list; A public key acquisition module, configured to acquire, through the second proxy component, from a second mapping relationship list, a first public key having an authorization relationship with the second business component; the second proxy component is configured to perform key management on the second business component through the second mapping relationship list; the first public key and the first private key are a key pair to each other; The certificate verification module is used to perform certificate verification processing on the first electronic certificate using the first public key.
19. A computer device, characterized in that: including memory and processor; The memory is connected to the processor, the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 16.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 16.
21. A computer program product, characterized in that The method comprises a computer program / instruction, which implements the method according to any one of claims 1 to 16 when executed by a processor.
Citation Information
Cited By
Access control method, device and system, electronic equipment and storage medium
CN121864503A
