Configuring the target device
By using a signature verification mechanism between the user device and the target device, the security of the configuration request and response messages is ensured, the problem of insufficient configuration session security in the existing technology is solved, and a secure device configuration process is realized.
Patent Information
- Application Number
- CN202080079794.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-11-19
- Filing Date
- 2020-11-18
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2040-11-18
AI Technical Summary
When configuring target devices that affect personnel safety, existing technology is difficult to ensure the security of the configuration session and prevent hijacking.
Send a configuration request message to the target device through the user device, and verify it based on the request signature and response signature to ensure the validity of the configuration response message; send the configuration submission message only when the response message is valid, and use it between the target device and the user device Public key verification signatures to ensure the security of the configuration process.
Improves the security of target device configuration, prevents illegal entities from hijacking configuration sessions, and ensures the integrity and reliability of the configuration process.
Smart Images

Figure CN114731286B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of device configuration, and in particular to using a user device to configure a target device. Background Art
[0002] The configuration of the device can be performed in many different ways. The most common way is to provide a user interface of the device to allow the user to thereby configure various parameters of the device.
[0003] Another approach is to have a device configured by another device. Here the device to be configured is denoted as a target device, and the device performing the configuration is denoted as a user device. Such an arrangement works well in many cases. However, some target devices are particularly important. For example, configuring a target device that affects the safety of personnel (also known as a safety-critical device) requires configuration in a secure manner where the configuration session cannot be hijacked by another entity. Summary of the invention
[0004] One object is to improve the security of configuration of a target device by a user device.
[0005] According to a first aspect, a method for configuring a target device is provided. The method comprises the following steps performed by a user device: sending a configuration request message to the target device, the configuration request message comprising a configuration request and a request signature, wherein the request signature is based on the configuration request; receiving a configuration response message from the target device, the configuration response message comprising a configuration response and a response signature, wherein the response signature is based on the configuration response and the request signature; based on the configuration response, the request signature and a public key of the target device, verifying the response signature to determine whether the configuration response message is valid; and sending a configuration submission message to the target device only when the configuration response message is valid, the configuration submission message comprising a configuration submission indicator and a submission signature, wherein the submission signature is based on the configuration submission indicator and the response signature.
[0006] The method may also include the following steps: receiving a configuration confirmation message from the target device, the configuration confirmation message including a configuration confirmation and a confirmation signature, wherein the confirmation signature is based on the configuration confirmation and the submission signature; and verifying the confirmation signature based on the configuration confirmation, the submission signature and the public key of the target device to determine whether the configuration confirmation message is valid.
[0007] Each signature may be applied to a hash value of the signed input data.
[0008] All messages may include the same single remote procedure call (RPC) identifier.
[0009] The step of sending the configuration request message may include generating a request signature based on a secret key of the user device, and the step of sending the configuration commit message may include generating a commit signature based on the secret key of the user device.
[0010] According to a second aspect, a user device for configuring a target device is provided. The user device includes: a processor; and a memory storing instructions, which, when executed by the processor, cause the user device to perform the following operations: send a configuration request message to the target device, the configuration request message including a configuration request and a request signature, wherein the request signature is based on the configuration request; receive a configuration response message from the target device, the configuration response message including a configuration response and a response signature, wherein the response signature is based on the configuration response and the request signature; based on the configuration response, the request signature and a public key of the target device, verify the response signature to determine whether the configuration response message is valid; and send a configuration submission message to the target device only when the configuration response message is valid, the configuration submission message including a configuration submission indicator and a submission signature, wherein the submission signature is based on the configuration submission indicator and the response signature.
[0011] According to a third aspect, a computer program for configuring a target device is provided. The computer program includes computer program code, which, when executed on a user device, causes the user device to perform the following operations: send a configuration request message to the target device, the configuration request message including a configuration request and a request signature, wherein the request signature is based on the configuration request; receive a configuration response message from the target device, the configuration response message including a configuration response and a response signature, wherein the response signature is based on the configuration response and the request signature; verify the response signature based on the configuration response, the request signature and a public key of the target device to determine whether the configuration response message is valid; and send a configuration submission message to the target device only when the configuration response message is valid, the configuration submission message including a configuration submission indicator and a submission signature, wherein the submission signature is based on the configuration submission indicator and the response signature.
[0012] According to a fourth aspect, there is provided a computer program product comprising the computer program according to the third aspect and a computer readable device having the computer program stored thereon.
[0013] According to a fifth aspect, a method for configuring a target device is provided. The method includes the following steps performed by the target device: receiving a configuration request message from a user device, the configuration request message including a configuration request and a request signature, wherein the request signature is based on the configuration request; based on the configuration request and a public key of the user device, verifying the request signature to determine whether the configuration request message is valid; sending a configuration response message to the user device only when the configuration request message is valid, the configuration response message including a configuration response and a response signature, wherein the response signature is based on the configuration response and the request signature; receiving a configuration submission message from the user device only when the configuration request message is valid, the configuration submission message including a configuration submission indicator and a submission signature, wherein the submission signature is based on the configuration submission indicator and the response signature; and verifying the submission signature based on the configuration submission indicator, the response signature and the public key of the user device to determine whether the configuration submission message is valid.
[0014] The method may further include the following step after the step of receiving the configuration submission message: based on the configuration submission indicator, the response signature and the public key of the user device, verifying the submission signature to determine whether the configuration submission message is valid.
[0015] The method may further include the following steps: applying the configuration according to the configuration request to the target device; and sending a configuration confirmation message to the user equipment, the configuration confirmation message including a configuration confirmation and a confirmation signature, wherein the confirmation signature is based on the configuration confirmation and the configuration submission signature.
[0016] The step of sending the configuration confirmation message may include generating a confirmation signature based on a secret key of the target device.
[0017] Each signature may be applied to a hash value of the signed input data.
[0018] All messages may include the same single remote procedure call (RPC) identifier.
[0019] The step of sending the configuration response message may include generating a response signature based on a secret key of the target device.
[0020] According to a sixth aspect, a target device is provided, comprising: a processor; and a memory storing instructions, which, when executed by the processor, cause the target device to perform the following operations: receive a configuration request message from a user device, the configuration request message comprising a configuration request and a request signature, wherein the request signature is based on the configuration request; verify the request signature based on the configuration request and a public key of the user device to determine whether the configuration request message is valid; send a configuration response message to the user device only when the configuration request message is valid, the configuration response message comprising a configuration response and a response signature, wherein the response signature is based on the configuration response and the request signature; receive a configuration submission message from the user device only when the configuration request message is valid, the configuration submission message comprising a configuration submission indicator and a submission signature, wherein the submission signature is based on the configuration submission indicator and the response signature; and verify the submission signature based on the configuration submission indicator, the response signature and the public key of the user device to determine whether the configuration submission message is valid.
[0021] According to a seventh aspect, a computer program for configuring a target device is provided. The computer program includes computer program code, which, when running on the target device, causes the target device to perform the following operations: receiving a configuration request message from a user device, the configuration request message including a configuration request and a request signature, wherein the request signature is based on the configuration request; verifying the request signature based on the configuration request and the public key of the user device to determine whether the configuration request message is valid; sending a configuration response message to the user device only when the configuration request message is valid, the configuration response message including a configuration response and a response signature, wherein the response signature is based on the configuration response and the request signature; and receiving a configuration submission message from the user device only when the configuration request message is valid, the configuration submission message including a configuration submission indicator and a submission signature, wherein the submission signature is based on the configuration submission indicator and the response signature; and verifying the submission signature based on the configuration submission indicator, the response signature and the public key of the user device to determine whether the configuration submission message is valid.
[0022] According to an eighth aspect, there is provided a computer program product comprising the computer program according to the seventh aspect and a computer readable device having the computer program stored thereon.
[0023] Generally, unless otherwise expressly defined herein, all terms used in the claims should be interpreted according to their ordinary meaning in the art. Unless otherwise expressly stated, all references to "a / an / the element, device, component, means, step, etc." should be publicly interpreted as referring to at least one instance of the element, device, component, means, step, etc. Unless expressly stated otherwise, the steps of any method disclosed herein do not have to be performed in the exact order disclosed. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Various aspects and embodiments will now be described by way of example with reference to the accompanying drawings, in which:
[0025] Figure 1 is a schematic diagram showing an environment in which the embodiments proposed herein can be applied;
[0026] Figure 2 It is shown Figure 1 A sequence diagram of communication between a user device and a target device in FIG.
[0027] FIG. 3A to FIG. 3D It is shown Figure 2 a schematic diagram of the contents of the message shown;
[0028] Figure 4 The configuration is performed in the user equipment. Figure 1 A flowchart of an embodiment of the method of a target device;
[0029] Figure 5 is a diagram showing the configuration performed in the target device. Figure 1 A flowchart of an embodiment of the method of a target device;
[0030] Figure 6 It is shown Figure 1 a schematic diagram of components of a target device and a user device; and
[0031] Figure 7 An example of a computer program product comprising computer readable means is shown. DETAILED DESCRIPTION
[0032] Various aspects of the present disclosure will now be described more fully below with reference to the accompanying drawings, in which certain embodiments of the present invention are shown. However, these aspects may be embodied in many different forms and should not be construed as limiting; rather, these embodiments are provided by way of example so that the present disclosure will be thorough and complete, and so as to fully convey the scope of all aspects of the present invention to those skilled in the art. Throughout the specification, the same reference numerals represent the same elements.
[0033] Figure 1 is a schematic diagram showing an environment in which the embodiments presented herein may be applied. The target device 3 is a device that may be configured by the user device 2. The target device 3 is a device that needs to be protected when and through which any configuration is applied. For example, the target device 3 may be a device for which certain security requirements exist, such as an industrial device where an operator is present. A specific example of a target device is an industrial door. For an industrial door, such configuration parameters may be, for example, motor torque and / or motor speed.
[0034] The user device 2 is any suitable device having a user interface that allows the user 5 to provide information about the content to be configured and the configuration parameters to be applied at the target device 3. For example, the user device 2 may be a wearable device, a smart phone, a tablet computer, a notebook computer, a desktop computer, etc.
[0035] There is a communication link 4, enabling data communication between the user device 2 and the target device 3. The communication link 4 may be a local communication link, for example, via Bluetooth, BLE (Bluetooth Low Energy), any of the IEEE 802.11x standards, etc. Alternatively or additionally, the communication link 4 is based on a network with a larger coverage, such as a cellular network and / or the Internet. The communication link may be based on IP (Internet Protocol) based communication. The communication link 4 may be based on a virtual port in the user device 2 and / or the target device to enable differentiation between simultaneous communication sessions on a single transport layer.
[0036] The communication link 4 enables the user device 2 to control the configuration of the target device 3, as described in more detail below.
[0037] Figure 2 It is shown Figure 1 A sequence diagram of the communication between the user device 2 and the target device 3 in FIG. FIG. 3A to FIG. 3D To describe the sequence, FIG. 3A to FIG. 3D It is shown Figure 2 Schematic diagram of the content of the message shown in .
[0038] Before the sequence starts, the user controls the user device 2 in any suitable way to set one or more configuration parameters to be applied by the target device 3. This may be achieved using a user interface of the user device 2, for example.
[0039] First, a secure channel is established 19 between the user device 2 and the target device 3. This includes, for example, using TCP (Transmission Control Protocol) (TCP over IP) based on IP to establish a transport layer session. An encryption protocol is followed so that both the user device 2 and the target device 3 prove their identities and can agree on a shared secret for encryption / decryption and ensuring the integrity of subsequent communications. The user device 2 proves to the target device 3 that the user device 2 possesses a secret key corresponding to a public key for establishing a secure channel. Vice versa, that is, the target device 3 proves to the user device 2 that the target device 3 possesses a secret key corresponding to a public key for establishing a secure channel. Thereafter, a secure and reliable channel is established between the user device 2 and the target device 3, and both the device 2 and the device 3 have the public keys of their respective counterparts. The secure channel can be used for subsequent message delivery.
[0040] To start the sequence, the user device 2 sends a configuration request message 20 to the target device 3. The configuration request message 20 includes a configuration request 20a and a request signature 20b, such as Figure 3A As shown. The configuration request indicates that the user device 2 requests a configuration to be applied by the target device 3. The configuration request includes one or more configuration parameters that define the configuration requested to be applied. The request signature 20b is applied by the user device 2 and is based on the configuration request 20a and the secret key of the user device 2. Since the configuration parameters form part of the configuration request 20a, these configuration parameters are also protected by the request signature 20b.
[0041] In one embodiment, the configuration request is different in each configuration session, for example by including a unique request identifier or session identifier. In this way, if a third party detects the communication and attempts to replay the same data, the target device can detect it and prevent the replay configuration. In other words, the target device can be configured to detect the session identifier and prevent configuration if the session identifier has been used to configure the target device before.
[0042] This and all signatures described in this article are encrypted signatures based on asymmetric cryptography. The entity performing the signing applies the signature based on its secret key. Anyone can verify the signature using the public key of the entity performing the signing (from the secure channel establishment 19).
[0043] The target device 3 verifies the configuration request message 20 and determines whether to accept the requested configuration. If the requested configuration is not accepted, the sequence ends or the target device 3 optionally notifies the user device 2 of the rejected configuration request. If the configuration request is accepted, the target device 3 responds with a configuration response message 21. The configuration response message 21 includes a configuration response 21a and a response signature 21b, such as Figure 3B As shown. The configuration response 21a indicates that the target device 3 accepts the requested configuration and is ready to apply the configuration. The response signature 21b is applied by the target device 3 and is based on the configuration response 21a, the request signature 20b and the secret key of the target device 3. For example, the response signature 21b can be obtained based on the concatenation of the configuration response 21a and the request signature 20b by using the secret key of the target device 3 in a cryptographic signing operation.
[0044] The user device 2 verifies the configuration response message 21 and determines whether to continue and submit the configuration. This can be determined, for example, by asking the user whether to submit using the user interface of the user device 2. If the user device 2 determines not to submit the configuration, the sequence ends or the user device 2 optionally notifies the target device 3 that there is no submission. If it is determined to submit, the user device 2 sends a configuration submission message 22 to the target device 3. The configuration submission message 22 includes a configuration submission indicator 22a and a submission signature 22b, such as Figure 3CThe configuration submission indicator indicates that the user device 2 submits the configuration to be applied by the target device 3. The submission signature 22b is applied by the user device 2 and is based on the configuration submission indicator 22a, the response signature 21b and the secret key of the user device 2. For example, the submission signature 22b can be obtained based on the concatenation of the configuration submission indicator 22a and the response signature 21b by using the secret key of the user device 2 in a cryptographic signing operation.
[0045] The target device 3 verifies the configuration submission message 22 and applies 25 the configuration according to the configuration parameters. Once the configuration is applied, the target device 3 optionally sends a configuration confirmation message 23. The configuration confirmation message 23 includes a configuration confirmation 23a and a confirmation signature 23b, such as Figure 3D As shown. Configuration confirmation 23a indicates that the target device 3 has applied the requested configuration. Confirmation signature 23b is applied by the target device 3 and is based on configuration confirmation 23a, submission signature 22b and the target device 3's secret key.
[0046] Figure 4 The configuration is performed in the user equipment. Figure 1 The steps of the method basically correspond to the above Figure 2 Actions of the user equipment shown.
[0047] In the step 40 of sending a configuration request, the user device sends a configuration request message to the target device. As mentioned above, the configuration request message includes a configuration request and a request signature. The request signature is based on the configuration request and a secret key of the user device.
[0048] In the receive configuration response step 42, the user device receives a configuration response message from the target device. As described above, the configuration response message includes a configuration response and a response signature. The response signature is based on the configuration response and the request signature and the secret key of the target device.
[0049] In a conditional response valid step 43, the user device verifies the response signature to determine whether the configuration response message is valid. The verification is based on the configuration response, the request signature, and the public key of the target device. If the verification is positive, that is, the configuration response is valid, the method continues to a send configuration commit step 44. Otherwise, the method ends.
[0050] In the sending configuration submission step 44, the user device sends a configuration submission message to the target device. As described above, the configuration submission message includes a configuration submission indicator and a submission signature. The submission signature is based on the configuration submission indicator and the response signature and the secret key of the user device.
[0051] In an optional receive configuration confirmation step 46, the user device receives a configuration confirmation message from the target device. As described above, the configuration confirmation message includes a configuration confirmation and a confirmation signature. The confirmation signature is based on the configuration confirmation and the submission signature and the secret key of the target device.
[0052] In the optional conditional validation step 47, the user device verifies the validation signature to determine whether the configuration confirmation message is valid. The validation is based on the configuration confirmation, the submission signature, and the public key of the target device. If the validation is positive, i.e., the configuration confirmation is valid, the method proceeds to the optional ok step 48. Otherwise, the method ends.
[0053] Optionally, each of the above signatures is applied to a hash value of the input data being signed. This is computationally more efficient than computing the signature based on the input data without an intermediate hash.
[0054] All of the above messages include the same single Remote Procedure Call RPC identifier.
[0055] In the optional ok step 48, the user equipment processes the successful configuration. This may for example include: storing the message received from the target device. At this stage, since a valid configuration confirmation has been received, the user equipment determines that the configuration has been applied to the target device.
[0056] Figure 5 is a diagram showing the configuration performed in the target device. Figure 1 The steps of the method basically correspond to the above Figure 2 Actions of the target device shown in .
[0057] In the receiving configuration request step 50, the target device receives a configuration request message from the user device. The configuration request message includes a configuration request and a request signature. The request signature is based on the configuration request and a secret key of the user device.
[0058] In a conditional request validity step 51, the target device verifies the request signature to determine whether the configuration request message is valid. The verification is based on the configuration request and the public key of the user device. Optionally, the configuration request message is considered valid only if the session identifier in the message is a session identifier that the target device has not seen before. In one embodiment, the session identifier is not an RPC identifier, because the RPC identifier can be freely set by the client and does not need to be unique. In such an embodiment, the session identifier is generated to be globally unique, or at least globally unique with a very high probability. If the verification is positive, that is, the configuration request message is valid, the method proceeds to a send configuration response step 52. Otherwise, the method ends.
[0059] In the sending configuration response step 52, the target device sends a configuration response message to the user device. The configuration response message includes a configuration response and a response signature. The response signature is based on the configuration response and the request signature and the secret key of the target device.
[0060] In a receive configuration commit message step 54, the target device receives a configuration commit message from the user device. The configuration commit message includes a configuration commit indicator and a commit signature. The commit signature is based on the configuration commit indicator and the response signature and a secret key of the user device. Optionally, if the configuration commit message is not received within a predetermined time from when the configuration response message was sent, a timeout is triggered and the method ends. This ends the configuration session to allow the same or other user devices to start a new configuration session when needed.
[0061] In the conditional submission valid step 55, the target device verifies the submission signature to determine whether the configuration submission message is valid. The verification is based on the configuration submission indicator, the response signature, and the public key of the user device. The public key used here is the same as the public key used to verify the configuration request message, so only the user device that has sent the configuration request message can send a valid configuration submission message. When the submission is valid, the method optionally proceeds to the application configuration step 56, or ends with knowing the valid message flow. When the submission is invalid, the method ends with knowing the invalid submission and the invalid message flow.
[0062] In an optional apply configuration step 56, the target device applies the configuration according to the configuration request to the target device.
[0063] In the optional send configuration confirmation step 58, the target device sends a configuration confirmation message to the user device. The configuration confirmation message includes a configuration confirmation and a confirmation signature. The confirmation signature is based on the configuration confirmation and configuration submission signature and the secret key of the target device. The sending of the configuration confirmation indicates to the user device that the configuration has been successfully applied.
[0064] As described above, each signature is optionally applied to a hash value of the input data signed. In addition, all messages may include the same single remote procedure call (RPC) identifier.
[0065] Each signature (except the first message) is based on the signature of the previous message. This is an effective way to provide certainty of the actions of both entities (the user device and the target device). In addition, another user device cannot intentionally or accidentally hijack the configuration session because the other user device does not have access to the secret key of the user device that configured the session.
[0066] Each of the user device and the target device can store a message including the signature, thereby having an undeniable record of the entities and configurations involved. In this way, the identity of the user device (and optionally the user) performing the configuration and the applied configuration can be proved at a later stage.
[0067] Figure 6 It is shown Figure 1 Schematic diagram of components of each of the target device 3 and the user device 2. The processor 60 is provided using any combination of one or more of a suitable central processing unit (CPU), a multiprocessor, a microcontroller, a digital signal processor (DSP), etc. capable of executing software instructions 67 stored in a memory 64, which may therefore be a computer program product. The processor 60 may alternatively be implemented using an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), etc. The processor 60 may be configured to execute reference Figure 4 (for user device 2) and above Figure 5 (for the target device) describes the method.
[0068] The memory 64 may be any combination of random access memory (RAM) and / or read-only memory (ROM). The memory 64 also includes a permanent storage device, which may be any single memory or combination of magnetic memory, optical memory, solid-state memory, or even remotely mounted memory, for example.
[0069] A data memory 66 is also provided for reading and / or storing data during execution of software instructions in the processor 60. The data memory 66 may be any combination of RAM and / or ROM.
[0070] The device 1, 2 further comprises an I / O interface 62 for communicating with external entities and / or internal entities. Optionally, the I / O interface 62 further comprises a user interface.
[0071] Other components of the devices 1 , 2 are omitted in order not to obscure the concepts presented herein.
[0072] Figure 7 An example of a computer program product 90 comprising a computer readable device is shown. On the computer readable device a computer program 91 may be stored which may cause a processor to perform a method according to the embodiments described herein. In this example, the computer program product is an optical disc such as a CD (Compact Disc) or a DVD (Digital Versatile Disc) or a Blu-ray Disc. As mentioned above, it is also possible to store the computer program product in a memory of the device such as Figure 6The computer program product is embodied in the memory 64 of the computer program. Although the computer program 91 is schematically shown here as tracks on the depicted optical disk, the computer program may be stored in any manner suitable for a computer program product such as a removable solid-state memory (e.g., a Universal Serial Bus (USB) drive).
[0073] Various aspects of the present disclosure are described above mainly with reference to several embodiments. However, as will be readily appreciated by those skilled in the art, within the scope of the invention as defined by the appended patent claims, other embodiments other than the embodiments disclosed above are equally possible. Therefore, although various aspects and embodiments have been disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and embodiments disclosed herein are for illustrative purposes and are not intended to be limiting, with the true scope and spirit being indicated by the appended claims.
Claims
1. A method for configuring a target device (3), the method comprising the following steps performed by a user device (2): A configuration request message (20) is sent (40) to the target device (3), wherein the configuration request message (20) includes a configuration request (20a) and a request signature (20b), wherein: The request signature (20b) is based on the configuration request (20a); receiving (42) a configuration response message (21) from the target device (3), the configuration response message (21) comprising a configuration response (21a) and a response signature (21b), wherein the response signature (21b) is based on the configuration response (21a) and the request signature (20b); verifying (43) the response signature (21b) to determine whether the configuration response message is valid based on the configuration response (21a), the request signature (20b) and the public key of the target device (3); and sending (44) a configuration commit message (22) to the target device (3) only if the configuration response message is valid, the configuration commit message (22) comprising a configuration commit indicator (22a) and a commit signature (22b), wherein the commit signature (22b) is based on the configuration commit indicator (22a) and the response signature (21b); The user equipment (2) stores: the configuration request message (20) including the request signature (20b); the configuration response message (21) including the response signature (21b); and the configuration submission message (22) including the submission signature (22b).
2. The method according to claim 1, further comprising the steps of: receiving (46) a configuration confirmation message (23) from the target device (3), the configuration confirmation message (23) comprising a configuration confirmation (23a) and a confirmation signature (23b), wherein the confirmation signature (23b) is based on the configuration confirmation (23a) and the commit signature (22b); and Based on the configuration confirmation (23a), the submission signature (22b) and the public key of the target device (3), the confirmation signature (23b) is verified (47) to determine whether the configuration confirmation message is valid.
3. The method according to claim 1 or 2, wherein: Each signature is applied to the hash value of the input data for that signature.
4. The method according to claim 1 or 2, wherein: All messages include the same single Remote Procedure Call (RPC) identifier.
5. The method according to claim 1 or 2, wherein: The step of sending (40) a configuration request message comprises generating the request signature (20b) based on a secret key of the user device (2), and the step of sending (44) a configuration commit message comprises generating the commit signature (22b) based on a secret key of the user device (2).
6. A user device (2) for configuring a target device (3), the user device (2) comprising: Processor (60); as well as A memory (64) storing instructions (67) which, when executed by the processor, cause the user device (2) to perform the following operations: Sending a configuration request message (20) to the target device (3), wherein the configuration request message (20) includes a configuration request (20a) and a request signature (20b), wherein the request signature (20b) is based on the configuration request (20a); receiving a configuration response message (21) from the target device (3), the configuration response message (21) comprising a configuration response (21a) and a response signature (21b), wherein the response signature (21b) is based on the configuration response (21a) and the request signature (20b); Based on the configuration response (21a), the request signature (20b) and the public key of the target device (3), verifying the response signature (21b) to determine whether the configuration response message is valid; and Sending a configuration commit message (22) to the target device (3) only when the configuration response message is valid, the configuration commit message (22) comprising a configuration commit indicator (22a) and a commit signature (22b), wherein the commit signature (22b) is based on the configuration commit indicator (22a) and the response signature (21b); The user device (2) is configured to store: the configuration request message (20) including the request signature (20b); the configuration response message (21) including the response signature (21b); and the configuration submission message (22) including the submission signature (22b).
7. A computer-readable storage medium storing a computer program (91) for configuring a target device (3), the computer program comprising computer program code, which when executed on a user device (2) causes the user device (2) to perform the following operations: A configuration request message (20) is sent to the target device (3), wherein the configuration request message (20) includes a configuration request (20a) and a request signature (20b), wherein: The request signature (20b) is based on the configuration request (20a); receiving a configuration response message (21) from the target device (3), the configuration response message (21) comprising a configuration response (21a) and a response signature (21b), wherein the response signature (21b) is based on the configuration response (21a) and the request signature (20b); Based on the configuration response (21a), the request signature (20b) and the public key of the target device (3), verifying the response signature (21b) to determine whether the configuration response message is valid; and Sending a configuration commit message (22) to the target device (3) only when the configuration response message is valid, the configuration commit message (22) comprising a configuration commit indicator (22a) and a commit signature (22b), wherein the commit signature (22b) is based on the configuration commit indicator (22a) and the response signature (21b); The user device (2) is configured to store: the configuration request message (20) including the request signature (20b); the configuration response message (21) including the response signature (21b); and the configuration submission message (22) including the submission signature (22b).
8. A computer program product (90) comprising a computer readable storage medium according to claim 7.
9. A method for configuring a target device (3), the method comprising the following steps performed by the target device (3): A configuration request message (20) is received (50) from a user equipment (2), the configuration request message (20) comprising a configuration request (20a) and a request signature (20b), wherein: The request signature (20b) is based on the configuration request (20a); Based on the configuration request (20a) and the public key of the user device (2), verifying (51) the request signature (20b) to determine whether the configuration request message is valid; sending (52) a configuration response message (21) to the user equipment (2) only if the configuration request message is valid, the configuration response message (21) comprising a configuration response (21a) and a response signature (21b), wherein the response signature (21b) is based on the configuration response (21a) and the request signature (20b); receiving (54) a configuration commit message (22) from the user equipment (2) only if the configuration request message is valid, the configuration commit message (22) comprising a configuration commit indicator (22a) and a commit signature (22b), wherein the commit signature (22b) is based on the configuration commit indicator (22a) and the response signature (21b); and Based on the configuration submission indicator (22a), the response signature (21b) and the public key of the user device (2), verifying (55) the submission signature (22b) to determine whether the configuration submission message is valid; The target device (3) stores: the configuration request message (20) including the request signature (20b); the configuration response message (21) including the response signature (21b); and the configuration submission message (22) including the submission signature (22b).
10. The method according to claim 9, further comprising the following steps after the step of receiving (54) the configuration commit message (22): Based on the configuration commit indicator (22a), the response signature (21b) and the public key of the user device (2), the commit signature (22b) is verified (55) to determine whether the configuration commit message is valid.
11. The method according to claim 9 or 10, further comprising the following steps: applying (56) the configuration according to the configuration request (20a) to the target device (3); and A configuration confirmation message (23) is sent (58) to the user equipment (2), wherein the configuration confirmation message (23) includes a configuration confirmation (23a) and a confirmation signature (23b), wherein the confirmation signature (23b) is based on the configuration confirmation (23a) and the submission signature (22b).
12. The method according to claim 11, wherein: The step of sending (58) a configuration confirmation message comprises generating said confirmation signature (23b) based on a secret key of said target device (3).
13. The method according to claim 9 or 10, wherein: Each signature is applied to the hash value of the input data for that signature.
14. The method according to claim 9 or 10, wherein: All messages include the same single Remote Procedure Call (RPC) identifier.
15. The method according to claim 9 or 10, wherein: The step of sending (52) a configuration response message comprises generating said response signature (21b) based on a secret key of said target device (3).
16. A target device (3), comprising: Processor (60); as well as A memory (64) storing instructions (67) which, when executed by the processor, cause the target device (3) to perform the following operations: Receiving a configuration request message (20) from a user device (2), the configuration request message (20) comprising a configuration request (20a) and a request signature (20b), wherein the request signature (20b) is based on the configuration request (20a); Based on the configuration request (20a) and the public key of the user device (2), verifying the request signature (20b) to determine whether the configuration request message is valid; Sending a configuration response message (21) to the user equipment (2) only when the configuration request message is valid, the configuration response message (21) comprising a configuration response (21a) and a response signature (21b), wherein the response signature (21b) is based on the configuration response (21a) and the request signature (20b); receiving a configuration commit message (22) from the user equipment (2) only when the configuration request message is valid, the configuration commit message (22) comprising a configuration commit indicator (22a) and a commit signature (22b), wherein the commit signature (22b) is based on the configuration commit indicator (22a) and the response signature (21b); and Based on the configuration submission indicator (22a), the response signature (21b) and the public key of the user device (2), verifying the submission signature (22b) to determine whether the configuration submission message is valid; The target device (3) is configured to store: the configuration request message (20) including the request signature (20b); the configuration response message (21) including the response signature (21b); and the configuration submission message (22) including the submission signature (22b).
17. A computer-readable storage medium storing a computer program (91) for configuring a target device (3), the computer program comprising computer program code, which when executed on the target device (3) causes the target device (3) to perform the following operations: A configuration request message (20) is received from a user device (2), wherein the configuration request message (20) includes a configuration request (20a) and a request signature (20b), wherein: The request signature (20b) is based on the configuration request (20a); Based on the configuration request (20a) and the public key of the user device (2), verifying the request signature (20b) to determine whether the configuration request message is valid; Sending a configuration response message (21) to the user equipment (2) only when the configuration request message is valid, the configuration response message (21) comprising a configuration response (21a) and a response signature (21b), wherein the response signature (21b) is based on the configuration response (21a) and the request signature (20b); and receiving a configuration commit message (22) from the user equipment (2) only when the configuration request message is valid, the configuration commit message (22) comprising a configuration commit indicator (22a) and a commit signature (22b), wherein the commit signature (22b) is based on the configuration commit indicator (22a) and the response signature (21b); and Based on the configuration submission indicator (22a), the response signature (21b) and the public key of the user device (2), verifying the submission signature (22b) to determine whether the configuration submission message is valid; The target device (3) is configured to store: the configuration request message (20) including the request signature (20b); the configuration response message (21) including the response signature (21b); and the configuration submission message (22) including the submission signature (22b).
18. A computer program product (90) comprising the computer readable storage medium according to claim 17.
