Multi-certificate storage method, system and storage medium based on embedded chip card
By adopting a chain storage structure on the embedded chip card, the problem of non-sequential certificate storage is solved, more efficient storage and search efficiency is achieved, and the problems of waste of storage space and low efficiency in the existing technology are solved.
Patent Information
- Application Number
- CN202110323186.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-03-26
AI Technical Summary
Existing certificate storage solutions cannot support non-sequential storage of CI certificates, EUM certificates, and eUICC certificates, resulting in wasted storage space and low search efficiency.
Using an embedded chip card based on a chain storage structure, it obtains the plaintext certificate identification by decrypting the ciphertext certificate data, determines and assigns the certificate to the corresponding certificate body, supports non-sequential storage of CI certificates and non-CI certificates, and creates and manages CIs respectively. Certificate chain and non-CI certificate chain.
Effectively save storage space, improve the search efficiency of CI certificates, and improve the flexibility and independence of the storage structure.
Smart Images

Figure CN113127838B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a multi-certificate storage method, system and storage medium based on an embedded chip card. Background Art
[0002] A digital certificate is a digital certificate that marks the identity information of the parties in Internet communication. People can use it to identify each other online; therefore, digital certificates are also called digital identification. Digital certificates ensure the integrity and security of information and data in computer network communication by encrypting or decrypting information and data of network users.
[0003] RSP (Remote SIM Provisioning) remote SIM card supply, as the name implies, is to remotely obtain the electronic SIM card information existing in the operator. Its applicable scenario is personal consumer terminals, that is, the operator provides a communicative electronic card, and the individual actively triggers the remote electronic card download. eUICC (embedded UICC) is commonly understood as an embedded integrated circuit card. The operator's electronic card information will be carried in the eUICC to achieve the same communication function as the SIM card.
[0004] As attached Figure 1 As shown, Figure 1This is a module diagram of the certificate storage system in the prior art. The certificate system described in the RSP Technical Specification Version 2.2 technical specification includes CI (certificate issuer), EUM (eUICC manufacturer), and eUICC. CI includes CI certificate, CI certificate public key, and CI certificate private key; EUM includes EUM certificate, EUM certificate public key, and EUM certificate private key; eUICC includes eUICC certificate, eUICC certificate public key, and eUICC certificate private key. CI certificate is self-signed by CI, EUM certificate is issued by CI, and eUICC certificate is issued by EUM. In the existing certificate storage solution, the CI certificate, EUM certificate and eUICC certificate are written in sequence and put together. In actual applications, the CI certificate, EUM certificate and eUICC certificate are not written in sequence (for example: EUM certificate 1 is written first, then EUM certificate 2, then eUICC certificate 2, and then eUICC certificate 1). The existing storage solution cannot support certificate storage in this case. On the other hand, the eUICC card supports the storage of multiple sets of CI certificates, but not every set of CI certificates has corresponding EUM certificates and eUICC certificates. According to the existing storage solution, each certificate body has corresponding reserved space for CI certificates, EUM certificates and eUICC certificates. If a certificate body only stores CI certificates, it will cause space waste and low efficiency when searching for CI certificates. Summary of the invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a multi-certificate storage method based on an embedded chip card, which can improve the certificate search efficiency and save the certificate storage space.
[0006] The present invention also provides a multi-certificate storage system based on an embedded chip card having the multi-certificate storage method based on an embedded chip card.
[0007] The present invention also provides a computer-readable storage medium having the above-mentioned multi-certificate storage method based on an embedded chip card.
[0008] According to the first aspect of the present invention, the multi-certificate storage method based on the embedded chip card includes the following steps: the embedded chip card performs a decryption operation on the received ciphertext certificate data to obtain plaintext certificate data corresponding to the ciphertext certificate data, and the plaintext certificate data includes a certificate identifier; the embedded chip card determines whether the received certificate is a CI certificate based on the certificate identifier; if the received certificate is a CI certificate, the CI certificate is stored in a first certificate body; if the received certificate is a non-CI certificate, the non-CI certificate is stored in a second certificate body; wherein the first certificate body and the second certificate body are based on a chain storage structure.
[0009] According to some embodiments of the present invention, if the received certificate is a CI certificate, storing the CI certificate in the first certificate body includes: if the first certificate body includes a first certificate chain, creating a first sub-certificate body based on the tail of the first certificate chain and storing the CI certificate in the first sub-certificate body; if the first certificate chain does not exist in the first certificate body, creating the first certificate chain, creating a first sub-certificate body based on the head of the first certificate chain, and storing the CI certificate in the first sub-certificate body.
[0010] According to some embodiments of the present invention, it also includes: storing the CI public key, CI public key ID, and CI algorithm parameters corresponding to the CI certificate in the first sub-certificate body where the CI certificate is located.
[0011] According to some embodiments of the present invention, if the received certificate is a non-CI certificate, storing the non-CI certificate in the second certificate body includes: assigning an index identifier to the non-CI certificate; if the second certificate body includes a second certificate chain, matching the index identifier with the index in the second sub-certificate body already existing in the second certificate chain; if the index identifier matches the index successfully, storing the non-CI certificate in the second sub-certificate body; if the index identifier does not match the index successfully, creating a second sub-certificate body based on the end of the second certificate chain, and storing the non-CI certificate and the index identifier in the second sub-certificate body.
[0012] According to some embodiments of the present invention, if the received certificate is a non-CI certificate, storing the non-CI certificate in the second certificate body also includes: assigning an index identifier to the non-CI certificate; if the second certificate chain does not exist in the second certificate body, creating a second certificate chain, and creating a second sub-certificate body based on the header of the second certificate chain, and storing the non-CI certificate and the index identifier in the second sub-certificate body.
[0013] According to some embodiments of the present invention, the non-CI certificate includes an EUM certificate, an eUICC certificate and an eUICC certificate private key.
[0014] According to some embodiments of the present invention, it also includes storing the EUM authentication public key ID corresponding to the EUM certificate and the eUICC algorithm parameters corresponding to the eUICC certificate in the second sub-certificate body where the non-CI certificate is located, wherein the EUM authentication public key ID corresponds to the CI public key ID.
[0015] According to the second aspect of the present invention, a multi-certificate storage system based on an embedded chip card includes: a first certificate body, the first certificate body includes a first certificate chain, the first certificate chain includes several first sub-certificate bodies; a second certificate body, the second certificate body includes a second certificate chain, the second certificate chain includes several second sub-certificate bodies; a storage management module, the storage management module is used to control the embedded chip card to perform a decryption operation on the received ciphertext certificate data to obtain plaintext certificate data corresponding to the ciphertext certificate data, the plaintext certificate data includes a certificate identifier, the embedded chip card determines whether the received certificate is a CI certificate based on the certificate identifier, if the received certificate is a CI certificate, the CI certificate is stored in the first certificate body; if the received certificate is a non-CI certificate, the non-CI certificate is stored in the second certificate body; wherein the second sub-certificate body corresponds to the first sub-certificate body.
[0016] According to some embodiments of the present invention, the first sub-certificate body includes a CI certificate, a CI public key, a CI public key ID, a CI algorithm parameter, and marking information pointing to the next first sub-certificate body; the second sub-certificate body includes an index, an EUM certificate, an EUM authentication public key ID, an eUICC certificate, an eUICC certificate private key, an eUICC algorithm parameter, and marking information pointing to the next second sub-certificate body.
[0017] According to a third aspect of an embodiment of the present invention, a computer-readable storage medium stores a computer program, which, when executed by one or more processors, can perform the steps of any of the above-mentioned methods for storing multiple certificates based on an embedded chip card.
[0018] The method for storing multiple certificates based on an embedded chip card according to an embodiment of the present invention has at least the following beneficial effects:
[0019] Through the multi-certificate storage method based on the embedded chip card of the present invention, it is possible to support non-sequential storage of CI certificates, EUM certificates and eUICC certificates, which greatly improves the problem of the inflexibility of the existing storage structure and the large storage space occupied, and further improves the independence of the CI certificate storage structure. When only CI certificates are stored in a certificate body, the present invention saves more space than the prior art and is more efficient in searching for CI certificates.
[0020] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0022] Figure 1 It is a module schematic diagram of a certificate storage system in the prior art;
[0023] Figure 2 A schematic diagram of a method according to an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of a CI certificate storage method according to an embodiment of the present invention;
[0025] Figure 4 A schematic diagram of a non-CI certificate storage method according to an embodiment of the present invention;
[0026] Figure 5 This is one of the module schematic block diagrams of the system according to an embodiment of the present invention;
[0027] Figure 6 This is the second module schematic block diagram of the system according to the embodiment of the present invention. DETAILED DESCRIPTION
[0028] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0029] It should be understood that the size of the serial numbers of the steps in the embodiment of the present invention does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0030] In the description of the present invention, "several" means one or more, "more" means two or more, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0031] Terminology explanation:
[0032] CI certificate: certificate issuer;
[0033] EUM certificate: card merchant certificate;
[0034] eUICC certificate: card certificate.
[0035] Reference Figures 2 to 6 As shown, the embodiments of the present invention include: the certificate body in the eUICC card is divided into a CI certificate body and a non-CI certificate body, and the CI certificate body and the non-CI certificate body are stored respectively using a chain structure. The CI certificate chain header points to the first CI certificate body among multiple CI certificate bodies in the CI certificate chain; the non-CI certificate chain header points to the first non-CI certificate body among multiple non-CI certificate bodies in the non-CI certificate chain. Each certificate body in the CI certificate chain includes a CI certificate, a CI public key ID, a CI public key, a CI algorithm parameter, and NextCI (next CI certificate body member). Each certificate body in the non-CI certificate chain includes an index of an EUM certificate and an eUICC certificate on the certificate chain, an EUM certificate, an EUM authentication public key ID, an eUICC certificate, an eUICC private key, an eUICC algorithm parameter, and NextEUMeUICC, i.e., the next non-CI certificate body member. The NextCI or NextEUMeUICC of the previous CI certificate body or non-CI certificate body in multiple CI certificate bodies or non-CI certificate bodies all point to the next CI certificate body or non-CI certificate body. CI certificates, EUM certificates, eUICC certificates and eUICC private keys can all be stored in non-sequential order.
[0036] Reference Figure 2 , Figure 2 Schematic diagram of a method according to an embodiment of the present invention. The method according to an embodiment of the present invention includes:
[0037] The embedded chip card performs a decryption operation on the received ciphertext certificate data to obtain plaintext certificate data corresponding to the ciphertext certificate data, wherein the plaintext certificate data includes a certificate identifier;
[0038] The embedded chip card determines whether the received certificate is a CI certificate based on the certificate identifier;
[0039] If the received certificate is a CI certificate, the CI certificate is stored in the first certificate body;
[0040] If the received certificate is a non-CI certificate, the non-CI certificate is stored in the second certificate body. It can be understood that the non-CI certificate is certificate data other than the CI certificate.
[0041] The first certificate body and the second certificate body are based on a chain storage structure.
[0042] It should be noted that, through the design of the chain storage structure of the first certificate body and the second certificate body of the present invention, the CI certificate is stored in the first certificate body, and the non-CI certificate is stored in the second certificate body, which can solve the technical problem that in actual applications, the CI certificate, EUM certificate and eUICC certificate are not written sequentially, making the writing of certificates inflexible. On the other hand, it also solves the technical problem that each certificate body has corresponding reserved space for the CI certificate, EUM certificate and eUICC certificate. If a certificate body only stores the CI certificate, it will cause a waste of space and low efficiency when searching for the CI certificate.
[0043] Figure 3 A schematic diagram of a CI certificate storage method according to an embodiment of the present invention is shown, including:
[0044] If the first certificate body includes a first certificate chain, creating a first sub-certificate body based on the tail of the first certificate chain and storing the CI certificate in the first sub-certificate body;
[0045] If the first certificate chain does not exist in the first certificate body, the first certificate chain is created, and a first sub-certificate body is created based on the header of the first certificate chain, and the CI certificate is stored in the first sub-certificate body.
[0046] In some embodiments of the present invention, the step further includes storing the CI public key, CI public key ID, and CI algorithm parameters corresponding to the CI certificate in the first sub-certificate body where the CI certificate is located.
[0047] A specific embodiment of the present invention is: Figure 3 As shown, the embedded chip card decrypts the ciphertext certificate data issued to obtain the plaintext certificate data, and all subsequent operations are operations on the plaintext certificate data. The embedded chip card determines whether the issued certificate is a CI certificate, EUM certificate, eUICC certificate or the private key of the eUICC certificate based on the certificate identifier.
[0048] If it is a CI certificate, determine whether a CI certificate chain already exists: if so, create a certificate body at the end of the CI certificate chain and store the certificate; if not, create a new CI certificate chain, and create and store the certificate body containing the certificate as the first certificate body in the CI certificate chain.
[0049] Reference Figure 4 , Figure 4 The flowchart of the non-CI certificate storage method of an embodiment of the present invention includes:
[0050] Assign index identifiers to non-CI certificates;
[0051] If the second certificate body includes a second certificate chain, the index identifiers are matched with the indexes in the second sub-certificate bodies already in the second certificate chain;
[0052] If the index identifier matches the index successfully, the non-CI certificate is stored in the second sub-certificate body;
[0053] If the index identifier and the index do not match successfully, a second sub-certificate body is created based on the tail of the second certificate chain, and the non-CI certificate and the index identifier are stored in the second sub-certificate body.
[0054] If the second certificate chain does not exist in the second certificate body, the second certificate chain is created, and a second sub-certificate body is created based on the header of the second certificate chain, and the non-CI certificate and the index identifier are stored in the second sub-certificate body.
[0055] A specific embodiment of the present invention is: the embedded chip card decrypts the issued ciphertext certificate data to obtain plaintext certificate data, and all subsequent operations are operations on the plaintext certificate data. The embedded chip card determines whether the issued certificate is a CI certificate, an EUM certificate, an eUICC certificate or a private key of an eUICC certificate according to the certificate identifier. If it is an EUM certificate or an eUICC certificate, it determines whether a non-CI certificate chain already exists: if it exists, first match it with the certificate body on the non-CI certificate chain according to the index. If a certificate body with the same index is found, the certificate is stored in the certificate body. If a certificate body with the same index is not found, a certificate body is created at the end of the non-CI certificate chain and the certificate and index are stored; if it does not exist, a new non-CI certificate chain is created, and the certificate body where the certificate is located is used as the first certificate body of the non-CI certificate chain to create and store the certificate and index. If it is the private key of the eUICC certificate, determine whether a non-CI certificate chain already exists: if it does, first match it with the certificate body on the non-CI certificate chain according to the index. If a certificate body with the same index is found, store the private key in the certificate body. If a certificate body with the same index is not found, create a certificate body at the end of the non-CI certificate chain and store the private key and index. If it does not exist, create a new non-CI certificate chain, and create the certificate body where the certificate is located as the first certificate body of the non-CI certificate chain and store the private key and index.
[0056] In some specific embodiments of the present invention, the non-CI certificate includes an EUM certificate, an eUICC certificate and an eUICC certificate private key.
[0057] In some specific embodiments of the present invention, it also includes storing the EUM authentication public key ID corresponding to the EUM certificate and the eUICC algorithm parameters corresponding to the eUICC certificate in the second sub-certificate body where the non-CI certificate is located, wherein the EUM authentication public key ID corresponds to the CI public key ID.
[0058] One of the specific embodiments is: when storing the CI certificate, the public key, public key ID, and algorithm parameters in the CI certificate need to be extracted and stored in the certificate body; when storing the EUM certificate, the authentication public key ID in the EUM certificate needs to be extracted and stored in the certificate body, wherein the authentication public key ID in the EUM certificate is equal to the public key ID in the corresponding CI certificate, thereby associating the two certificate bodies; when storing the eUICC certificate, the algorithm parameters in the eUICC certificate need to be extracted and stored in the certificate body. It can be understood that by making the EUM authentication public key ID correspond to the CI public key ID, the first certificate body can be associated with the second certificate body, thereby further associating the first sub-certificate body with the second sub-certificate body, facilitating subsequent retrieval and data operations.
[0059] Reference Figure 5 , Figure 5 This is one of the module schematic block diagrams of the system according to an embodiment of the present invention, including:
[0060] A first certificate body, the first certificate body includes a first certificate chain, and the first certificate chain includes a plurality of first sub-certificate bodies;
[0061] A second certificate body, the second certificate body includes a second certificate chain, and the second certificate chain includes a plurality of second sub-certificate bodies;
[0062] A storage management module, the storage management module is used to control the embedded chip card to perform a decryption operation on the received ciphertext certificate data to obtain plaintext certificate data corresponding to the ciphertext certificate data, the plaintext certificate data including a certificate identifier, the embedded chip card determines whether the received certificate is a CI certificate according to the certificate identifier, if the received certificate is a CI certificate, the CI certificate is stored in the first certificate body; if the received certificate is a non-CI certificate, the non-CI certificate is stored in the second certificate body;
[0063] The second sub-certificate body corresponds to the first sub-certificate body;
[0064] Among them, a specific embodiment of the present invention is that the embedded chip card is an eUICC card. It should be noted that the embedded chip card of the present invention is not limited to the eUICC card. All embedded chip cards belong to the protection scope of the present invention, such as Sim cards, UICC cards, etc.
[0065] Figure 6The second module schematic block diagram of the system of an embodiment of the present invention is shown, wherein the first sub-certificate body includes a CI certificate, a CI public key, a CI public key ID, a CI algorithm parameter, and marking information pointing to the next first sub-certificate body; the second sub-certificate body includes an index, an EUM certificate, an EUM authentication public key ID, an eUICC certificate, an eUICC certificate private key, an eUICC algorithm parameter, and marking information pointing to the next second sub-certificate body. Specifically, the eUICC card includes two certificate bodies, one of which stores a CI certificate, including a CI certificate chain header, and several CI sub-certificate bodies, each of which includes a CI certificate, a CI public key, a CI public key ID, a CI algorithm parameter, and a marking information NextCI pointing to the next CI sub-certificate body, and the other certificate body stores a non-CI certificate, which includes an EUM certificate, an eUICC certificate, and an eUICC private key. The certificate body includes a non-CI certificate chain header, and several non-CI sub-certificate bodies, each of which includes an index, an EUM certificate, an EUM authentication public key ID, an eUICC certificate, an eUICC certificate private key, an eUICC algorithm parameter, and a marking information NextEUMeUICC pointing to the next non-CI sub-certificate body.
[0066] In some embodiments of the present invention, there is also a computer-readable storage medium, which includes a stored computer program; when the computer program is running, it controls the device where the computer storage medium is located to execute the above-mentioned multi-certificate storage method based on the embedded chip card.
[0067] Through the multi-certificate storage method based on the embedded chip card of the present invention, it is possible to support non-sequential storage of CI certificates, EUM certificates and eUICC certificates, which greatly improves the problem of the inflexibility of the existing storage structure and the large storage space occupied, and further improves the independence of the CI certificate storage structure. When only CI certificates are stored in a certificate body, the present invention saves more space than the prior art and is more efficient in searching for CI certificates.
[0068] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures herein are also within the scope of the present disclosure.
[0069] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and flow chart and the blocks in the block diagram and flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and flow chart may be present in certain embodiments.
[0070] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.
[0071] The program modules, applications, etc. herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality herein (e.g., one or more operations of the illustrative methods herein) to be performed.
[0072] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.
[0073] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A multi-certificate storage method based on an embedded chip card, characterized in that: The following steps are involved: The embedded chip card performs a decryption operation on the received ciphertext certificate data to obtain plaintext certificate data corresponding to the ciphertext certificate data, wherein the plaintext certificate data includes a certificate identifier; The embedded chip card determines whether the received certificate is a CI certificate according to the certificate identifier; If the received certificate is a CI certificate, storing the CI certificate in the first certificate body; If the received certificate is a non-CI certificate, storing the non-CI certificate in the second certificate body; Wherein, the first certificate body and the second certificate body are based on a chain storage structure; The non-CI certificate includes an EUM certificate, an eUICC certificate, and an eUICC certificate private key. The method further includes storing an EUM authentication public key ID corresponding to the EUM certificate and an eUICC algorithm parameter corresponding to the eUICC certificate in a second sub-certificate body where the non-CI certificate is located, wherein the EUM authentication public key ID corresponds to the CI public key ID; The CI public key, CI public key ID, and CI algorithm parameters corresponding to the CI certificate are stored in the first sub-certificate body where the CI certificate is located.
2. The method for storing multiple certificates based on an embedded chip card according to claim 1, characterized in that: If the received certificate is a CI certificate, storing the CI certificate in the first certificate body includes: If the first certificate body includes a first certificate chain, creating a first sub-certificate body based on the tail of the first certificate chain and storing the CI certificate in the first sub-certificate body; If the first certificate chain does not exist in the first certificate body, the first certificate chain is created, and a first sub-certificate body is created based on the header of the first certificate chain, and the CI certificate is stored in the first sub-certificate body.
3. The method for storing multiple certificates based on an embedded chip card according to claim 1, characterized in that: If the received certificate is a non-CI certificate, storing the non-CI certificate in the second certificate body includes: Assigning an index identifier to the non-CI certificate; If the second certificate body includes a second certificate chain, matching the index identifiers with the indexes in the second sub-certificate bodies already in the second certificate chain; If the index identifier matches the index successfully, storing the non-CI certificate in the second sub-certificate body; If the index identifier does not match the index successfully, a second sub-certificate body is created based on the tail of the second certificate chain, and the non-CI certificate and the index identifier are stored in the second sub-certificate body.
4. The method for storing multiple certificates based on an embedded chip card according to claim 1, characterized in that: If the received certificate is a non-CI certificate, storing the non-CI certificate in the second certificate body further comprises: Assigning an index identifier to the non-CI certificate; If the second certificate chain does not exist in the second certificate body, a second certificate chain is created, and a second sub-certificate body is created based on the header of the second certificate chain, and the non-CI certificate and the index identifier are stored in the second sub-certificate body.
5. A multi-certificate storage system based on an embedded chip card, characterized in that: include: A first certificate body, wherein the first certificate body includes a first certificate chain, and the first certificate chain includes a plurality of first sub-certificates; A second certificate body, wherein the second certificate body includes a second certificate chain, and the second certificate chain includes a plurality of second sub-certificate bodies; A storage management module, the storage management module is used to control the embedded chip card to perform a decryption operation on the received ciphertext certificate data to obtain plaintext certificate data corresponding to the ciphertext certificate data, the plaintext certificate data includes a certificate identifier, the embedded chip card determines whether the received certificate is a CI certificate according to the certificate identifier, if the received certificate is a CI certificate, the CI certificate is stored in the first certificate body; if the received certificate is a non-CI certificate, the non-CI certificate is stored in the second certificate body; The second sub-certificate body corresponds to the first sub-certificate body; The non-CI certificate includes an EUM certificate, an eUICC certificate and an eUICC certificate private key, and the EUM authentication public key ID corresponding to the EUM certificate and the eUICC algorithm parameters corresponding to the eUICC certificate are stored in the second sub-certificate body where the non-CI certificate is located, wherein the EUM authentication public key ID corresponds to the CI public key ID; The CI public key, CI public key ID, and CI algorithm parameters corresponding to the CI certificate are stored in the first sub-certificate body where the CI certificate is located.
6. The multi-certificate storage system based on embedded chip card according to claim 5, characterized in that: The first sub-certificate body includes a CI certificate, a CI public key, a CI public key ID, CI algorithm parameters and marking information pointing to the next first sub-certificate body; The second sub-certificate body includes an index, an EUM certificate, an EUM authentication public key ID, an eUICC certificate, an eUICC certificate private key, an eUICC algorithm parameter, and marking information pointing to the next second sub-certificate body.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program; when the computer program is run, it controls the device where the computer-readable storage medium is located to execute the multi-certificate storage method based on an embedded chip card as described in any one of claims 1 to 4.
