Certificate-based data authentication

By using the iteration number mechanism in the certificate and the method of data host retrieval of authenticated data, the problem of certificate revocation and verification in PKI is solved, achieving high security and rapid restoration of security status on embedded devices, suitable for applications without Internet connection scene.

CN118740387APending Publication Date: 2024-10-01SICK AG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410342975.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-25
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing digital signature systems have weaknesses in ensuring data authenticity and private key security, especially in public key infrastructure (PKI). Certificate revocation and verification mechanisms are difficult to effectively manage on resource-limited embedded devices, especially Without internet connection.

Method used

By using the iteration number mechanism, the electronic device includes the iteration number in the certificate of the certification authority to distinguish valid and invalid certificates, and retrieves the certified data in the data host for update, ensuring the validity of the certificate and the security of the private key. , avoiding the resource and connection dependencies of traditional revocation lists and online certificate status protocols.

Benefits of technology

It achieves rapid restoration of security status without Internet connection, reduces resource requirements and implementation complexity, ensures a high security level, and provides redundant and diverse security guarantees through multi-signature and certificate verification mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740387A_ABST
    Figure CN118740387A_ABST
Patent Text Reader

Abstract

The invention relates to, but is not limited to, certificate-based data authentication. A method of modifying an electronic device (10) using authenticated data from a data host (12), comprising the steps of: a signature service (13) digitally signing the data with a digital signature using a signature private key in a signature key pair and providing the signed data to the data host (12); the electronic device (10) retrieves the signed data from the data host (12); the electronic device (10) using the certificate of the certificate authority (14) to confirm the signature public key in the signature key pair; the electronic device (10) checking whether the certificate is valid; and the electronic device (10) confirms the digital signature using the signature public key, thereby confirming the authenticity of the data. The certificate includes an iterative number, and the electronic device (10) checks whether the certificate is valid based on the iterative number.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present invention relates to a method for modifying an electronic device by downloading authenticated data from a data host, a data host and a certification network, and the electronic device.

[0002] In the modern connected world, the authenticity of data must be provided in a variety of use cases. A particular scenario of interest is when a manufacturer or other trusted party provides data about a product, such as a firmware update or feature upgrade. Ensuring that this data is indeed coming from the expected party is a means of preventing possible cyber attacks.

[0003] Traditional solutions are based on digital signatures using asymmetric cryptographic systems. An authorized party generates a private and public key pair and signs the data with the private key. The public key is included in the product and is used to verify the signature, thereby checking the authenticity of the data. Typically, the signature also ensures the integrity of the data, for example by including a hash value or similar mechanism on the data.

[0004] Public key authentication ensures that data is signed by a party that has access to the corresponding private key. There are two obvious potential weaknesses in this cryptographic system, the private key and the public key. Both aspects are discussed below, starting with the public key. It must be distributed to any entity that will be able to verify the signature. In turn, that entity must ensure that the public key is truly from the expected source of data. Simply sending the public key along with the data is not desirable, as an active attacker can forge a message and create a new valid signature with his own private key and replace the attached public key with his own public key. The recipient will not notice if the legitimate public key is not known.

[0005] Thus, digital signatures actually reduce the problem of transmitting an arbitrary amount of data in a protected manner to the problem of securely transmitting a public key. A simple solution is to transmit the public key through a covert channel outside the system, such as manually installing or providing the public key to the product at the factory. This is impractical, especially with a large number of products and a large number of keys, and it somewhat takes away the elegance of a secure digital solution compared to traditional means of confidentiality.

[0006] A public key infrastructure (PKI) is a known concept to overcome this problem. The idea is to add a trusted third party to which the task of verifying the public keys of named entities is delegated. The trusted third party is called a certificate authority (CA). Each entity that joins the signing system must prove its identity to the CA and provide its public key to the CA. After successful identification, the CA creates a data structure that includes the name of the entity and the entity's public key. The data structure may include additional metadata, such as a validity period or constraints on the use of the included public key. The data structure is signed with the private key of the CA's key pair. The signed data structure is called a certificate because the CA proves that it has checked the identity of the entity and guarantees the correctness of the included public key of the entity. It should be noted that in the above explanation, two key pairs are involved: the key pair of the entity, whose public key is to be authenticated; and the key pair of the CA used to sign the certificate.

[0007] Returning to signing the data for authenticity, a certificate can now be sent along with the data and the signature. The recipient can use the CA's public key to verify the validity of the information in the certificate. The public key of the data source in the certificate therefore inherits trust from the CA and can subsequently be used to check the signature and thus the authenticity of the data. Public key infrastructure reduces the problem of obtaining and checking many public keys of various entities to obtaining and checking one public key of the CA. The CA public key still needs to be transmitted over a secure channel external to the system, but now the problem is at a manageable level of complexity.

[0008] Figure 4 shows an example tree of certificate authorities where trust is delegated in a chain of certificate authorities. There is a root CA at the top level. It delegates trust to subordinate CAs at lower levels, called child CAs or issuing CAs. The root CA vouches for the issuing CAs with certificates signed with the root CA private key. The issuing CAs, in turn, vouch for lower level entities using their CA private key. The result is a tree with the root CA at the root of the tree. Leaf certificates that are not CAs are called end-entity (EE) certificates. The tree can become much more complex and have more than 100 certificates. Figure 4 A tree can simulate a real hierarchy, such as the organization of a company, or it can be used for purely technical or security purposes.

[0009] The broad standard for implementing certificates in a PKI environment is X.509, currently specified in RFC 5280: Sharon Boeyen et al. Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile. RFC 5280. May 2008. DOI: 10.17487 / RFC5280. URL: https: / / www.rfc-editor.org / info / rfc5280.

[0010] There are also standards for applying PKI to data signatures. The data structures they define include at least the signature, preferably data about the signature algorithm used, and the certificate of the public key used for the signature, as well as all certificates in the PKI tree up to the root certificate. The data structure may already include signed data, which is called an attached signature. In an alternative called a detached signature, the signed data structure itself does not provide the signed data, and the signed data needs to be transmitted in a separate step. The standard for implementing attached and detached signatures is the Cryptographic Message Syntax (CMS) defined in RFC 5652: Russ Housley. Cryptographic Message Syntax (CMS). RFC 5652. September 2009. DOI: 10.17487 / RFC5652. URL: https: / / www.rfc-editor.org / info / rfc5652.

[0011] With the mechanisms in place to ensure the security of the public key, the discussion now focuses on the private key. A core requirement of asymmetric cryptographic systems is that the private key must be protected from unauthorized access, since anyone with access to the key would be able to create signatures in the name of the legitimate key owner. The attacker could then also use it to sign malicious data. Not only the private key used in the signature, but every private key in the certificate chain could be compromised. This is a known issue with any PKI setup and results in certificates no longer being trustworthy.

[0012] In this case, it is necessary to declare the certificate invalid. This process is called certificate revocation. Two proven techniques exist. However, they both have serious drawbacks, especially in the context of small embedded devices that are not connected to the internet.

[0013] One known technique is called a certificate revocation list (CRL), where each CA publishes a list of all revoked certificates, signed by the CA's private key. During certificate validation, the verifying client must download the CRL and check if the certificate is listed. This approach does not scale well. In the case of a large number of revoked certificates, the CRL becomes unmanageable, especially for embedded devices with limited resources. In addition, the device must first have access to the Internet to download the CRL.

[0014] The Online Certificate Status Protocol (OCSP) is another, more scalable technology. The client contacts the CA during the certificate validation process and asks about the status of the certificate. The CA generates a response containing the current status of the certificate, which is signed and valid for a few hours. The advantage is that only the status of one certificate needs to be transmitted, as opposed to the need to transmit the status of all revoked certificates when using CRLs. A disadvantage with regard to data protection is that the CA knows the certificates that the requesting client is interested in as well as the IP address of the requesting device. In addition, as when downloading CRLs, the OCSP certificate check relies on an Internet connection. In many relevant scenarios, such as industrial applications, the client or its local network is disconnected from the Internet for security reasons. Then, neither of the two traditional concepts of certificate revocation is applicable.

[0015] EP 3 211 826 B1 discloses a method for processing implicit certificates using a distributed public key infrastructure. By storing certificates in different nodes of a network based on a distributed hash table instead of a single certificate authority, a chain of proof operations is established, thereby strengthening the authentication of network nodes. However, the document does not propose any improvements to the revocation of certificates.

[0016] US 7 315 ​​941 B2 discusses digital certificate revocation, including CRL and OCSP mentioned in the introduction. A mechanism is disclosed to reduce the cost of revocation and revalidation in the CA chain. However, this does not replace the action of checking whether a single certificate is revoked.

[0017] US 7 793 097 B2, US 9 794 249 B1, US 20020108042 A1 and WO 2016 / 109507 A1 each relate to authentication based on more than one cryptographic system, algorithm or certificate.

[0018] It is therefore an object of the present invention to improve the recovery of a system using certificates, particularly certificates used to digitally sign data, to a secure state once the certificates are no longer trusted.

[0019] The object is met by a method for modifying an electronic device using authenticated data from a data host, a data host and a certification network, an electronic device, and a computer-readable data carrier. The authenticated data may include a firmware update, a software module, or a first configuration or an updated configuration, but is not limited to these examples. The data may or may not be encrypted. Once the data is available in the electronic device and possible code transmitted with the data is executed, the device is modified accordingly.

[0020] The data is digitally signed by a signer or a signing service based on a signing key pair, using a private signing key of an asymmetric encryption system. The private signing key is known only to the signer. The public signing key is not specifically protected and is known to the electronic device, preferably included in the retrieved data. The signed data is provided to the data host. Both the signer and the data host can be considered as software modules or services implemented on any kind of computing hardware. Throughout this specification, preferred or preferably refers to advantageous but optional features.

[0021] The electronic device retrieves the signed data from the data host. In an embodiment of the present invention, the retrieval of the data can be initiated by the data host or the electronic device. There are multiple possible communication paths for data transfer between the signer and the data host and between the electronic device and the data host, and the data transfer can be direct or indirect. For example, the data host can have at least a temporary network or Internet connection to the signer. Similarly, the electronic device can have at least a temporary network or Internet connection to the data host. The data host can also be directly connected to an interface of the electronic device, such as a computer or notebook connected to the electronic device, or a computer-readable data carrier can be used to transfer data from the data host to the electronic device, possibly with intermediate steps, such as downloading from the data host to the data carrier. In this way, an Internet or network connection of the electronic device can be avoided in situations such as industrial environments, where the connection is not desired or technically impossible.

[0022] The authenticity of the signing public key is confirmed in the certificate of the certificate authority. The certificate preferably includes the name of the signer and the signing public key. The certificate authority is a software module or service implemented on any type of computing hardware, which has signed the certificate with its certificate private key, thereby confirming that the signer used the signing public key. Therefore, two key pairs are involved: the signing key pair used by the signer to sign the authenticated data, and the certificate key pair used by the certificate authority to issue the certificate. In the preferred case where the signer and the certificate authority are part of a PKI structure, there may be additional key pairs for higher-level certificates in the certificate authority chain up to the root authority.

[0023] It is also checked whether the certificate is valid. The certificate may have lost validity or, in a conventional framework, has been revoked. Any reason is conceivable, but typically a security breach has occurred or may have occurred. As a result, the certificate private key may no longer be secret. Conventional mechanisms for handling validity are revocation lists or presence requests as discussed in the introduction, which are replaced or supplemented by the inventive mechanism explained below.

[0024] The electronic device can now use the signing public key to confirm the digital signature and thus the authenticity of the data. These steps do not necessarily have to be performed in this order. For example, the authenticity of the data can be temporarily confirmed by verifying the signature using the signing public key, and only afterwards checking whether the signing public key is indeed verified based on the certificate and before or after checking the validity of the certificate. The proof mechanism can include variations of these steps or other steps explained in the introduction. In particular, the actual retrieval of the data can be based on an additional signature or a detached signature.

[0025] The invention starts from the basic idea of ​​using an iteration number in the validity check of a certificate. The iteration number or version number distinguishes between certificates, wherein certificates of certain iteration numbers are valid and certificates of certain other iteration numbers are invalid, in particular regarded as revoked. The iteration number is included in the certificate, preferably as part of the name of the entity authenticated by the certificate. The electronic device checks whether the certificate is still valid based on the iteration number. If there is a certificate chain, the iteration number is preferably part of each certificate in the chain, wherein the root certificate may be an exception.

[0026] The method is a computer-implemented method, for example implemented in any known type of computer or computer network and any electronic device capable of transmitting data, in particular sensors or embedded devices used in an industrial environment.

[0027] An advantage of the invention is that the certificate used for the digital signature, or indeed the private key, can be easily revoked. Thus, the scope of the security breach can be isolated and a high security level can be ensured. The rapid recovery to a secure state meets market needs and, in some cases, even legal requirements for products that are modified by any type of data download. The invention can be applied in scenarios where the recipient of the authenticated data does not necessarily have access to the Internet. The resource requirements are small, as are the overhead and implementation complexity. In particular, the required memory does not increase with each revocation, in contrast to revocation lists. In fact, there is no practical limit to the number of possible revocations, since only a new iteration number is required. The mechanism of the invention can also be seen as a preparation for future attacks against asymmetric cryptographic systems.

[0028] At least a second digital signature and at least a second certificate are preferably used to confirm the authenticity of the data, and the validity of the second certificate is also checked based on the iteration number or another iteration number. In other words, this is a redundant or diversified method, based on multiple signatures, certificates, algorithms and PKI structures, respectively. If one of the mechanisms is compromised, the other mechanisms are still valid, and a vulnerability is easily recovered by the certificate verification mechanism based on the iteration number of the present invention. For the case where only one algorithm is compromised and the other algorithms are still considered safe, the mechanism preferably uses different iteration numbers.

[0029] The electronic device preferably stores a minimum iteration number, which the iteration number of the certificate needs to match or exceed in order to be accepted as valid. The minimum iteration number is preferably part of the electronic device's truststore, which is an established name for a list of certificates and related information, for example in the X.509 framework. Of course, the X.509 truststore does not contain any iteration numbers, because X.509 does not contain such a creative mechanism. With the minimum iteration number, the electronic device has locally accessible information for checking whether the certificate is still valid, regardless of online access to the Internet. Therefore, certificates with lower iteration numbers can be rejected locally, and digital signatures that inherit trust from this iteration number are no longer trusted. It is worth mentioning that terms like "increase" or "exceed" the iteration number refer to the most natural and therefore preferred way to arrange the iteration numbers in sequence, and only iteration numbers that exceed the minimum iteration number are trusted. However, this preferably includes any other order established by some function that maps iteration numbers to any equivalent order, such as decreasing iteration numbers, increasing iteration numbers in multiples of 5, or using rational numbers instead of integers, where the "smallest" iteration number marks the boundary between certificates that are still valid and those that are invalid.

[0030] The certificate of a certificate authority is preferably verified by a chain of higher-level certificate authorities, with a root certificate authority at the beginning of the chain. This adds a certificate chain, in particular a more complex PKI structure, as described in the introduction. The certificates in the chain preferably all contain an iteration number and preferably also a product identifier as will be described below. The certificates in a complete chain iteratively inherit trust from the root certificate authority, and each certificate in the chain can be verified using the corresponding public key and access to the responsible certificate authority. The root certificate authority is implicitly trusted and is associated with a manufacturer or supplier, a government, or some other trusted private organization. In a complex PKI, the certificate chain may be very long, but it may also be very short, just like the root certificate authority and the signer.

[0031] The electronic device preferably stores a root certificate of a root certificate authority. In particular, the root certificate is part of the trust store of the electronic device. It is preferably stored at the time of initial access by some secure means external to the system, for example by the factory or during a manual installation process. Without manual measures from the outside, the root certificate cannot be recovered, because there is no trust in the root, so there is no trust at all. However, as mentioned above, there may be a redundant or diversified system with more than one PKI structure and therefore root certificate authority. In this case, the remaining other PKI structures may be sufficient to continue, or even help the root certificate authority to recover.

[0032] The electronic device preferably stores a product identifier corresponding to a designated certificate authority in a plurality of certificate authorities, which includes a certificate authority responsible for each possible product identifier. The product identifier defines the type of electronic device, such as a device type or a product series. The product identifier is preferably part of the trust store of the electronic device. Multiple certificate authorities should be understood at the same level. They divide the electronic devices to be supported from each other by product identifiers that associate products and certificate authorities. The relationship between product identifiers and certificate authorities is preferably one-to-one. However, as an alternative, one certificate authority may be responsible for several product identifiers, or there may be redundant certificate authorities responsible for the same product identifier. In any case, for any particular product identifier, only the selected certificate authority is responsible. Therefore, any security vulnerability is limited to a subset of electronic devices using product identifiers affected by the vulnerability. In addition to this horizontal view, each of the certificate authorities responsible for one or more product identifiers can be supplemented in the vertical direction by a higher-level certificate authority as already described, forming a certificate chain associated with the corresponding one or more product identifiers.

[0033] The electronic device preferably checks whether the certificate matches the product identifier. Therefore, the electronic device will only accept the certificate, and ultimately the data, that is associated with its product identifier. This is another layer of security and a means of limiting the impact of a security breach.

[0034] The root certificate authority preferably certifies multiple certificate authorities including one responsible for each possible product identifier. In this embodiment, the certificate authorities that share responsibility for product identifiers are bound to the same root certificate authority. This helps manage multiple certificate authorities and product identifiers.

[0035] In order to invalidate or revoke a certificate, a new certificate authority is preferably established to replace the certificate authority and issue a certificate with an increased iteration number. It can be said that the new certificate authority has a higher iteration number than the certificate authority it replaces. As already described, the electronic device accepts the certificate only after checking based on the iteration number. This embodiment involves a complementary mechanism that provides certificates with iteration numbers that are still accepted as valid. The certificate authority responsible for the certificate with the previous iteration number retires. Its place is replaced by a new certificate authority, the difference is preferably limited to the increase in the iteration number. The certificate authority basically has only a new name, the difference is the new iteration number, and preferably there is also a new key pair to replace the key that is assumed to be compromised and the reason for the revocation. The certificates issued by the new certificate authority are still trusted, and there is upward compatibility: the new iteration number has more reason to also meet the requirements of the previous iteration number. There can be no downward compatibility, which would mean accepting revoked certificates, and not trusting such certificates is exactly the reason for implementing the iteration number mechanism. In other words, newer certificates are trusted, while older certificates are not trusted, and the difference between newer certificates and older certificates is based on the iteration number. Establishing new certificate authorities with increasing iteration numbers may extend up the certificate chain, up to but not including the root.

[0036] The new certificate authority is preferably certified by the root certificate authority. The root certificate authority thus confirms the authenticity of the new certificate authority that replaces the certificate authority with the old iteration number. Therefore, any newly established certificate authorities are trusted by electronic devices because they are derived from the same known root as before, and therefore from the highest trust anchor point.

[0037] Authentication of the root certificate authority is preferably performed offline. Preferably, the root certificate authority is always offline. The root must not be compromised, and keeping it offline prevents most potential attacks. This also limits the possibility of establishing a certificate authority by someone with offline access to the root certificate authority. However, this is acceptable, or even desired. End users do have a legal right to access the certificate authority to verify certificates, but there is usually no reason to manipulate the structure of the certificate authority. In contrast, the certificate keys of the certificate authority are preferably also offline to limit the chances of misuse. Only signing keys are needed in daily business, which are stored on a signer that can be permanently online, preferably in an access protection system that can be supported by a hardware security module.

[0038] After the certificate is revoked and the iteration number is increased, the electronic device is preferably updated by authenticated data retrieved from the data host, the update including the storage of the new minimum iteration number. In its old configuration, the electronic device will still accept certificates including the old iteration number. Once updated with the new minimum iteration number, these certificates are no longer trusted. The update may include other data, only the update of the minimum iteration number is mentioned because it is part of the update related to the certificate verification or revocation mechanism of the present invention. The data including the update is trusted to be true: in particular, because the new iteration number exceeds the old minimum iteration number, the data is signed and authenticated with the accepted new iteration number relative to the old minimum iteration number still used by the electronic device before the update. At the same time, it originates from the same root certificate authority that the electronic device always trusts. If the electronic device is online, the update of the electronic device can be triggered remotely. However, the present invention is also aimed at devices without Internet access. In this case, the owner of the electronic device can be notified to initiate the update according to the agreed vulnerability handling process.

[0039] In a data host and a certification network for providing authenticated data to an electronic device according to the present invention, the certification network includes a certificate authority and a signing service, wherein the certificate authority is configured to issue a certificate confirming the authenticity of a signature public key in a signature key pair, and the signing service is used to digitally sign data using a digital signature using a signature private key in the signature key pair. In particular, the certification network includes at least one PKI and can confirm the authenticity of the certificates in the certificate chain. The data host provides direct or indirect access to the electronic device to retrieve the signed data using one of the communication paths discussed above. The certificate includes an iteration number that can be used to check whether the certificate is valid, thereby utilizing a verification or revocation mechanism based on the iteration number, as explained in the context of the inventive method, and any embodiments and variations of the method may be implemented.

[0040] The electronic device, in particular a sensor, according to the invention comprises: an interface for at least indirectly connecting the electronic device to a data host, in particular a data host and a certification network as described in the previous paragraph; a memory for storing data; and a control unit, the control unit being configured to:

[0041] Retrieving authenticated data through an interface and storing the data in a memory, the data being digitally signed by a signing service using a signing private key in a signing key pair and a digital signature;

[0042] Verify the signing public key in the signing key pair using the certificate authority's certificate;

[0043] Check if the certificate is valid;

[0044] Use the signing public key to verify the digital signature, thereby confirming the authenticity of the data; and

[0045] If the authenticity of the data is confirmed, future control of the electronic device is modified based on the data,

[0046] Therein, the certificate comprises an iteration number, and the control unit is further configured to check whether the certificate is still valid based on the iteration number.

[0047] The interface may be cable-based or wireless and may be used for any of the communication paths discussed above. If possible, the electronic device is preferably only online for a limited time, such as during a user-initiated data retrieval. The data stored in the memory may be any data, software or program code. The control unit is some type of computing hardware, such as including at least one microprocessor or similar digital component, which controls the device, in particular by executing code stored in the memory.

[0048] The computer-readable data carrier according to the invention stores authenticated data, which is digitally signed using a signature private key in a signature key pair, and the signature public key in the signature key pair is confirmed by a certificate issued by a certificate authority, wherein the certificate includes an iteration number for checking whether the certificate is valid based on the iteration number. Thus, the stored data is signed and certified based on the iteration number using the mechanism of the invention. The data carrier can be used to establish at least a portion of a communication path between an electronic device and a data host, in particular when the electronic device is permanently disconnected from the Internet or does not initially have an Internet interface.

[0049] In a preferred embodiment, at least one electronic device according to the invention forms a system with a server infrastructure of some type, the server infrastructure comprising at least one data host and a certification network according to the invention. The electronic device, the data host and / or the certification network can be modified based on any embodiment of the method according to the invention and enable any embodiment of the method according to the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The present invention will be explained below with reference to exemplary embodiments and the accompanying drawings for further advantages and features. The figures in the drawings are as follows:

[0051] Figure 1 is an overview of an electronic device that retrieves data from a data host, the overview including a signer and a certificate chain for authenticating the data;

[0052] Figure 2 is an exemplary proof structure (PKI tree, public key infrastructure);

[0053] Figure 3is an exemplary flow chart for verifying that data is authentic; and

[0054] Figure 4 is an exemplary certificate authority tree or PKI according to the prior art. DETAILED DESCRIPTION

[0055] Figure 1 An overview of an electronic device 10 is shown connected to a data host 12 and an attestation network including a signing service or signer 13, at least one issuing certificate authority 14, and a root certificate authority 16. The electronic device 10 includes a control unit 18, a memory 20, and an interface 22, wherein the control unit 18 is connected to the memory 20 and the interface 22. The control unit 18 includes at least one digital component, such as a microprocessor or similar device, capable of running code that controls the functions of the electronic device 10. The interface 22 may be wired or wireless according to any known standard and establishes an at least temporary, typically indirect connection to the data host 12, for example via a network or cloud.

[0056] The electronic device 10 may be any kind of product capable of retrieving data. In particular, the electronic device 10 may be, for example, a sensor or embedded device used in an industrial environment, where the connection to the Internet may not exist or may be limited for various reasons, including lack of infrastructure and security. The electronic device 10 retrieves data from a data host 12 that has been digitally signed by a signer 13. The signed data may be stored in a memory 20 after being processed by a control unit 18. The data may be used for a firmware or other software update process. The signing of the authentication data also ensures that the data has not been tampered with, and the data may be additionally encrypted.

[0057] The connection between the electronic device 10, the data host 12, the signer 13, the issuing certificate authority 14 and the root certificate authority 16 can be some kind of permanent or temporary Internet link. In this case, the data retrieval from the data host 12 can be a download. However, other embodiments are not based on Internet links, but are based on other types of networks, direct wired or wireless connections, or connections mediated by portable computing devices or data carriers. Data transmission can be initiated by the electronic device, or pushed by the data host 12 or an intermediate device. It should also be noted that connections can be established at different time points. For example, data can be transmitted to the data host or created, signed and retrieved by the data host at each different time point. Data transmission can be carried out step by step at different time points, such as transferring the signed data from the server acting as the data host 12 to a notebook or similar device or data carrier, and then connecting the notebook or data carrier to the electronic device 10.

[0058] The authenticity of the signature, in particular the public key of the digital signature used to verify the signed data, is confirmed by a certificate from the issuing certificate authority 14. The issuing certificate authority 14 is in turn authenticated by certificates from higher-order certificate authorities in the certification chain up to the root certificate authority 16. With knowledge of the root certificate or root public key, the electronic device 10 can check each instance of the certification chain. In a preferred embodiment, at least the root certificate authority and possibly at least some of the issuing certificate authorities are protected by being permanently offline. The data host 12 can be permanently online so that data can be retrieved at any time.

[0059] Figure 2 An exemplary certification structure (PKI tree, public key infrastructure) is shown to further explain the certification or authentication and revocation mechanisms in embodiments of the present invention. In general, certification is based on the principles described in the introduction, especially with reference to Figure 4 The principles described apply unless modified and are not repeated.An example implementation is based on X.509, but the invention is not limited to this particular standard. Figure 2 Only one level of issuing certificate authorities 14 is shown, which also represents a more complex architecture with more levels and thus longer certification chains. In contrast, in a simplified embodiment, the root certificate authority 16 can directly issue the signing certificate. Then, there is no intermediate level of certificate authorities 14. The following description can be understood to adapt to these situations by analogy.

[0060] There are a series of signers 13 located at the leaves of the proof structure and are referred to as "signers" because signing data is their function relative to the proof structure. To this end, the signers 13 possess a signing certificate, while the certificate authorities 14, including the root certificate authority 16, possess an issuing certificate for extending trust to subordinate entities by issuing a certificate.

[0061] The root certificate authority 16 is a trusted entity, such as the manufacturer or seller of the electronic device 10. It is also labeled "Algorithm #1". This algorithm refers to a specific type of asymmetric encryption system. In a preferred embodiment, the proof structure is doubled or multiplied, such as Figure 2 As shown in the small grey shaded tree on the right. In this case, the data to be retrieved and the certificate are authenticated by two or more signatures and certificates, using different algorithms #2…#n for parallel authentication, where preferably all signatures are verified to further increase security. Although multiple signatures and certificates add another level of security, further explanation will concern the case only on certificate structures that can be transferred by analogy.

[0062] The certificate authority 14 and the signer 13 include additional information called an iteration number or version number. If a (private) key is compromised, then every key associated with an iteration number older than a particular iteration can be disabled by updating. This will be explained in more detail below.

[0063] The certificate authority 14 and the signer 13 preferably also include a product identifier. This is a unique identifier for one or more defined product types. The product identifier defines a domain that uses the same key. More illustratively, the product identifier divides possible electronic devices 10 into categories, where one chain of signers 13 and certificate authorities 14 is responsible for one product identifier. Thus, Figure 2 The proof structure has a chain or branch for each product identifier. For example, an electronic device 10 with product identifier "B" will consult the intermediate branch, that is, the certificate of the electronic device 10 is issued by the issuing certificate authority 14 of the intermediate branch, and the data is signed by the signer 13 of the intermediate branch, and the issuing certificate authority 14 and the signer 13 of the intermediate branch are both marked as "B". Security issues of signatures and certificate authority keys only affect the branches of the corresponding product identifier. The electronic device 10 of this example is not affected by security issues in branches "A" or "C", and the same is true for electronic devices 10 with different product identifiers.

[0064] In the X.509 framework, certificate authorities and certificates are bound to a subject distinguished name. In this case, the iteration number and product identifier (if any) are preferably added to the name. The same is true for signing certificates and digital signatures.

[0065] The electronic device 10 includes a trust store, which is a list of certificates and / or related data that contains a minimum iteration number that sets conditions for iteration numbers of signatures and / or certificates, a product identifier (if such a mechanism is established), and a root certificate of the root certificate authority 16, or one root certificate for each root certificate authority in a multi-algorithm setup as shown by a small gray shaded tree.

[0066] Figure 3 An exemplary flow chart for verifying data as authentic in an electronic device 10 is shown. In step S1, the digital signature of the data is verified. This includes verifying the digital signature itself and all certificates in the certification chain. If the verification fails, then in step S10, the data is rejected as not authentic.

[0067] In step S2, the name is extracted from the issuing certificate authority 14 or similarly from the signer 13. Figure 2As shown, the name includes the actual name, the iteration number and the product identifier. Therefore, in step S3, the iteration number and the product identifier can be extracted.

[0068] In step S4, it is checked whether the product identifier extracted in step S3 matches the product identifier of the trust base of the electronic device 10. If this is not the case, in step S10, the data is rejected as unauthentic. If a match is confirmed, it is also checked in step S5 whether the iteration number extracted in step S3 matches or exceeds the minimum iteration number of the trust base of the electronic device 10. Again, if this is not the case, in step S10, the data is rejected as unauthentic. Otherwise, in step S6, the data is accepted as authentic.

[0069] In a somewhat simplistic summary, data is accepted as authentic if and only if it passes traditional certificate checks, and additionally, the product identifier matches and the iteration number is high enough.

[0070] This verification logic allows for very easy and efficient revocation of certificates in the event that the signing key of the signer 13 or the attestation key of the certificate authority 14 is compromised. The system owner, such as a manufacturer or supplier, creates a new certificate authority 14 to replace the affected certificate authority 14 of the matching product identifier, the iteration number of which is increased by 1. If there is a chain of certificate authorities 14, these are also newly set up with an increased iteration number. The new certificate authority 14 is signed by the root certificate authority 16, and if a chain exists, the signing is repeated from certificate authority to certificate authority along the chain and trust is thus reestablished. The signing certificate of the signer 13 is also reissued with a new iteration number. Signing, in particular signing by the root certificate authority 16, preferably occurs in an offline system. For security reasons, all keys except the signing key are preferably stored in the offline system. In particular, the root certificate authority 16 can be kept offline permanently.

[0071] according to Figure 3 The electronic device 10 will immediately trust the new signing certificate, which is confirmed by the correct and trusted root certificate authority 16, has the correct product identifier in its name, and includes an incremented iteration number in its name that is higher than the smallest iteration number stored in the trust store of the electronic device 10.

[0072] In order to also ensure that certificates with lower iteration numbers are no longer trusted, the system owner will provide an update after establishing a new certificate authority 14 and creating a new signing certificate. The update, when installed, stores at least the new minimum iteration number in the trust store of the electronic device 10. After that, any data signed with the old and compromised key will no longer be accepted because the corresponding iteration number is too low. As described in the defined vulnerability disclosure process, the update can be transmitted, for example, by the system owner to all users, for example by the manufacturer or supplier to the customer. Even if the electronic device 10 is normally offline, the security state of the electronic device 10 can be restored with a very fast response time after being compromised.

Claims

1. A method of modifying an electronic device (10) using authenticated data from a data host (12), the method comprising the steps of: The signing service (13) uses the signing private key in the signing key pair to digitally sign the data with a digital signature, and provides the signed data to the data host (12); The electronic device (10) retrieves the signed data from the data host (12); The electronic device (10) uses a certificate of a certificate issuing authority (14) to confirm a signature public key in the signature key pair; The electronic device (10) checks whether the certificate is valid; and The electronic device (10) uses the signature public key to confirm the digital signature, thereby confirming the authenticity of the data. The invention is characterized in that the certificate comprises an iteration number, and the electronic device (10) checks whether the certificate is valid based on the iteration number.

2. The method according to claim 1, in, The authenticity of the data is confirmed using at least a second digital signature and at least a second certificate, and the validity of the second certificate is also checked based on the iteration number or a further iteration number.

3. The method according to claim 1 or 2, in, The electronic device (10) stores a minimum iteration number that the iteration number of the certificate needs to match or exceed in order to be accepted as valid.

4. The method according to any one of the preceding claims, in, The certificate of the certificate authority (14) is verified by a chain of higher-level certificate authorities, with a root certificate authority (16) at the beginning of the chain, wherein, in particular, the electronic device (10) stores a root certificate of the root certificate authority (16).

5. The method according to any one of the preceding claims, in, The electronic device (10) stores a product identifier corresponding to a designated certificate authority (14) among a plurality of certificate authorities (14), the plurality of certificate authorities (14) including a certificate authority (14) responsible for each possible product identifier.

6. The method according to claim 5, in, The electronic device (10) checks whether the certificate matches the product identifier.

7. The method according to claim 5 or 6 when referring to claim 4, in, The root certificate authority (16) authenticates a plurality of certificate authorities (14), including a certificate authority (14) responsible for each possible product identifier.

8. The method according to any one of the preceding claims, in, In order to invalidate or revoke a certificate, a new certificate authority (14) is established to replace the certificate authority (14) and issue certificates with an increased iteration number.

9. The method according to claim 4 or 8, in, The new certificate authority (14) is authenticated by the root certificate authority (16).

10. The method according to claim 9, in, The authentication performed by the root certificate authority (16) is performed offline, and / or wherein the root certificate authority (16) is always offline.

11. The method according to any one of claims 8 to 10, in, After revoking the certificate and increasing the iteration number, the electronic device (10) is updated via authenticated data retrieved from the data host (12), the updating including storing a new minimum iteration number.

12. A data host (12) and a certification network (14, 16) for providing authenticated data to an electronic device (10), the certification network (14, 16) comprising a certificate authority (14) and a signing service (13), the certificate authority (14) being configured to issue a certificate confirming the authenticity of a signing public key in a signing key pair, the signing service (13) being configured to digitally sign the data using a signing private key in the signing key pair, and the data host (12) providing direct or indirect access for the electronic device (10) to retrieve the signed data, It is characterized in that The certificate includes an iteration number which can be used to check whether the certificate is valid.

13. An electronic device (10), in particular a sensor, comprising: an interface (22) for at least indirectly connecting the electronic device (10) to a data host (12), in particular to a data host (12) according to claim 12 and to a certification network (14, 16); A memory (20), wherein the memory (20) is used to store data; as well as A control unit (18), the control unit (18) being configured to: Retrieving authenticated data via the interface and storing the data in the memory (20), the data being digitally signed by a signing service (13) using a signing private key of a signing key pair with a digital signature; Verifying the signature public key in the signature key pair using a certificate issued by a certificate authority (14); checking whether the certificate is valid; Confirming the digital signature using the signature public key, thereby confirming the authenticity of the data; and If the authenticity of the data is confirmed, modifying future control of the electronic device (10) based on the data, Characterized in that the certificate comprises an iteration number, and the control unit (18) is further configured to check whether the certificate is valid based on the iteration number.

14. A system comprising at least one data host (12) and a certification network (14, 16) according to claim 12 and at least one electronic device (10) according to claim 13.

15. A computer-readable data carrier storing authenticated data, the data being digitally signed using a private signature key of a signature key pair, and the public signature key of the signature key pair being confirmed by a certificate issued by a certificate authority, It is characterized in that The certificate comprises an iteration number for checking whether the certificate is valid based on the iteration number.