Method, first device, first server, second server and system for accessing private key
By generating access tokens on the first device and using decentralized identifiers for encrypted challenge verification, the problem of centralized servers being vulnerable to attacks is solved, secure access to user data and private keys is achieved, user privacy is protected and enhanced Access control.
Patent Information
- Application Number
- CN202080049718.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-07-09
- Filing Date
- 2020-06-29
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-06-29
AI Technical Summary
In the existing technology, when the centralized server is attacked, the user's private key is easily accessed by malicious applications or attackers, causing user data to be leaked, and user privacy cannot be effectively protected.
The access token is generated by the first device and associated with the second device and the decentralized identifier. The decentralized identifier is used to obtain the public key in the ledger and perform cryptographic challenge verification to ensure that the private key is only on the first device. Side decryption and use to avoid private key duplication and data leakage.
It achieves secure access to the server without disclosing user data and private keys, protects user privacy, ensures that private keys are not copied, and enhances user control over data and access rights management.
Smart Images

Figure CN114208113B_ABST
Abstract
Description
Technical Field
[0001] The present invention generally relates to a method for accessing a private key.
[0002] Furthermore, the invention relates to a first device for accessing a private key.
[0003] Furthermore, the invention relates to a first and a second server for accessing a private key.
[0004] Finally, the invention also relates to a system for accessing a private key. The system comprises a first device, a second device, a first server and a second server. The second device may comprise a mobile (remote) phone, a laptop, a personal computer (or PC), or any other device preferably comprising (a plurality of) secure memories. Prior art
[0005] US 9 053 313 B2 describes a solution comprising, at the server side, a secure key repository recording user private keys, each user private key allowing access to public key infrastructure (or PKI) services, such as decryption or signing operations using the user's private key, when the user's smart card is not available.
[0006] It is also known to access centralized servers where multiple users' private keys are stored.
[0007] However, the centralized server must disclose user data (such as a user certificate) for each user private key in order to select the private key to use.
[0008] Furthermore, when a centralized server has been successfully attacked, the malicious application or attacker has access to all user private keys because the user private keys are stored at the centralized server as the same entity.
[0009] Furthermore, the user of a private key may desire to keep his / her private key to himself / herself and not disclose the user data and the private key to any other entity.
[0010] There is a need to provide a solution that allows access to private keys while protecting / securing user privacy. Summary of the invention
[0011] The present invention proposes a solution for satisfying the need identified immediately above by providing a method for accessing private keys owned by a user or entity.
[0012] According to the present invention, the method comprises:
[0013] - a) storing, by the first device, a private key and an associated public key;
[0014] - b) generating an access token by the first device;
[0015] - c) sending an access token by the first device to the second device;
[0016] - d) the second device sends an address associated with the decentralized identifier and an access token to the first server;
[0017] - e) sending, by the first server, a request for a decentralized identifier to the ledger together with the decentralized identifier address;
[0018] - f) sending, by the ledger, a decentralized identifier to the first server, the decentralized identifier comprising a public key;
[0019] - g) generating a challenge by the first server;
[0020] - h) encrypting the challenge by the first server using the public key;
[0021] - i) sending, by the first server, an encrypted challenge and an access token to the first device via the second server, the address associated with the second server being identified by using the decentralized identifier;
[0022] - j) verifying, by the first device, whether the received access token is the generated access token;
[0023] - k) decrypting the encrypted challenge using the private key by the first device only if the received access token is the generated access token;
[0024] - l) sending a challenge by the first device to the first server directly or through the second server;
[0025] - m) verifying, by the first server, whether the received challenge is the generated challenge; and
[0026] - n) validating by the first server that the decentralized identifier comprises data belonging to the user or entity only if the received challenge is the generated challenge.
[0027] The principle of the present invention is to first register a key pair using a private key and an associated public key, and generate an access token at the first device side, and send the access token to the second device. Then, the second device transmits the access token and the address associated with the decentralized identifier (or DID) to the first server. The first server requests the DID, together with the DID address, from a ledger (such as, for example, a blockchain (or BC)). The ledger transmits the DID to the first server, and the DID includes a public key associated with the first device with which the private key is registered. The first server generates a challenge, and then the first server encrypts the challenge using the public key. The first server identifies the second server address based on the DID. The first server sends the encrypted challenge and the access token to the first device through the second server. The first device checks whether the received access token is the generated access token. In the affirmative, the first device decrypts the encrypted challenge by using the private key, and obtains the challenge, i.e., the non-encrypted challenge. Then, the first device transmits the (resulting) challenge to the first server in plain text directly or indirectly through the second server. The first server checks whether the received challenge is the generated challenge. In the affirmative, the first server ascertains that the DID includes data owned by the user or entity.
[0028] The first server outputs the received access token to the first device, along with a challenge encrypted using the public key and relayed in an encrypted manner by the second server, for input back to the first server in an unencrypted manner (or in plain text) when the access token is successfully verified by the first device. The public key used is the public key associated with the first device private key. Once the challenge is successfully verified by the first server, the first server authorizes access through or to the first server.
[0029] Therefore, when at least two conditions are met (i.e., the access token has been fed back from the first server to the first device via the second server and successfully verified by the first device, and the encrypted challenge has been fed back from the first device to the first server in a decrypted manner), the first server authenticates the first device.
[0030] It is to be noted that the second device exchanges with the first device by using any type of communication technology, whether it is wired, wireless or contactless (or CTL).
[0031] If the first device does not participate in validating the issued access token and decrypting the encrypted challenge sent from the first server, the second device cannot successfully access the first server.
[0032] Only when the second device is connected to the first device, the first device is able to receive the issued access token to be verified by the first device and the encrypted challenge to be decrypted by the first device.
[0033] If the second device is connected to the first device, the second device may be located at a near or far position relative to the position occupied by the first device. A user / entity may carry and use the second device, which may be mobile, i.e., move away from or towards the first device. A user / entity need not carry the first device, which may be stationary, i.e., remain located at a fixed place, such as, for example, a user's home or entity's premises.
[0034] No user / entity needs to be involved other than accessing the first server to be identified or selected from the second device in order to securely access the first server.
[0035] The solution of the present invention is easy to use because the user / entity may be minimally involved in authenticating the user / entity securely (protecting the user / entity data).
[0036] The first server can identify the second server to be addressed from the ledger by a decentralized identifier and does not need to know the first device.
[0037] The decentralized identifier is known per se and is prominently described on the website https: / / w3c-ccg.github.io / did-spec / . The decentralized identifier is a self-sovereign digital identity that is independent of a centralized entity, identity provider or certificate authority while remaining under the control of the decentralized identifier subject and verifiable.
[0038] In contrast to the known solutions described above, as a private key holder, the first device of the present invention does not need to disclose any user data (such as, for example, user certificates) nor any private keys in order to securely access the first server.
[0039] The solution of the invention allows a second server to be accessed by a first server to be accessed from a second device, based on a decentralized identifier readable from a ledger. The second server only accesses the first device. Such use of a decentralized identifier allows not involving the user (except for his / her possible authentication) and does not require revealing to the first server any identifier related to the first device, which identifier therefore remains unknown to the first server.
[0040] The solution of the present invention allows authenticating a first device to a first server while retaining a private key only at the first device side (and not at the second device side). The private key does not need to be replicated, i.e. copied to another entity separate from the first device, such as, for example, a cloud server.
[0041] The solution of the invention allows the user / entity involved not to lose his / her private key, since the first device as the secure personal entity storing the private key accessible from the second device may be different from one private key access session to another.
[0042] The solution of the invention allows the user / entity involved to control access to a first server by authorizing only a second device connected to the first device, which is primarily connected to the second server. Connection or non-connection of the second device to the first server allows to authorize or disallow access to the first server, respectively.
[0043] The inventive solution also allows protecting user privacy, since user data stored within the first device and / or the second device, such as for example user credentials, do not need to be revealed, ie exported, during the request for connection to the first server.
[0044] Furthermore, the solution of the invention allows a user / entity to keep control over the user / entity data in order to access one or several services provided by or through the first server after a successful first device authentication by the first server.
[0045] According to a further aspect, the invention includes a first server for accessing a private key.
[0046] According to the present invention, the first server is configured to:
[0047] - receiving from the second device an address associated with the decentralized identifier and an access token;
[0048] - Send a request to the ledger to get a decentralized identifier along with the decentralized identifier address;
[0049] - receiving a decentralized identifier from a ledger, the decentralized identifier comprising a public key;
[0050] - Generate a challenge;
[0051] - Encrypt the challenge using the public key;
[0052] - sending, by the second server, an encrypted challenge and an access token to the first device, an address associated with the second server being identified by using the decentralized identifier;
[0053] - receiving a challenge from the first device directly or through a second server;
[0054] - verify that the challenge received is the challenge generated; and
[0055] - Only if the received challenge is the generated challenge, it is verified that the decentralized identifier includes data belonging to the user or entity.
[0056] According to a further aspect, the invention comprises a second server for accessing a private key.
[0057] According to the present invention, the second server is configured to:
[0058] - receiving an encrypted challenge and an access token from the first server; and
[0059] - Sending the encrypted challenge and access token to the first device.
[0060] According to a further aspect, the invention comprises a first device for accessing a private key.
[0061] According to the present invention, the first device is configured to:
[0062] - Store private keys and associated public keys;
[0063] - Generate access token;
[0064] - sending an access token to the second device;
[0065] - receiving an encrypted challenge and an access token from the second server;
[0066] - Verify that the received access token is the generated access token;
[0067] - decrypt the encrypted challenge using the private key only if the received access token is the one that was generated; and
[0068] - Sending a challenge to the first server, either directly or through a second server.
[0069] The first device may include a set-top box (or STB), a network access point (or NAP), a PC, a dongle, such as, for example, a Universal Serial Bus (or USB) type dongle or a CTL type dongle, such as, for example, a Bluetooth (or BTH) type dongle.
[0070] Within this specification, a dongle is a smart object designed to communicate with the outside world.
[0071] As a dongle, it may include a USB type dongle, a smart card coupled to a PC or NAP as a removable dongle, or a chip intended to be fixed to a PC or NAP in a possibly removable manner as a chip hosting device.
[0072] The first device may include any device connected to the second server directly or indirectly (ie, through one or several intermediate entities).
[0073] According to a further aspect, the invention includes a system for accessing a private key.
[0074] According to the present invention, the system comprises a first device, a second device, a first server and a second server. The first device is configured to:
[0075] - Store private keys and associated public keys;
[0076] - Generate access tokens; and
[0077] - Sending an access token to the second device.
[0078] The second device is configured to send an address associated with the decentralized identifier and an access token to the first server.
[0079] The first server is configured to send a request to the ledger to obtain a decentralized identifier along with the decentralized identifier address.
[0080] The ledger is configured to send a decentralized identifier to the first server, the decentralized identifier comprising a public key.
[0081] The first server is configured as:
[0082] - Generate a challenge;
[0083] - Encrypt the challenge using the public key; and
[0084] - Sending an encrypted challenge and an access token to the first device via a second server, an address associated with the second server being identified using the decentralized identifier.
[0085] The first device is configured to:
[0086] - Verify that the received access token is the generated access token;
[0087] - decrypt the encrypted challenge using the private key only if the received access token is the one that was generated; and
[0088] - Sending a challenge to the first server, either directly or through a second server.
[0089] And the first server is configured as:
[0090] - verify that the challenge received is the challenge generated; and
[0091] - Only if the received challenge is the generated challenge, it is verified that the decentralized identifier includes data belonging to the user or entity.
[0092] As the second device, it may include any device capable of connecting to the first server and the second server. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Further features and advantages of the present invention will be more clearly understood after reading the detailed description of a preferred embodiment of the present invention, which is given as an indicative and non-limiting example, in conjunction with the following drawings:
[0094] - Figure 1 A simplified diagram of one embodiment of a system for accessing a private key according to the present invention is illustrated, the system comprising a CTL type dongle, a mobile phone, a first and a second server, the phone being paired with the dongle, the dongle being configured to: register the private key, issue an access token (or AT) through the phone, receive an encrypted challenge and the AT from the second server, check whether the received AT is the issued AT, and if so, send a challenge to the second server;
[0095] - Figure 2 It indicates that especially Figure 1 An embodiment of a message flow between a dongle, a phone, a first server as an issuer and verifier of challenges, and a second server to authenticate or not authenticate the dongle as a private key holder to securely access (multiple) services provided by or through the first server. DETAILED DESCRIPTION
[0096] In the following the case is considered in which the method of the invention for accessing a private key owned by a user or entity is implemented by a CTL type dongle as a first device, a phone as a second device, a first and a second server. The dongle is coupled to a PC as a dongle hosting device, the PC being connected to one or several (communication) networks, which network comprises or is connected to the first and the second server.
[0097] According to another embodiment, instead of cooperating with a dongle, a PC (or similar) as an independent entity and first device implements the functionality implemented by the CTL dongle and described below.
[0098] Naturally, the embodiments described hereinafter are for illustrative purposes only and are not to be considered as reducing the scope of the present invention.
[0099] For example, instead of a CTL type dongle, the dongle may be a contact type (or CT) dongle, such as a USB type dongle, a smart card, or any other electronic medium that may have a different form factor while including chip(s).
[0100] According to another example, the dongle consists of chip(s) that may be removably soldered or fixed to a PC serving as a hosting device.
[0101] Figure 1 A system 10 for accessing a private key is schematically shown.
[0102] Such a system 10 comprises a CTL type dongle 12 , a PC 13 , a mobile phone 14 , a first server 16 and a second server 18 .
[0103] For simplicity, the CTL type dongle 12 and the mobile phone 14 are hereinafter referred to as the dongle 12 and the phone 14, respectively.
[0104] A user 1 desires to access one or several services. The service under consideration is provided by or through a first server 16. The service may be, for example, payment for product(s) and / or service(s), or any type of service.
[0105] A user 1 (or entity) owns a dongle 12 which is the (user's) personal and first device.
[0106] The dongle 12 may be located in an individual's house, a factory, a company premises or any other location. The dongle 12 may be located in a remote location relative to the location of the first server 16.
[0107] It should be noted that for reasons of clarity, only one first device is shown. However, the server side may be connected to a plurality (or a team) of first devices via one or several (communication) networks (not shown). The (multiple) networks may include (multiple) mobile radio communication networks and / or Internet type networks.
[0108] Instead of a dongle as the first device, the first device may consist of a mobile phone, a PC, a STB, a smart television (or TV), a game console, or any electronic device comprising one or several (micro)processors as data processing means, one or several memories as data storage means, and one or several input / output (or I / O) interfaces.
[0109] The dongle 12 is connected to the PC 13 via the CTL link(s) 11 .
[0110] Within this description, the adjective "CTL" especially denotes that the communication device communicates via one or several short range (or SR) type RF links.
[0111] The SR type RF link(s) may be associated with any CTL technology that allows the dongle 12 to exchange data locally with local device(s) such as the PC 13 and phone 14 over the CTL link(s) and / or with the second server 18, possibly via a NAP.
[0112] The SR RF(s) may be associated with, for example, Near Field Communication (or NFC), Wi-Fi, ZigBee, BTH, Bluetooth Low Energy (or) BLE type communication technologies, and the like.
[0113] Such SR RF link(s) are used to exchange data at a short range between the dongle 12 and the PC 13 and / or phone 14. The short range distance is typically from about 20 cm (such as in the case of NFC type technology) up to about 800 m (such as in the case of BTH type technology).
[0114] The dongle 12 may be adapted to operate only when a device (such as, for example, the PC 13) has previously been paired with the dongle 12 and connected to one or several networks directly or indirectly (i.e., through (multiple) intermediate entities coupled or connected to the device). Such pairing of the PC 13 and the dongle 12 and the connection of the PC 13 to the (multiple) network(s) constitutes the preliminary condition to be satisfied.
[0115] The dongle 12 is preferably adapted to operate only when a second device, such as, for example, the phone 14, has previously been paired with the dongle 12 and connected to one or several networks. Such pairing between the phone 14 and the dongle 12 and the connection of the phone 14 to the network(s) constitute preliminary conditions to be satisfied.
[0116] The dongle 12 comprises (a plurality of) chips (not shown). The dongle chip or each dongle chip comprises one or more (micro)processors (or processors) (and / or (a plurality of) (micro)controllers) 122 as data processing means, one or more memories 124 as data storage means, and one or more I / O interfaces 126, which are all internally connected to each other via an internal bidirectional data bus 123.
[0117] The dongle(s) 12 memory stores(s) operating system (or OS) and the inventive application.
[0118] The dongle I / O interface 126 allows data to be transferred from the internal chip components to the outside of the chip and vice versa. The dongle I / O interface 126 allows data to be exchanged with the PC 13 as the dongle host device on the one hand and with the phone 14 as the second device on the other hand. The dongle I / O interface 126 allows the dongle 12 to be paired with one or several devices, such as, for example, one or several terminals and / or one or several user devices, such as, for example, the PC 13 and the phone 14, by exchanging data.
[0119] The dongle processor 122 processes, controls, and communicates data internally with all other components incorporated in the chip and externally with the chip through the I / O interface 126 .
[0120] The dongle processor 122 executes or runs a number of applications, including the application of the present invention.
[0121] The dongle processor 122 preferably runs an application for generating one or several (cryptographic) private keys (or pK) as secret key(s) and, for each private key, an associated public key (or PK) as a key pair. Each key pair is preferably associated with a hash (such as, for example, RanDom (or RND)) that is pre-generated by the dongle 12 or generated on-the-fly.
[0122] The dongle processor 122 implements or preferably performs security functions in order to protect access to data such as, for example, pK1 stored and managed by the dongle 12. The dongle 12 acts, among other things, as a safe for pK1 managed by the dongle 12.
[0123] The security function preferably includes an encryption / decryption process to be used before sending data to the outside / after receiving data from the outside in order to protect access to (multiple) private keys. In order to encrypt the data to be sent, the dongle 12 uses a predefined encryption key and a predetermined encryption algorithm, such as, for example, the Advanced Encryption Standard (or AES) or the Data Encryption Standard (or DES) or, both of which are stored by the dongle 12. In order to decrypt the data to be received, the dongle 12 uses a predefined decryption key and a predetermined decryption algorithm, such as AES, DES, etc., both of which are stored in the dongle 12. The decryption algorithm is preferably the inverse algorithm of the encryption algorithm used at the transmitter side (such as, for example, the second server 18 and / or the phone 14).
[0124] The security function preferably includes a user authentication process. The user authentication process may be used before decrypting the encrypted challenge to be decrypted by the dongle 12. In order to authenticate the user, the dongle 12 preferably supports an application for verifying the user authentication data by using predetermined reference user authentication data securely stored in the dongle 12. The dongle 12 compares the input data with the stored reference user authentication data and only if successful authorizes further execution, such as, for example, running an application for decrypting the encrypted challenge to be received from the server side.
[0125] The dongle processor 122 is preferably capable of initiating actions in a manner independent of its hosting device (such as, for example, PC 13) in order to interact directly with the outside world. Such capabilities of initiating interactions by the dongle 12 are also referred to as proactive capabilities. Therefore, the dongle 12 is able to send data to any device (such as, for example, a server) connected to the PC 13 through its hosting device in a manner initiated by itself. For example, the dongle 12 sends a proactive command to the PC 13 for sending a command to the second server 18, such as, for example, (multiple) queries or (multiple) requests, in order to know whether the second server 18 has received the data and whether the data is addressed to or intended for the dongle 12, or to send data to the sender of the data received by the second server 18 for the dongle 12, such as, for example, a challenge (after its reception in an encrypted manner and its internal decryption).
[0126] The dongle 12 preferably stores data for identifying the dongle 12 in its memory(s) 124 in a secure manner, such as, for example, an integrated circuit card identifier (or ICCID) or a unique universal ID (or UUID), as dongle identifier(s) (or IDs). The dongle ID(s) can be used to identify the user 1.
[0127] The dongle 12 stores in its memory(s) 124 an Internet Protocol (or IP) address associated with the dongle 12 , a Uniform Resource Identifier (or URI), and / or a Uniform Resource Locator (or URL) associated with the dongle 12 .
[0128] The dongle 12 can securely store data related to the user 1 in question as (personal) user data. The user data can include user credentials such as, for example, bank account number, first name, last name, date of birth and / or other data.
[0129] The user 1 locally requests, for example, through the PC 13 or the phone 14 cooperating with the dongle 12 connected or coupled thereto, to pair the dongle 12 with, for example, the PC 13 or the phone 14, respectively.
[0130] The dongle 12 is arranged to generate an access token 1 (or AT1 ).
[0131] To do so, the dongle 12 may first generate a hash, such as, for example, RND1, as H1. The dongle 12 then uses a symmetric encryption algorithm, such as AES or DES, and a common symmetric key associated with any one of the dongles 12 for all ATs to be generated, such as, for example, RND2, to generate AT1 as a corresponding encryption result. Alternatively, i.e., instead of using a single common symmetric key for all ATs to be generated, the dongle 12 uses a specific symmetric key generated on the fly and associated with each AT to be generated, to generate AT1 as a corresponding encryption result.
[0132] AT1 is then the result of encrypting H1 (which may have been previously salted (ie, salted with random data)) with a common or specific symmetric key, or the result of encrypting H1 with the associated data as input with a common or specific symmetric key. In other words, AT1 is the encrypted H1.
[0133] The dongle 12 stores H1 and either a universal symmetric key generated once for all ATs or a specific symmetric key generated on the fly for each AT to be generated.
[0134] The dongle 12 may further store data associated with H1.
[0135] The associated data may include predefined reference user authentication data, a predefined second device identifier (such as, for example, an IMSI), a predefined timestamp, a predefined validity period, predefined reference user biometric data, and / or other data.
[0136] If the dongle 12 does not store data associated with H1, the dongle 12 may store AT1 resulting from the encryption of H1 together with data associated therewith.
[0137] AT1 may be transient, temporary, or permanent.
[0138] The dongle 12 may use H1 as a symmetric key stored only in the dongle 12, which is combined (e.g., concatenated) with H1, which is preferably encrypted by using a predefined encryption / decryption key (or Ked). Ked may be generated on the fly, i.e., when AT1 is generated. Ked may be unique to each first device (or common to a group of first devices). Ked is known only to the dongle 12 in order to protect access to sensitive data (such as, for example, reference user authentication data). The AT1 thus generated is verifiable only by the dongle 12 that possesses Ked, as a symmetric key to decrypt the generated AT1.
[0139] The dongle 12 may also associate H1 with a predefined timestamp, a predefined validity period (such as, for example, from about a few seconds to several years) to define a time limit or date within which the dongle 12 must receive AT1 while remaining valid.
[0140] The AT1 may include a predefined (or pre-calculated) date until which the AT1 is valid for accessing the private key(s). The timestamp plus the validity period equals a desired time limit or date by which the dongle 12 must receive the AT1 from the server side.
[0141] The dongle 12 may also associate H1 with a predefined ID, such as, for example, an identifier associated with a second device, such as, for example, an International Mobile Subscriber Identity (or IMSI). The second device identifier identifies a second device used by the user 1 (or entity), such as, for example, a phone 14 with which the dongle 12 must cooperate, in order to verify that only the second device is allowed to use AT1. The user 1 controls access to the pK1 in question registered with the dongle 12 to access the desired service(s) with AT1. Thus, the second device ID may be used to restrict the use of AT1 to the second device identified thereby, as the first recipient of AT1 for the authentication session in question, thereby enhancing the level of security. Thus, if AT1 is stolen, the second device ID must also be stolen and used.
[0142] The dongle 12 may also associate H1 with reference user authentication data, such as a reference personal identification number (or PIN) and / or reference biometric data (such as, for example, user 1 reference fingerprint(s)).
[0143] The dongle 12 may use H1 thus concatenated with H1, which may be associated with a predefined timestamp, a predefined validity period, a second device ID and / or reference user authentication data, each of which is also individually encrypted using Ked to protect access to the relevant data associated with H1.
[0144] Once AT1 is generated, the dongle 12 is arranged to send AT1 to the second device, the phone 14. AT1 is used to authenticate the server to which access is requested, which server must send AT1 back (to the dongle 12).
[0145] The dongle 12 is configured to receive AT1 and the encrypted challenge from the second server 18 .
[0146] The dongle 12 is preferably adapted to check whether the received provided user authentication data matches reference user authentication data in order to authenticate or not authenticate the user 1 , respectively.
[0147] In order to authenticate the user 1, in addition to the AT1 and the encrypted challenge, the dongle 12 may also receive provided user authentication data, such as, for example, a provided PIN and / or provided (multiple) user 1 fingerprints, from the user 1, for example, via the second device and the first and second servers. The dongle 12 is preferably arranged to compare the provided user authentication data with predetermined (i.e., registered) reference user authentication data. If the provided user authentication data does not match the reference user authentication data, the dongle 12 fails to authenticate the user 1 and terminates the execution of the initiated private key access process. Otherwise, i.e., if the provided user authentication data matches the reference user authentication data, the dongle 12 is successful in authenticating the user 1, i.e., the dongle 12 ascertains that the provided user authentication data matches the reference user authentication data and continues the execution of the initiated private key access process.
[0148] The dongle 12 is adapted to check whether the received AT is the generated AT1. If the received AT is not the generated AT1, that is, the received AT is not valid, the dongle 12 fails to authenticate the original sender of the AT, that is, the server requested to access, and terminates the execution of the initiated private key access process. Otherwise, that is, if the received AT is the generated AT1, that is, if the received AT is valid, the dongle 12 successfully authenticates the original sender of the AT, that is, the server requested to access, and continues the execution of the initiated private key access process.
[0149] The dongle 12 is configured to unlock access to pK1 only if the received AT is the generated AT1 and optionally if the provided user authentication data matches the reference user authentication data.
[0150] The dongle 12 is adapted to decrypt the (received) encrypted challenge by using the unlocked pK1 only if the received AT is the generated AT1 and optionally if the provided user authentication data matches the reference user authentication data. In order to check that the received AT is the generated AT1, the dongle 12 may first decrypt both the received AT and AT1 using the associated symmetric key and check that the resulting hash (associated with the received AT) is the resulting H1 (associated with the generated AT). As a result of the decryption, the dongle 12 obtains the challenge in plain text, i.e. in an unencrypted manner.
[0151] The dongle 12 is arranged to send the resulting challenge to the server side (ie the first server 16 ) either directly or indirectly via, for example, the second server 18 .
[0152] For the generation of the DID associated with the dongle 12, the dongle 12 is preferably configured to obtain a specific DID1 associated with the dongle 12 from the ledger 112 (such as, for example, a blockchain (or BC)) on behalf of the user 1, while providing PK1. PK1 is associated with pK1 and a pre-generated hash (represented by H1, such as, for example, RND), both of which are securely stored by the dongle 12. In order to generate DID1, the ledger uses the received PK1 and the address associated with the second server 18 indicated by URI2, which will preferably act as a proxy server for the dongle 12. In order to generate DID1, the ledger can encrypt DID1 using a public key indicated by PKL associated with the ledger, so that only the ledger can decrypt the DID1 encrypted thereby by using a private key indicated by pKL associated with the ledger associated with the PKL. Therefore, the ledger is able to verify DID1, i.e. check whether DID1 is valid, i.e. whether DID1 has been modified respectively. The ledger and the dongle 12 can exchange with each other to select the second server 18. URI2 is associated with the second server 18 and H1. URI2 allows addressing a memory for exchange between the first server 16, which writes at least the encrypted challenge and AT1 (and possibly the provided user authentication data) to such memory, and the dongle 12, which reads at least the encrypted challenge and AT1 (and possibly the provided user authentication data) from such memory. URI2 is unique for each AT1. Therefore, the dongle 12 cannot be tracked and the privacy of the dongle 12 is therefore ensured. Once the ledger has generated DID1, the verifiable DID1 is registered (i.e. stored) by the ledger server, which has an address denoted by @DID1 associated with DID1.
[0153] After having been paired with a second device, such as for example the phone 14 , the dongle 12 is arranged to send AT1 and optionally @DID1 to the phone 14 .
[0154] Instead of a phone, the second device may include a PC, tablet, desktop computer, laptop, media player, game console, tablet, netbook, smart jewelry (or jewelry), handset and / or personal digital assistant (or PDA). The second device may incorporate or cooperate with a baseband (radio) processor(s) or a NAP to access the server side.
[0155] The telephone 14 comprises: one or several (micro)processors (and / or (multiple) (micro)controllers (not represented)) as data processing means, comprising and / or being connected to one or several memories as data storage means, comprising and / or being connected to means for interfacing with the user 1 concerned, such as a man-machine interface (or MMI), and comprising and / or being connected to (multiple) I / O interfaces (not represented), which are all internally connected via an internal bidirectional data bus.
[0156] The phone MMI may include display screen(s) 142 and / or keypad(s) 144 .
[0157] Alternatively, instead of two separate elements, the telephone MMI comprises a touch-sensitive display screen with an integrated virtual keyboard (not shown).
[0158] The phone MMI allows the user 1 to interact with the phone 14 , and in particular with the inventive applications supported by the phone 14 .
[0159] The phone 14 may be equipped with or connected to one or several biometric print readers (not shown) in order to capture one or several fingerprints, one or several iris prints, one or several facial prints, and / or other biometric data as user authentication data.
[0160] The I / O interface(s) may be connected to the antenna(s) 146 for wirelessly exchanging data with the outside.
[0161] The phone 14 preferably comprises or is connected to a CTL communication device for exchanging data with the outside, such as for example preferably exchanging data with the dongle 12 via (multiple) first RF links 17, and / or possibly exchanging data with a server side, i.e. at least a first server 16, via a Wi-Fi hotspot (not shown) as a NAP.
[0162] Alternatively, ie instead of the CTL link(s), or in addition, the phone 14 is connected to the dongle 12 via contact(s), such as, for example, a USB type interface.
[0163] The phone antenna(s) 146 allow the phone 14 to communicate data with the server side via the network(s) 110 , preferably through the second RF link(s) 19 which are wireless link(s).
[0164] The second RF may be fixed at several hundred MHz (eg, approximately 850, 900, 1800, 1900, and / or 2100 MHz) as a(s) long range (or LR) type RF.
[0165] The network(s) 110 may include mobile radio communication network(s). Additionally or alternatively, the network(s) include WLAN (acronym for "Wireless Local Area Network"), the Internet and / or intranet type networks. The network(s) may be accessed from the phone 14 via SR RF links.
[0166] Alternatively, ie instead of the wireless and / or CTL link(s), or in addition, the phone 14 is connected to the server side by wire(s) or cable(s) (not shown).
[0167] The phone memory(s) may comprise one or several volatile memories and one or several non-volatile memories.
[0168] The phone memory(s) may store first and / or last names associated with user 1 as user ID(s), may store International Mobile Equipment Identity (or IMEI), Mobile Subscriber Integrated Services Digital Network Number (or MSISDN), Internet Protocol (or IP) address, IMSI, email address(es), etc. as phone 14 ID(s).
[0169] Alternatively, instead of the phone 14, a chip connected or communicatively coupled to the phone 14 stores at least a portion of the user ID(s) and / or at least a portion of the phone ID(s).
[0170] The phone(s) 14 (or cooperating chip) memory may store URLs and / or URIs as the first server(s) 16 IDs. The first server(s) 16 IDs allow unique identification and addressing of the first server(s) 16. The first server(s) 16 IDs may include an IP address, URL, and / or URI associated with the first server(s) 16.
[0171] The phone memory(s) stores the OS and the present invention applications.
[0172] The phone memory may store one or several embedded applications. As embedded application(s), preferably there is a web browser as a user interface (or UI) to let the phone user interact with the server(s) (such as, for example, the registered first server 16).
[0173] The application of the present invention allows the storage of received AT1.
[0174] The application of the present invention may allow requesting user authentication data input and / or submitted by the user 1 from the user 1 via the telephone MMI as provided user authentication data.
[0175] The inventive application may allow requesting @DID1 from user 1 or receiving @DID1 from dongle 12 via the phone MMI.
[0176] The inventive application allows retrieving and sending to the first server 16 the stored AT1 , the retrieved @DID1 (or a reference to @DID1 ) and optionally the provided user authentication data.
[0177] The first server 16 may be identified by an ID(s) associated with the first server 16 which the phone user 1 has entered or selected via the phone MMI or which the phone 14 has registered and automatically retrieved.
[0178] The first server 16 is connected over a second RF link 19 through the network(s) 110 to the phone 14 , which functions as a client device.
[0179] According to another embodiment (not represented), instead of a single server, two or more servers are involved to carry out in particular the authentication operation carried out by the first server 16 .
[0180] The first server 16 runs application(s) for delivering one or several services.
[0181] The first server 16 may be operated by or on behalf of a service provider.
[0182] The first server 16 is identified by URI1, URL1, IP address 1, etc. as the first server 16 ID(s).
[0183] The first server 16 may be operated by or on behalf of a mobile network operator (or MNO), a mobile virtual network operator (or MVNO), a banking operator, a service provider.
[0184] The first server 16 may be accessible through the network(s) 110 , over the air (or OTA), on the Internet (or OTI) and / or on the cloud (or OTC) from one or several client devices each supporting an application for authenticating the dongle 12 as a holder of pK1 .
[0185] The first server 16 is hosted by a computer including processor(s) (not represented) as data processing means, data storage means, and one or several I / O interfaces for exchanging data with the outside.
[0186] The first server 16 is connected to a ledger 112 included in or connected to the network(s) 110 .
[0187] The first server 16 is used to authenticate that its interlocutor possesses a private key.
[0188] The first server 16 is configured to receive a request for authenticating the owner of a private key through a first channel. Such a private key owner authentication request may be generated from a first device (such as, for example, dongle 12) by a (registered) second device (such as, for example, phone 14).
[0189] The private key owner authentication request includes or is accompanied by @DID1, AT1 and optionally provided user authentication data.
[0190] The first channel may include a Hypertext Transfer Protocol (Secure) (or HTTP(S)) type channel.
[0191] The first server 16 is adapted to send a request to the ledger 112 to get DID1 together with @DID1.
[0192] The first server 16 is arranged to receive DID1 from the ledger 112 as a request response.
[0193] DID1 includes PK1.
[0194] DID1 allows the address or ID associated with the second server 18 to be retrieved and identifies the second server 18 to be addressed.
[0195] Alternatively, the first server 16 may access a database (not shown) including the address of the second server 18 , or obtain the address of the second server 18 from the second device 14 .
[0196] The first server 16 is configured to generate and store a challenge, such as, for example, an RND for a pending authentication session.
[0197] Once the challenge is generated, the first server 16 is adapted to encrypt the challenge by using PK1.
[0198] The first server 16 is configured to send AT1 , the encrypted challenge, and optionally provided user authentication data to the second server 18 .
[0199] The first server 16 is arranged to receive a challenge from a second server 18 or a first device such as, for example, the dongle 12 .
[0200] The first server 16 is adapted to verify whether the received challenge is the generated challenge.
[0201] If the challenge received is not the generated challenge, the first server 16 fails to authenticate its interlocutor, i.e. confirms that DID1 does not include data belonging to the user or entity. In other words, the first server 16 interlocutor is not the interlocutor who possesses the pK associated with the received PK, which has been used to encrypt the sent challenge.
[0202] Otherwise, that is, if the received challenge is the generated challenge, the first server 16 is successful in authenticating its interlocutor, that is, confirming that DID1 includes data belonging to the user or entity. In other words, the first server 16 interlocutor is the interlocutor that possesses the pK associated with the received PK, which has been used to encrypt the sent challenge.
[0203] The first server 16 is able to authenticate or not authenticate its interlocutor before granting or not granting the first server interlocutor access to one or several services provided by or through the first server 16 .
[0204] In order to access the first server 16 , the user 1 (or entity) does not need to reveal any personal user data originating from the dongle 12 or the paired second device (such as, for example, the phone 14 ).
[0205] The second server 18 is connected over a third RF link 15 through the network(s) 110 and the PC 13 to a first device, such as for example the dongle 12 acting as a client device to the second server 18 .
[0206] The second server 18 is identified by a URI 2 , URL 2 , IP address 2 , etc., which is the second server 18 ID or address(es).
[0207] The second server 18 may be operated by or on behalf of an MNO, an MVNO, a bank operator, a service provider.
[0208] The second server 18 may be accessible through the network(s) 110 , through OTA, OTI and / or OTC, from one or several client devices each supporting an application for authenticating the dongle 12 as the holder of pK1 .
[0209] The second server 18 is hosted by a computer including processor(s) (not represented) as data processing means, data storage means, and one or several I / O interfaces for exchanging data with the outside.
[0210] The second server 18 is configured to receive a request for authenticating the owner of the private key from the first server 16 via the second channel. Such a private key owner authentication request may be generated from a first device (such as, for example, dongle 12) via a second device (such as, for example, phone 14).
[0211] The private key owner authentication request includes or is accompanied by the encrypted challenge, AT1, and optionally provided user authentication data.
[0212] The second channel may include an HTTP(S) type channel.
[0213] The second server 18 functions as an agent (entity) with respect to a plurality of first devices including at least the dongle 12 as the first device.
[0214] Each first device having a second server 18 as a proxy entity periodically polls the second server 18 by sending H1, for example at a predetermined time period, such as once every ten seconds, in order to know whether the second server 18 has received data intended for the first device in question. In order to be able to identify whether the second server 18 has received data intended for the first device that is polling the second server 18, the second server 18 must retrieve whether the second server 18 has registered the received data associated with the H1 received from both the first server 16 and the first device. Only if the second server 18 has registered the received data associated with the H1 received from both the first server 16 and the first device, the second server 18 knows that it must respond to the received polling request by sending the associated received data (as AT1), the encrypted challenge, and optionally the provided user authentication data back to the first device in question.
[0215] The dongle 12 may perform so-called long polling to the second server 18 , which only replies to the long polling request when the second server 18 has data to send to the dongle 12 .
[0216] The second server 18 is configured to send the (received) AT1 , the (received) encrypted challenge, and optionally the provided user authentication data to the first device (such as, for example, the dongle 12 ).
[0217] The second server 18 is adapted to forward to the first device (such as, for example, the dongle 12 ) any messages intended for the dongle 12 .
[0218] Figure 2An exemplary embodiment of a method 20 for accessing a private key involving a dongle 12, a phone 14, a first server 16, and a second server 18 is depicted, such that the first server 16 authenticates or deauthenticates the dongle 12 as the holder of the private key based on an AT1 issued by the dongle 12, a challenge issued and encrypted by the first server 16 using the dongle PK, and an H1 associated with the dongle 12 by the second server 18.
[0219] Assume that the dongle 12 is paired out-of-band with the phone 14 as a first paired local device on the one hand, and with the PC 13 as a second paired local device on the other hand.
[0220] It is also assumed that the dongle 12 is connected to the server side via the phone 14 and exchanges with the server side via the PC 13 .
[0221] First, the dongle 12 stores pK1 and the associated PK1 as a key pair (not shown).
[0222] The dongle 12 stores the pre-generated H1 (not shown) in association with the key pair.
[0223] The dongle 12 generates 22 AT1. To generate AT1, the dongle 12 may use H1 as a symmetric key, which is concatenated with H1, preferably encrypted by using Ked. The dongle 12 may also associate H1 with a predefined timestamp, a predefined validity period, a predefined second device ID (such as, for example, IMSI) and / or reference user authentication data, each of which is also encrypted by using Ked. AT1 may rely on a second device ID identifying a second device, which is used by a user (or entity) to control access to the pK1 in question.
[0224] The dongle 12 stores pK1, H1, AT1 and optionally @DID1 (not shown) in association.
[0225] Preferably, during pairing between dongle 12 and phone 14, dongle 12 sends 24 AT1 and optionally 24 @DID1 to phone 14. User 1, dongle 12 and phone 14 are at the same (geographic) location, such as the user's residence or the user's business premises.
[0226] Once the pairing between the dongle 12 and the phone 14 has been performed, the user 1 can move away from the location of the dongle 12 with the phone 14. After the pairing between the dongle 12 and the phone 14, the location of the phone 14 can be separated from the location of the dongle 12 when appropriate (i.e., when the pairing between the dongle 12 and the phone 14 occurs).
[0227] The phone 14 preferably stores 26 the (received) AT1 and optionally stores 26 the (received) @DID1 in a secure enclave.
[0228] The user 1 may provide 27 the user authentication data to the phone 14, preferably upon request by the phone.
[0229] The phone 14 sends 28 AT1, @DID1 and optionally provided user authentication data to the first server 16. @DID1 was previously retrieved by the phone 14 or provided by the user 1 via the phone MMI.
[0230] Alternatively, i.e. instead of being sent directly by the phone 14 to the first server 16, the phone 14 sends AT1, @DID1, and optionally provided user authentication data to the first server 16 indirectly, i.e. via the second server 18, in order to enhance the privacy of the phone 14 as the second device used.
[0231] In addition to AT1 , @DID1 and optionally provided user authentication data, the phone 14 may also send 28 the second server 18 address to the first server 16 .
[0232] The first server 16 stores (not shown) the received AT1 and optionally the provided user authentication data.
[0233] The first server 16 sends 29 to the ledger 112 a request to get the DID together with the received @DID1.
[0234] The ledger 112 obtains the DID1 involved in 210 based on @DID1. The ledger 112 verifies that DID1 has not been modified, that is, DID1 is valid.
[0235] Only if DID1 is valid, the ledger 112 sends 212 the retrieved DID1 to the first server 16. DID1 includes PK1, optionally H1, and optionally the second server 18 address.
[0236] The first server 16 generates 214 a challenge, such as, for example, RND1.
[0237] The first server 16 encrypts 216 the (generated) challenge by using PK1. PK1 is pre-retrieved or extracted by the first server 16 by using DID1.
[0238] Once the first server 16 has encrypted the challenge, the first server 16 sends 218 the received AT1, the encrypted challenge, optionally H1, and optionally the provided user authentication data to the second server 18. The second server 18 address may be pre-retrieved or extracted by the first server 16 using DID1, or received from the phone 14. H1 is pre-retrieved or extracted by the first server 16 using DID1.
[0239] The second server 18 stores or registers (not represented) the (received) AT1 , the (received) encrypted challenge, optionally the (received) H1 , and optionally the (received) provided user authentication data in association.
[0240] The second server 18 may be able to verify whether the second server 18 has received data intended for the dongle 12 based on the H1 received from the dongle 12. To verify whether the second server 18 has received data intended for the dongle 12, the second server 18 can retrieve from the received AT1, the H1 used, and only if the H1 received from the dongle 12 matches the H1 retrieved from the (received) AT1, or the H1 received from the first server 16 (when present), the second server 18 knows that the data stored in association with the H1, i.e., the AT1, the encrypted challenge, optionally the H1, and optionally the provided user authentication data, is intended for the dongle 12.
[0241] The dongle 12 polls the second server 18 , ie sends 219 (preferably regularly) one or several requests for data, to know whether the second server 18 has received the data intended for the dongle 12 by sending H1 to the second server 18 .
[0242] The second server 18 obtains (not shown) the data registered in association with H1 , namely the (received) AT1 , the (received) encrypted challenge and optionally the (received) provided user authentication data.
[0243] The second server 18 sends 220 AT1 , the encrypted challenge and optionally the provided user authentication data to the dongle 12 .
[0244] The dongle 12 preferably verifies 222 whether the user 1 is authenticated.
[0245] In order to authenticate or not authenticate user 1 , dongle 12 verifies whether the provided user authentication data matches the reference user authentication data, after having optionally decrypted the reference user authentication data comprised in AT1 by using Ked as the symmetric key.
[0246] If the provided user authentication data do not match the reference user authentication data, the dongle 12 terminates 223 the initiated authentication process.
[0247] Otherwise, ie if the provided user authentication data matches the reference user authentication data, the dongle 12 continues the initiated authentication process.
[0248] The dongle 12 is the authenticator of the user 1 .
[0249] The dongle 12 verifies 224 whether the received AT1 is the generated AT1, ie whether the received AT1 is valid, ie whether the data associated with AT1 (such as a timestamp or a validity period) is valid.
[0250] In order to verify whether the received AT1 is the generated AT1, that is, whether the received AT1 is valid, the dongle 12 preferably uses Ked as the symmetric key to decrypt the received AT1 and the generated AT1. Therefore, the dongle 12 can respectively compare the received H1 and the generated H1, and possibly the corresponding associated data, that is, the received timestamp and the defined timestamp, the received valid period and the defined valid period, the received second device ID and the defined second device ID, and / or the received reference user authentication data and the defined reference user authentication data.
[0251] The dongle 12 terminates 225 the initiated authentication process if the received AT1 is not the generated AT1 and / or where appropriate, if the received AT1 is received after a predefined time limit, i.e. too late, i.e. if the received AT1 is not valid.
[0252] Otherwise, i.e. if the received AT1 is the generated AT1 and, where appropriate, if the received AT1 was received at or before the predefined time limit, i.e. was received on time, i.e. if the received AT1 is valid, the dongle 12 continues the initiated authentication process by decrypting 226 the (received) encrypted challenge.
[0253] To decrypt the encrypted challenge, dongle 12 uses pK1 and obtains the challenge in plain text (ie, in an unencrypted manner).
[0254] Once the dongle 12 has obtained the challenge, the dongle 12 sends 228 the challenge to the first server 16 .
[0255] Alternatively, ie, instead of the dongle 12 sending directly to the first server 16, the dongle 12 sends the challenge indirectly, ie, via the second server 18, to the first server 16 in order to enhance the privacy of the dongle 12 as the first device used. Therefore, the first server 16 does not know the dongle 12.
[0256] The first server 16 verifies 230 whether the received challenge is the generated challenge, ie whether the received challenge is valid.
[0257] If the received challenge is not the generated challenge, ie if the received challenge is not valid, the first server 16 terminates 231 the initiated authentication process.
[0258] Otherwise, ie if the received challenge is the generated challenge, ie if the received challenge is valid, the first server 16 verifies 232 that the DID comprises data belonging to the user (or entity). The validity of the received challenge proves that the dongle 12 possesses pK1.
[0259] Thus, the phone 14 has access to the private key resident in the dongle 12 while transmitting only AT1, which is less sensitive than if the private key were instead used stored in the phone 14 (ie, in an untrusted environment).
[0260] Thus, the phone 14 does not need to store any private keys when being able to authenticate to the first server 16 to access the service(s) provided by or through the first server 16 .
[0261] The embodiment that has just been described is not intended to limit the scope of the invention involved. Other embodiments can be given. As another embodiment, instead of exchanging with two servers, both the first device and the second device only exchange with the second server, which acts as a proxy to and from the client side.
Claims
1. A method (20) for accessing a private key, comprising: -a) storing, by the first device (12), a private key and an associated public key; - b) generating (22) an access token by the first device; -c) sending (24) an access token by the first device to the second device (14); -d) sending (28) by the second device to the first server (16) an address associated with the decentralized identifier and an access token; -e) sending (29) by the first server to the ledger (112) a request for a decentralized identifier together with the decentralized identifier address; -f) sending (212) a decentralized identifier by the ledger to the first server, the decentralized identifier comprising a public key; -g) generating (214) a challenge by the first server; -h) the first server encrypts the challenge using the public key (216); -i) sending (218) an encrypted challenge and an access token by the first server to the first device via the second server (18), the address associated with the second server being identified by using the decentralized identifier; -j) verifying (224) by the first device whether the received access token is the generated access token; -k) decrypting (226) the encrypted challenge by the first device using the private key only if the received access token is the generated access token; -1) sending (228) a challenge by the first device to the first server directly or through the second server; -m) verifying (230) by the first server whether the received challenge is the generated challenge; as well as -n) validating (232) by the first server that the decentralized identifier includes data belonging to the user or entity only if the received challenge is the generated challenge.
2. A method according to claim 1, wherein the access token depends on predetermined reference user authentication data, in addition to the decentralized identifier address and the access token sent by the second device to the first server, the second device also sends the user authentication data provided by the user through the second device to the first server, in addition to the encrypted challenge and the access token sent by the first server to the second server, the second device also sends the provided user authentication data to the first server, in addition to the encrypted challenge and the access token sent by the second server to the first device, the second server also sends the provided user authentication data to the first device, and in addition to verifying whether the received access token is the generated access token, the first device also verifies (222) whether the provided user authentication data matches the predetermined reference user authentication data, and only if the provided user authentication data matches the reference user authentication data, the first device uses the private key to decrypt the encrypted challenge.
3. A method according to any preceding claim, wherein the second device sends the decentralized identifier address and the access token to the first server via the second server, rather than the second device sending the decentralized identifier address and the access token directly to the first server.
4. The method according to any one of the preceding claims 1-2, wherein the first device sends the challenge to the first server via the second server, rather than the first device directly sending the challenge to the first server.
5. A method according to any of the preceding claims 1-2, wherein the access token depends on an identifier associated with a second device, the second device identifier identifying the second device used by a user or entity to control access to the private key.
6. The method according to any one of the preceding claims 1-2, wherein in addition to the decentralized identifier address and the access token being sent by the second device to the first server, the second device also sends an address associated with the second server to the first server.
7. A first server (16) for accessing a private key, wherein the first server is configured to: - receiving from a second device (14) an address associated with a decentralized identifier and an access token; - Sending a request to obtain a decentralized identifier together with the decentralized identifier address to the ledger (112); - receiving a decentralized identifier from a ledger, the decentralized identifier comprising a public key; - Generate a challenge; - Encrypt the challenge using the public key; - sending an encrypted challenge and an access token to the first device (12) via a second server (18), an address associated with the second server being identified using the decentralized identifier; - receiving a challenge from the first device; - verify that the received challenge is the generated challenge; as well as - Only if the received challenge is the generated challenge, it is verified that the decentralized identifier includes data belonging to the user or entity.
8. A system (10) for accessing a private key, the system comprising a first device (12), a second device (14), a first server (16) and a second server (18), The first device is configured as: -Store private keys and associated public keys; -Generate an access token; and - Sending an access token to the second device; wherein the second device is configured to send an address associated with the decentralized identifier and an access token to the first server; wherein the first server is configured to send a request for a decentralized identifier together with the decentralized identifier address to the ledger (112); wherein the ledger is configured to send a decentralized identifier to the first server, the decentralized identifier comprising a public key; The first server is configured as follows: - Generate a challenge; - encrypt the challenge using the public key; and - sending an encrypted challenge and an access token to the first device via a second server, an address associated with the second server being identified using the decentralized identifier; The first device is configured as: - Verify that the received access token is the one that was generated; - decrypt the encrypted challenge using the private key only if the received access token is the generated access token; as well as - sending a challenge to the first server directly or through the second server; as well as The first server is configured as follows: - verifying that the received challenge is the challenge generated; and - Only if the received challenge is the generated challenge, it is verified that the decentralized identifier includes data belonging to the user or entity.
