Secure recovery of private keys
By encrypting private keys with a symmetric key derived from client and server keys and storing them on isolated servers, the method addresses the vulnerability of private key loss and unauthorized access, ensuring secure and recoverable key management.
Patent Information
- Application Number
- JP2023072915
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-04-27
- Filing Date
- 2023-04-27
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-04-27
AI Technical Summary
Existing methods for protecting asymmetric private keys are inadequate in preventing loss and unauthorized access, particularly when stored or transmitted, leading to potential security breaches and loss of access to encrypted data.
A method involving a client generating a symmetric key from its private key and a server's public key, encrypting the private key with the symmetric key, and storing it on a separate second server, ensuring only the client and server can decrypt it using their respective keys, thereby isolating the servers to prevent unauthorized access.
Ensures secure storage and recovery of private keys without risking exposure, as both servers are isolated, requiring collaboration to decrypt, thus preventing unauthorized access and enabling secure key recovery even if the private key is lost.
Smart Images

Figure 0007573681000001 
Figure 0007573681000002 
Figure 0007573681000003
Abstract
Description
[Technical field]
[0001] The invention disclosed herein is in the field of computer-implemented encryption technology. [Background technology]
[0002] Cryptography deals with the secure encoding of data and has applications in many technical fields, in particular in the field of message transmission, and in many other computer-implemented mechanisms. Essentially, cryptography methods apply to any data format that can be represented digitally.
[0003] In encryption, a distinction is made between symmetric and asymmetric keys. In symmetric encryption, the same key is used to encrypt various data, such as data or streams, whereas in asymmetric encryption, a key pair consisting of a private key and a public key is used. The public key is only used for encryption, the private key for decryption. The public key can therefore be made publicly available to the recipient, i.e. the owner of the private key, to allow others to encrypt data. The private key should be protected by its owner from access by others. The private key can also be used to sign data. This signature does not encrypt these data, however, the recipient of such data can check whether the signature is valid based on the corresponding public key, and if this data has changed since it was signed, the signature is no longer valid.
[0004] To allow encryption on the one hand and decryption on the other, symmetric keys must usually be transmitted in advance between the communicating parties. This transmission creates risks for the parties, since the keys must be kept secret from third parties and can be copied unnoticed during transmission. This drawback does not apply in the case of asymmetric keys, since the private key is not shared and the public key can be publicly known.
[0005] To prevent third parties from accessing the private key, the private key itself can be protected by a symmetric key, e.g. a password or another asymmetric key. However, if the other key is lost (e.g. due to a forgotten password), the current prior art does not allow the original private key to be recovered, which would, for example, revoke access to associated documents or the user's ability to identify or sign documents.
[0006] To protect the private key from unauthorized access, it can be transmitted and stored by a third party. If the key is transmitted unencrypted, the third party can sign documents on behalf of the key owner or decrypt data that is encrypted to the key owner. If the transmission is performed by a separate password or key as described above, the problem of not being able to recover the key in case of loss still exists.
[0007] Storing private keys unencrypted poses fundamental risks, especially with third parties, while password-protected backups of the same keys pose equally big risks due to the risk of them being lost. Summary of the Invention [Problem to be solved by the invention]
[0008] The problem underlying the invention disclosed herein is to protect asymmetric private keys against such loss while avoiding the risks mentioned above. [Means for solving the problem]
[0009] An implementation of the present invention relates to a method for protecting a private key of a first client, the method including the steps of requesting, by the first client, a public key of a first server, generating, by the first client, a symmetric key from the private key of the first client and the public key of the first server, encrypting the private key of the first client with the symmetric key, transmitting the encrypted private key of the first client to a second server, and storing, by the second server, the encrypted private key of the first client.
[0010] A further implementation of the invention relates to a system for protecting a private key of a first client, the system including a client, a first server, and a second server, the client adapted to request the public key of the first server, the first server adapted to transmit the public key of the first server to the client, the client further adapted to generate a symmetric key from the client's private key and the first server's public key, encrypt the client's private key with the symmetric key, and transmit the client's encrypted private key to the second server, the second server adapted to store the client's encrypted private key.
[0011] Implementations of the invention further relate to a computer-readable medium with instructions stored thereon that, when executed by one or more processors, perform one of the methods described above.
[0012] Further implementations of the invention can be seen from the appended claims. [Brief description of the drawings]
[0013] [Figure 1] 1 illustrates a method according to the present invention for protecting a client's private key. [Diagram 2] 1 illustrates a method according to the present invention for recovering a client's private key. [Diagram 3]2 illustrates a method according to the present invention for replacing a client's private key. [Figure 4A] 3 illustrates a method according to the present invention for applying a password to a client's private key. [Figure 4B] 1 illustrates a method according to the present invention for recovering a client's private key using a password. [Figure 4C] 1 illustrates a method according to the present invention for replacing a password. [Diagram 5] 1 illustrates a method according to the present invention for authenticating a client with a server. [Figure 6] 1 illustrates a method according to the present invention for authenticating a client with another server. [Figure 7] 7 illustrates a method according to the present invention for authenticating a client based on one of the methods illustrated in FIGS. 5 and 6. FIG. [Figure 8] 2 illustrates a method according to the present invention for accessing a client's private key. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] The methods described herein are preferably performed by one or more clients and / or one or more servers. The clients may be mobile devices such as smartphones or notebooks, or stationary computers. Similarly, the servers may be mobile or stationary computers. However, alternatively, the clients and / or servers may be configured as software processes running on different computers or the same computer. Moreover, the clients may be users who execute the steps of the clients disclosed herein by software.
[0015] One or more clients communicate with a first server and a second server that are technically isolated from each other and cannot communicate with each other or access each other's data. Such isolation can be achieved, for example, by server processes running on different machines, where the machines have no physical contact with each other and cannot communicate with each other by network connections or other devices.
[0016] Alternatively, the separation of the two servers can be achieved by running the two servers on two networks and always rejecting contact from one network on the other network, for example by using a network firewall.
[0017] A further alternative is to physically eliminate direct information exchange by having the servers operate on separate networks: for example, one server may be accessible over the Internet while the second server may be part of a campus or local network that is not accessible over the Internet.
[0018] A further alternative is to run two servers on the same network and configure a system-level or application firewall to always deny connections from the other server.
[0019] Direct contact between the second server and the first server is possible despite the separation of the servers described above, but is heavily restricted when using the implementations disclosed herein, since each party has data that the other party must not receive. This includes the first server's private key or the client's private key encrypted with a symmetric key. This restriction can be achieved by different approaches. The first approach includes the need to physically and temporarily connect the two servers to each other, for example by instructing the user to configure a direct wired connection or other hardware interface. The second approach includes only allowing access between the two servers if they are separated from each other by a maximum distance, for example less than 1 meter or a configurable distance. The third approach includes configuring both servers to automatically shut down all other connections for the duration of the connection between them, i.e. to only communicate via, for example, serial ports and shut down their network stacks. The servers can be configured to only be able to form connections between themselves or with other addresses or parties. These approaches can be combined with each other and / or complemented by other authentication measures.
[0020] As another way to limit contact between two servers, it is also possible to implement a separate server, for example a so-called jumphost. This server is configured to be able to communicate with both the first and second servers. In this approach, the first and second servers are configured to recognize and connect to a connection from the other server. The detection of the other server by the first and second servers may be done by network address detection and / or technical identification and / or authentication methods. The separate server is used as a packet filter between the first and second servers, ensuring that only the communication provided between the first and second servers in the above-mentioned method is possible. The filtering of packets can be done, for example, by deep packet inspection. A variant of the separate server includes implementing this server as a so-called jump host that is part of a distributed zone, which can be combined with the first or second approach described above. Also included is the use of at least two servers interconnected by one or more data diodes, which can be combined with all the described approaches.
[0021] The above mentioned possibilities of restricting communication between servers and allowing it only under certain precautions can be combined with all the implementations described below without being explicitly mentioned in each case.
[0022] 1 shows a method 100 for protecting a private key of a client (Client 1). For this purpose, the client communicates separately with a first server (Server 1) and a second server (Server 2).
[0023] In step 110, the client receives the first server's public key ( s1), which may be done by a request sent directly to the first server using an appropriate protocol such as HTTPS / TLS / SSL or other network protocol, as shown in FIG. 1. Alternatively, the client may request the first server's public key from another source, such as a Certificate Authority (CA), as part of a Public Key Infrastructure (PKI) that manages and certifies public keys so that third parties can access and / or check them. In step 120, the first server transmits its public key in response to the request. This step may also alternatively be performed by a Certificate Authority. Alternatively, the request and response may also be performed by the first server itself, retrieving the public key from a Certificate Authority, as shown. Alternatively, in response to the request, the first server may check whether it already has a public key, and if not, generate a new asymmetric key pair and transmit the public key of this key pair to the client.
[0024] In a particular implementation, the first server can hold public keys for different clients, where the client transmits an identifier for this client along with its request in step 110. The server uses this identifier to look up the corresponding public key or to generate a new asymmetric key pair for this client and store it along with the identifier.
[0025] In step 130, the client receives the first server's public key ( s1 ) and the client's private key ( c1 ) to generate a symmetric key (symmetric). This may involve, for example, the use of a Key Derivation Function (KDF). Such a KDF may have the property that the public key of the first key pair and the private key of the second key pair produces the same result as the private key of the first key pair and the public key of the second key pair.
[0026] In one implementation, step 130 may further comprise making the symmetric key dependent on information stored in the other server by means of an oblivious pseudorandom function (OPRF). To this end, the client masks the symmetric key with a random number used only once and transmits the result to the other server. The other server operates with the information stored in the other server and the transmitted mask key and transmits the result to the client. The client unmasks the response from the other server with a random number used only once. The masking operation, like the server operation, is also configured to always result in the same result no matter which random number is used. An example of such an OPRF is a blind RSA signature. This method can be repeated with any number of other servers. One of the other servers can be the second server. When using this implementation, the result of the OPRF is used as a symmetric in the following steps. This implementation can be combined with all the implementations described below, even if not explicitly mentioned each time. It applies in particular to steps 240, 350, 497, 760 and 830 of the method described below. The only requirement is that the client executes the OPRF function every time after obtaining (steps 240, 350, 760 and 830) or decrypting (step 497) a symmetric key.
[0027] In step 140, the client encrypts its private key with a symmetric key and the result of this encryption is called the symmetric (private) key. c1) and transmits it to the second server together with a request for storage (request). Such a request or requirement may include an identifier of the client, for example the client identifier already mentioned, so that the second server can store the client's encrypted private key under this identifier and later look it up using this identifier. Alternatively, the second server may generate the client's identifier itself, for example based on the address with which the client accesses the second server. As another option, this access or request may involve an authentication of the client, requiring specification of an identifier and a password, in which case the transmitted encrypted private key can simply be stored under a user account of the second server. The second server stores the encrypted private key in step 150.
[0028] Finally, the client deletes the symmetric key. Preferably, method 100 can include the further step of the client also deleting the client's encrypted private key.
[0029] Method 100 represents a secure approach to storing the client's private key. After applying method 100, the first server only has its own private and public keys, from which it cannot generate the symmetric key necessary to decrypt the client's encrypted private key. Moreover, as explained, there is no way for the first server to retrieve the client's encrypted private key from the first server. The second server also has no access to the client's private key. Indeed, this key is stored in encrypted form on the second server. However, to decrypt it, either the client's symmetric key or the private key and the first server's public key are needed, as will be explained below. The second server does not have access to the data necessary to decrypt the client's encrypted private key.
[0030] FIG. 2 illustrates a method 200 for recovering a client's private key after this key has been stored on a second server, as described with respect to FIG.
[0031] In step 210, the client sends a request to the second server to obtain the client's encrypted private key. The request can include the transmission of an identifier and / or a password or other authentication measures. In this way, the second server can check the client's identity and / or identify the client's encrypted private key among a number of encrypted private keys, i.e., for example, based on the transmitted identifier. However, the client can also be identified by other means, for example by address or other conventional authentication mechanisms.
[0032] In step 220, the second server responds by transmitting the client's requested encrypted private key.
[0033] In step 230, the client requests a symmetric key from the first server. This can be done in the order shown in Figure 2. In particular, the client can perform step 230 only if steps 210 and 220 are successful. Alternatively, the client may perform step 230 before step 210, or between steps 210 and 220, or generally independent of steps 210 and 220.
[0034] In step 240, the first server responds to the client's request. This includes generating a symmetric key from the client's public key and the first server's private key. The possibility that the private key of the first key pair and the public key of the second key pair generate a symmetric key that is identical to the symmetric key formed from the public key of the first key pair and the private key of the second key pair is guaranteed by the KDF. Examples of corresponding implementations are Diffie-Hellman key exchange, Menezes-Qu-Vanstone (MQV), Hash MQV (HMQV). As an alternative to step 240, the first server may already have pre-generated and / or stored the symmetric key and simply retrieve it. The first server subsequently transmits the symmetric key to the client. In a particular implementation, the client may send with its request an identifier of the client that the first server uses to look up or store the symmetric key.
[0035] In step 250, the client decrypts the encrypted client private key using the symmetric key. The result of this process is shown in FIG. -1 (secret c1 )→Secret c1 is shown as:
[0036] In one implementation, the requests of steps 210 and 230 and their responses of steps 220 and 240 may be conditional on the use of one or more one-time passwords generated by the respective servers and sent to the client via a pre-arranged route, for example via a pre-set further device of the client's user.
[0037] As a result, method 200 allows a client to access a private key if the private key is lost or deleted after it has been used in the first place, and since data to decrypt the private key is required from two different parties, the first server and the second server, the method allows for secure recovery of the private key.
[0038] 3 illustrates a method 300 for exchanging / updating a client's private key. The method 300 may be performed consecutively to one of the methods described above for the purpose of replacing a key used for a given period of time.
[0039] In step 310, the client generates a new asymmetric key pair, the private key of which is now kept private. c1 neu , the public key of the key pair is public c1 neu Generating these keys may include registering the key pair with a PKI so that the new public key can be looked up and / or verified by third parties.
[0040] In step 320, the client sends a request to the first server for the first server's public key. This step is optional since the client can alternatively obtain the first server's public key from a certificate authority, as already described with respect to steps 110 and 120 of method 100. However, the first server may also be requested to generate a new key pair specifically for the client, for example, when the client contacts the first server for the first time, or because the first server's public keys also need to be updated due to extended use (or non-use) of those keys.
[0041] In step 330, the first server generates a new key pair, the public key of which is now public s1 neu , the private key of the key pair is private s1 neu This step is only performed if the request 320 uniquely seeks out the first server to regenerate the key pair.
[0042] In step 340, the first server transmits the first server's new public key to the client.
[0043] In step 350, the client derives a new symmetric key (symmetric key) from the client's new private key and the first server's new public key using the KDF previously described. neu )
[0044] In step 360, the client encrypts the new private key with the new symmetric key and writes the resulting symmetric key neu (secret c1 neu ) to the second server.
[0045] In step 370, the second server stores the client's encrypted new private key.
[0046] In step 380, the second server deletes the client's old encrypted private key. This step may be omitted in certain embodiments as discussed above. This step may be delayed a predetermined amount of time after step 370. This allows data that was still encrypted with the old public key to be recovered.
[0047] In one embodiment, the method 300 may be triggered by a user input. Alternatively, it may run at pre-set regular intervals, repeatedly generating and storing the client's encrypted private key. Advantageously, the length of such intervals may be set based on the time theoretically required to decrypt a symmetric key, taking into account a given technical configuration and the technical properties of a given symmetric key (its length), e.g., to an interval that includes only a certain fraction (half) of this time.
[0048] Fig. 4A shows a method 400A for applying a password to a client's private key. This method allows a user to access his private key independently of a particular client. In particular, a user can access his private key using a password of his choice. In encryption with a "password", this is used as a symmetric key or the password is used as an initial value to generate a symmetric key (seed key).
[0049] In one embodiment, method 400A assumes that the steps of method 100 have already been performed, so that a symmetric key already exists and the client's private key encrypted with the symmetric key has been stored by the second server.
[0050] In this embodiment, method 400A includes step 405 in which the client generates a password. The password may be based on user input or may be automatically generated. The password may be the same as the password that a user of the client uses to authenticate and / or log in to the client.
[0051] In step 410, the client encrypts its private key with the password and transmits the password-encrypted private key to the second server, which may occur later than shown in FIG. 4A, for example, when performing step 415.
[0052] In step 415, the client generates a hash value from the password using a hash function and transmits the hash value to the second server. In one embodiment, step 415 may transmit to the second server both the client / user private key encrypted with the password as well as the hash value of the password. In some cases, the client may also transmit a user or client identifier. The client may simultaneously transmit its private key encrypted with a symmetric key.
[0053] In step 420, the second server stores this data, whereby for the transmitted hash value another hash value is generated in turn from this server and this hash value is stored. Advantageously, the client and the second server use the same hash function. Alternatively, it is also possible to perform different hash functions, such as the hash function sha512 on the client side and bcrypt or scrypt on the second server side. The data is stored together with the client's password-encrypted private key transmitted in step 410 and possibly the private key encrypted with the client's symmetric key already stored in method 100. This association can possibly be performed based on the transmitted identifier or on the client or user (corresponding certificate or address).
[0054] FIG 4B illustrates a method 400B for recovering a client or user's private key using a password. This method assumes that method 400A has already been performed and that the second server has both the client's private key encrypted with a symmetric key and the client's private key encrypted with a password. The client 1 illustrated in FIG 4B may be the same as the client illustrated in FIG 4A or may be different.
[0055] In step 430, the client generates a hash value of a password previously used or displayed for this purpose by the client or the client's user, using the hash function already applied in step 410 of method 400A. This hash value is transmitted to the second server, possibly together with the client's or user's identifier, or by known authentication means, as in the case of access to the second server described above. This transmission can take the form of requesting the second server to transmit the client's private key encrypted with the password.
[0056] In step 440, the second server generates a hash value transmitted in step 430 using the hash function already applied in step 420 of method 400A and compares this hash value with the hash value for this client or user that it stored in step 420 of method 400A. In some cases, the second server can look up the stored hash value for the client / user based on the client / user identifier transmitted in step 430.
[0057] In step 450, the second server, in response to step 430, transmits the client's private key, encrypted with the password, to the client.
[0058] In step 460, the client or user decrypts the transmitted password-encrypted private key with a password that the client or user already knows.
[0059] FIG. 4C shows a method 400C for replacing a password. Method 400C assumes the existence of the conditions established by methods 400A and 100, namely that the client's private key is stored in a second server with different encryptions, i.e., a first encryption is based on a symmetric key and at least one other encryption is based on a password. As explained above, the symmetric key can be recovered by a combination of the private and public keys of the client and the first server. This mechanism cannot be performed with a password, because the password is not derived from an asymmetric key and therefore cannot be replaced without the client losing access to its private key. Method 400C solves this problem and allows password recovery.
[0060] In step 470, the client requests the second server to replace its password. In one embodiment, the client may transmit its identifier with this request so that the second server can look up the client's password.
[0061] In step 480, the second server forwards the client's request to the first server, possibly again specifying the client's identifier. Additionally or alternatively, the second server can transmit the client's public key.
[0062] In step 490, the first server generates a symmetric key for the client or retrieves a stored copy of the key for the client. In addition, the first server generates a one-time password, which may itself be or may be used as the symmetric key.
[0063] In step 491, the first server encrypts the symmetric key with the one-time password and calls the result one-time(symmetric key).
[0064] In step 492, the first server transmits to the second server the symmetric key encrypted with the one-time password and a hash value of the one-time password using the hash function already used in step 410 of method 400A. This step is advantageously performed with appropriate constraints to prevent the unencrypted symmetric key from being revealed. The second server generates a hash value of the transmitted hash value using the hash function already used in step 420 of method 400A and stores it for further use.
[0065] The communications between the first and second servers in steps 480 and 492 are advantageously performed using the approach described for the constraints between the mutual connections of the two servers.
[0066] In step 493, the first server transmits the one-time password to the client.
[0067] In step 494, the client requests the second server to authenticate the client based on the hash value of the one-time password. For this purpose, the client transmits this hash value and possibly an identifier of the client. Here again, the same hash function is used as already used in step 410 of method 400A.
[0068] In step 495, the second server compares the double hash values obtained in steps 493 and 494, and if only a single hash value was transmitted, the second server generates the double hash value itself using the same hash function already used in step 420 of method 400A.
[0069] In step 496, the second server responds to the client by transmitting the client's private key encrypted with the symmetric key stored in step 150 of method 100, and the symmetric key encrypted with the one-time password provided to the second server by the first server in step 492. This transmission is made on the condition that the values compared in step 495 are identical.
[0070] In step 497, the client decrypts the symmetric key that was encrypted with the one-time password and uses the symmetric key to decrypt the client's private key, which was encrypted with the symmetric key.
[0071] In step 498, the client encrypts its private key with the new password (password neu). The new password may be generated, for example as a random number, or may be determined by user input. The client further creates a hash value of the new password and transmits the encrypted private key and the hash value to the second server which stores both values. In the case of the hash value, the second server advantageously stores a double hash value of the password. Step 498 and subsequent storage by the second server is performed similarly to steps 410 and 420 of method 400A. The stored hash value of the old password may optionally be deleted after waiting a predetermined time.
[0072] 5 shows a method 500 including the use of another server (Server 3) for authenticating the client. This method allows for the integration of a single sign-on mechanism in the embodiments described herein. This mechanism can be realized, for example, by OAuth, Auth0, SAML (Security Assertion Markup Language), etc. The third server can use, for example, challenge-response authentication to authenticate the client. Alternatively, known methods such as password authentication, PAKE (Password Authenticated Key Exchange), or passwordless methods such as WebAuthn can be used.
[0073] In step 510, the client requests authentication of the client from the third server. In one embodiment, this request may be subject to a corresponding request from the client to the second server, which conveys information about the third server to the client to enable the client to establish a connection with the third server.
[0074] In step 520, the third server verifies the client, for example within the scope of challenge-response authentication as illustrated in Fig. 5. When using challenge-response authentication, the third server responds in step 520 with a challenge comprising, for example, a random number, advantageously encrypted by a password. In one embodiment, a password stored by the third server for this purpose and known by the client can be used.
[0075] In step 530, the client responds with a response that is transmitted to the third server, which may be generated, for example, from a random number that the client decrypts using its password, modifies with a predefined function (e.g., increments), and re-encrypts using the password as the key.
[0076] In step 540, the third server verifies the client's response, for example by decrypting the transmitted encrypted random number and possibly applying a predetermined function.
[0077] In step 550, the third server responds to the client's response with a token that is transmitted to the client. A token is a digital object reserved for use as proof of identity by the client.
[0078] In step 560, the client transmits an access request to the second server, the access request including the token described above.
[0079] In step 570, the second server checks the token, for example, with data about the client that was previously stored on the second server, including, for example, the client's identifier.
[0080] Process 500 may be followed by process 700, which is further described below.
[0081] FIG. 6 illustrates a method 600 that is performed without the involvement of a third server and is presented as an alternative to method 500.
[0082] In step 610, the client transmits an access request to the second server, which may optionally include an identifier for the client or may be subject to authentication measures similar to those previously described.
[0083] In step 620, the second server responds to the request with a challenge that is transmitted to the client.
[0084] In step 630, the client again responds to the challenge and transmits the response to the second server.
[0085] The second server verifies the response in step 640. Method 600 may be followed by method 700, described below.
[0086] 7 illustrates a method 700 for implementing client privilege protection with respect to a symmetric key. Method 700 assumes that either of methods 500 and 600 have been performed in preparation.
[0087] In step 710, the second server signs the client's authority certificate using the second server's private key and refers to the result, here as the signed s2 (Authority Proof c1), a proof of authority is a data structure that can specify data or a data location and identify one or more users or clients. In addition, the data structure may include a definition of the access rights that the users / clients have or should have to the data / data location. Instead of identifying such a user or client, the data structure can include or reference a certificate chain. A certificate chain requires a root certificate and can be used to verify the identity of the user or client. Thus, the signing of such a proof of authority can be done by the second server or delegated to a certification authority. A certificate is a signed document that confirms that a digital signature (signature) can be associated with a particular party or entity, which is authorized to perform certain actions. Such actions include the issuance of identity or authority certificates, or the further delegation of such actions. Such a signed proof can be verified by applying a public key that belongs to the private key used to create the signature. For example, the first server can verify the public key (public key) of the second server by applying the public key (public key) of the second server. s2 ) or the public key of the root certificate in the certificate chain.
[0088] In one embodiment, step 710 additionally includes providing an expiration date for the signature, for example, the authority proof may include a current timestamp and duration.
[0089] In step 720, the second server transmits the signed authority certificate and the client's private key encrypted with the symmetric key to the client.
[0090] In step 730, the client transmits the signed authority proof to the first server, requesting a symmetric key in the process.
[0091] In step 740, the first server verifies the signed certificate of authority using the second server's public key or certificate chain. As explained above, this public key may be obtained, for example, from a certificate authority or may have been transmitted by the client in step 730. In embodiments where the certificate of authority has an expiration date, this verification includes checking whether the difference between the current timestamp and the timestamp of the certificate of authority is greater than the period indicated in the certificate of authority. In this case, the verification and the entire method 700 are aborted.
[0092] In step 750, the first server generates a symmetric key as indicated above. Alternatively, the first server may retrieve the symmetric key locally. For this purpose, the client may further transmit a corresponding identifier of the client to the first server in step 730. The symmetric key is transmitted to the client.
[0093] In step 760 , the client decrypts the client's private key, which was encrypted with the symmetric key obtained in step 720 .
[0094] Fig. 8 shows a method 800 for issuing and decrypting a client's private key to a third party. Such a scenario may be necessary in practical applications of the invention when the user is unable to perform one of the methods described herein himself, or when the first client no longer exists and a new client has not yet been registered or is unable to log in. This means that access to user data is possible even in the event of death or legal handover order.
[0095] A prerequisite of the method 800 is that a legal or contractual instruction is submitted to a second server, the instruction being submitted by a second client (Client 2) and checked by the second server.
[0096] In step 810, after successfully checking the instructions, the second server transmits the private key of the first client (Client 1) stored therein, encrypted with the symmetric key, to the second client. The verification of the instructions may be performed automatically or manually by an administrator of the second server. Alternatively, the instructions may include a signed authority certificate that is automatically verified by the second server using the public key of the second client.
[0097] In step 820, the first server generates a symmetric key from the private key of the first server and the public key of the first client, or retrieves a previously stored symmetric key. The symmetric key is transmitted to the second client. Step 820 is performed in the same manner as step 810 in response to a request from the second client containing an authority certificate, in particular an authority certificate signed by the second server, which is checked by the first server as described above by the second server. The authority certificate may be of a legal or contractual nature. The request from the second client may contain, in addition to the authority certificate, an identifier of the client to enable the first server to identify the first client or its user. In one embodiment, step 820 may further comprise transmitting a message to the first client and / or the second server. This message may, for example, contain information about the second client that issued the request for the issuance of the authority certificate and / or the symmetric key. The message may further include a request to the first client for consent to the issuance of the symmetric key, and in such an embodiment, the first server may set a period for waiting for a response from the first client, and may continue or stop issuing the symmetric key if no response is received from the first client at the first server after expiration of the period.
[0098] In step 830, the second client decrypts the first client's encrypted private key.
[0099] The embodiments described herein are complemented by computer-readable media that store instructions that, when executed by one or more computers, such as the clients and servers described above, perform the methods described. Similarly, embodiments of the invention also include the clients and servers themselves as well as systems formed therefrom.
[0100] The measures disclosed herein for ensuring the availability of encryption keys without compromising confidentiality are in most cases performed automatically without the need for user intervention, including the creation, protection, updating and recovery of private and public keys. At the same time, these keys can be used continuously and automatically to encrypt and / or decrypt data for transfer and / or storage, to digitally sign data and / or digitally authenticate individuals. Thus, the present invention allows for full end-to-end encryption without the need for decryption in plaintext for the persistent storage of data on the target device to ensure data availability. These measures provide a high standard of security not achieved by conventional approaches, even in the manner described above, and especially by the periodic updating of keys. In the present embodiment, measures can be adapted to the security requirements of users or system administrators and to the IT infrastructure, for example by distributing the information required for recovery to any number of servers or by technically forcing a process dedicated to the recovery of keys.
Claims
1. 1. A method for protecting a private key of a first client, comprising: requesting, by the first client, a public key of a first server; generating, by the first client, a symmetric key from the private key of the first client and the public key of the first server, encrypting the private key of the first client with the symmetric key, and transmitting the encrypted private key of the first client to a second server; storing, by the second server, the encrypted private key of the first client; A method comprising:
2. requesting, by the first client, a symmetric key from the first server and retrieving the encrypted private key of the first client from the second server; generating, by the first server, the symmetric key from the first server's private key and the first client's public key, and transmitting the symmetric key to the first client, where the first server's private key belongs to the first server's public key and the first client's public key belongs to the first client's private key; decrypting, by the first client, the encrypted private key of the first client with the symmetric key; The method of claim 1 , further comprising:
3. The method of claim 2 , wherein the retrieval of the encrypted private key of the first client and / or the request for the symmetric key is performed using a one-time password.
4. The method further includes updating the encrypted private key of the first client, wherein the updating comprises: generating, by the first client, a new private key and a new public key for the first client and requesting a new public key for the first server from the first server; generating, by the first server, a new public key and a new private key for the first server and transmitting the new public key of the first server to the first client; generating, by the first client, a new symmetric key from the first client's new private key and the first server's new public key, encrypting the first client's new private key with the new symmetric key, and transmitting the first client's new encrypted private key to the second server; storing, by the second server, the new encrypted private key of the first client and deleting the previously stored encrypted private key of the first client; The method of claim 1 , comprising:
5. 5. The method of claim 4, further comprising the step of performing said updating of said encrypted private key of said first client in response to a user request.
6. 5. The method of claim 4, further comprising: performing said updating of said encrypted private key of said first client automatically at regular intervals.
7. encrypting, by the first client, the private key of the first client using a password, and transmitting, to the second server, the private key of the first client encrypted with the password and a hash value generated from the password; storing, by the second server, the private key encrypted with the password of the first client and a hash value of the transmitted hash value; The method of claim 1 , further comprising:
8. transmitting, by the first client, the hash value of the password to the second server; comparing the transmitted hash value with the stored hash value of the first client by the second server, and transmitting the private key of the first client encrypted with the password to the first client; decrypting, by the first client, the transmitted private key of the first client with the password; The method of claim 7, further comprising:
9. transmitting, by the first client, a request to replace the password to the second server; transmitting, by the second server, a request to replace the password to the first server; generating, by the first server, the symmetric key from the private key of the first server and the public key of the first client, generating a one-time password, encrypting the symmetric key with the one-time password, creating a hash value of the one-time password, transmitting the encrypted symmetric key and the hash value of the one-time password to the second server, and transmitting the one-time password to the first client; transmitting, by the first client, a request to authenticate the first client to the second server, where the request includes a hash value of the one-time password; comparing, by the second server, the hash value of the first server with the hash value of the one-time password transmitted by the first client, and transmitting to the first client the private key encrypted with the symmetric key of the first client and the symmetric key encrypted with the one-time password; decrypting, by the first client, the encrypted symmetric key with the one-time password, decrypting the encrypted private key of the first client with the symmetric key, encrypting the private key of the first client with a new password, and transmitting the private key of the first client encrypted with the new password and a hash value of the new password to the second server; The method of claim 7, further comprising:
10. transmitting, by the first client, an authentication request to a third server; transmitting, by the third server, a challenge to the first client; transmitting, by the first client, a response to the challenge to the third server; verifying the response by the third server and transmitting an access token to the first client; transmitting, by the first client, an access request to the second server, the access request including the access token; checking, by the second server, the access token; The method of claim 1 , further comprising:
11. transmitting, by the first client, an access request to the second server; transmitting, by the second server, a challenge to the first client; transmitting, by the first client, a response to the challenge to the second server; verifying, by the second server, the response based on the challenge; The method of claim 1 , further comprising:
12. signing, by the second server, a proof of authority of the first client with a private key of the second server and transmitting the signed proof of authority and the private key of the first client encrypted with the symmetric key to the first client; transmitting, by the first client, the signed authority proof to the first server; verifying, by the first server, the signed authority proof of the first client with the certified public key of the second server, generating the symmetric key from the private key of the first server and the public key of the first client, and transmitting the symmetric key to the first client; decrypting, by the first client, the encrypted private key of the first client with the symmetric key; The method of claim 10, further comprising:
13. 13. The method of claim 12, wherein the signing of the first client's proof of authority includes signing the proof of authority with one or more timestamps, and wherein the verification of the signed proof of authority is interrupted after a period defined by the timestamps has elapsed.
14. transmitting, by the second server, the private key of the first client encrypted with the symmetric key to a second client; generating, by the first server, the symmetric key from the private key of the first server and the public key of the first client, and transmitting the symmetric key to the second client; decrypting, by the second client, the private key of the first client using the symmetric key; The method of claim 1 , further comprising:
15. 1. A system for protecting a client private key, comprising: A client, a first server, and a second server Including, the client is configured to request a public key of the first server; the first server is configured to transmit the public key of the first server to the client; the client is further configured to generate a symmetric key from the client's private key and the first server's public key, encrypt the client's private key with the symmetric key, and transmit the encrypted client's private key to a second server; the second server is configured to store the encrypted private key of the client; system.
16. 16. The system of claim 15, wherein the client is further configured to request the symmetric key from the first server and retrieve the client's encrypted private key from the second server and decrypt the client's encrypted private key using the symmetric key.
17. signing, by the second server, a proof of authority of the first client with the second server's private key and transmitting to the first client the signed proof of authority and the private key of the client encrypted using the symmetric key; transmitting, by the first client, the signed authority proof to the first server; verifying, by the first server, the signed authority certificate of the first client with the certified public key of the second server, creating the symmetric key from the private key of the first server and the public key of the first client, and transmitting the symmetric key to the first client; decrypting, by the first client, the encrypted private key of the first client with the symmetric key; The method of claim 11 , further comprising:
18. 20. The method of claim 17, wherein the signing of the first client's proof of authority includes signing the proof of authority with one or more timestamps, wherein the verification of the signed proof of authority is suspended after a period defined by the timestamps has elapsed.
Citation Information
Patent Citations
Entrustable authentication encryption method
CN107682158A
Recovery method for private key and storage method
JP2002084269A
Information processor
JP2006333164A
Securing data using key agreement
US20220021525A1
