The invention relates to the field of communication between a client and a remote server.
The invention especially deals with a method for establishing a secure channel between a client and a remote server, when using an intermediate entity.
When establishing a secure communication channel between a client C and a server S through an intermediate such as a gateway G as shown in
Before establishing the secure communication channel between the client C and the server S, a mutual authentication between the server S and the client C occurred. The mutual authentication may be processed with any cryptographic protocol.
In the case where the mutual authentication comprises three steps: a terminal authentication step, a passive authentication step, and a chip authentication step as shown in
As shown in
As a consequence, plaintext data are known by the gateway G. The problem of translating a protocol into another protocol through a gateway exposes the exchanged data between two communicating parties to a risk of eavesdropping and secrets re-usability whereby jeopardizing backward and forward secrecy, hence when a secret key is discovered by the attacker. If the gateway is compromised, someone could have access to the exchanged data in clear before the establishment of another secure channel.
Another problem is added when the client has a permanent secret key shared by a huge number of clients. By sharing the same permanent secret key, the privacy of the user is preserved as it is not possible to determine who's who, and a service provider can grant access to a client without knowing its identity. The service provider only knows that the client is an authorized client. The client can then authenticate to the server without identifying to the server. This authentication permanent secret key skc may also be used by the client C to establish a secure channel with the server S, and skc could be the only one secret value used by the client C to establish the secure channel. Then, if this permanent secret key skc is compromised for a client, all clients from the same lot which share the same permanent secret key may be easily attacked. Once the secret key is compromised, it is possible to open a secure channel and thus to compromise the confidentiality of data transmitted by the clients with the permanent secret key skc of the client.
This problem may occur for example when Web services are accessed with a client-middleware installed on the smartcard host which acts as a gateway G between the smartcard C and the remote server S.
One solution consists in using a secure IP-enabled reader equipped with a display unit and a PINpad; implementing a Password-Based-Mechanism also called PACE, implementing an interface device IFD-API interface according to ISO 24727 and supporting SOAP-interface for the communication with an application running on the smartcard host as described in the BSI TR-03131 v.1 EAC-Box Architecture and Interfaces Technical Guidelines. However this kind of solution has two main drawbacks: it may require a further mutual authentication between the enhanced reader and the smartcard host thereby raising again the issue of eavesdropping/man-in-the-middle and it represents a costly device.
The purpose of the invention is to provide a method for establishing a secure channel between a client C and a remote server S when the client C and the server S exchange data through an intermediate entity G.
For this purpose, an object of the invention is a method for establishing a secure communication channel between a client (C) and a remote server (S), said client (C) and remote server (S) exchanging data through an intermediate entity (G), said client (C) having a long-term key pair (skc,pkc), said remote server generating an ephemeral key (sks,pks), the method comprising a mutual authentication step wherein the client (C) sends a public key (pkc) of said long-term key pair (skc,pkc) and the proof that said public key (pkc) is valid to the server (S), and wherein the remote server (S) sends the public key (pks) of said ephemeral key pair (sks,pks) to the client (C), characterized in that the client (C) generates an ephemeral key pair (skcc,pkcc) and sends the public key (pkcc) of said ephemeral key pair (skcc,pkcc) to the server (S) so as to generate a secret common to the client (C) and to the remote server (S) for opening the secure communication channel.
According to other aspects of the invention,
The invention solves the problem of man-in-the-middle attack in case of the exposure of a permanent secret key used to establish a secure channel.
There is neither need for an additional device nor an additional mutual authentication.
Thanks to the invention, a secure channel is established between the server S and the client C such that the gateway G cannot access to the plaintext data transmitted into the secure channel, even if the permanent secret key skc has been revealed.
The backward secrecy of the data transmitted into the established secure channel is assured: i.e. if one day the long-term key skc is compromised, then the confidentiality of the data that have been exchanged into the secure channel is still assured. It is not possible to open a secure channel even with the knowledge of key skc.
The forward secrecy of the data transmitted into a secure channel is assured, i.e. if one day the long-term key skc is compromised, then the confidentiality of the data that will be exchanged into a secure channel is assured.
Besides a man-in-the-middle attack does not allow to know the plaintext data transmitted into the secure channel.
The invention is now described, by way of example, with reference to the accompanying drawings. The specific nature of the following description should not be construed as limiting in any way the broad nature of this summary.
In order that the manner in which the above recited and other advantages and features of the invention are obtained, a more particular description of the invention briefly described above will be rendered by reference.
Notwithstanding any other forms that may fall within the scope of the present invention, preferred forms of the invention will now be described, by way of example only, with reference to the accompanying drawing in which:
The present invention may be understood according to the detailed description provided herein.
Shown in
In this embodiment, the client C is a smartcard with a middle-ware installed on a smartcard host. The middle-ware acts as a gateway between the smartcard C and a remote service S.
The method for establishing a secure communication channel between the client C and the remote server S comprises different steps.
The method comprises a step of mutual authentication between the client C and the server S. The mutual authentication comprises three main steps: a Terminal Authentication TA, a Passive Authentication PA and a Chip Authentication CA.
In the Terminal Authentication TA step: the server S with a long term authentication secret key skServerAuth and a long term certified public key pkServerAuth is authenticated by the client C for example with a <<challenge-response>> protocol and the server S can compute an ephemeral key pair (sks,pks) such that the client C can be convicted that the public key pkServerAuth has been chosen by the server S. Therefore, the server S generates the ephemeral key pair (sks,pks) and sends the public key pks or an element computed from pks to the client C.
The certificate of the public key pkServerAuth of the server is also checked. The server authenticates the ephemeral public key pks to be used later on for the Chip Authentication CA step.
In the Passive Authentication PA step, data of the client are certified by a certification authority. A <<pseudo-certificate>> is sent by the client C to the remote server S so as to check the validity of the public key pkc of the client. Therefore, the client C owns a long-term key pair (skc,pkc) such that the public key pkc of the client C is certified by the certification authority and the server S can be convicted that pkc is valid. Therefore the client C sends the public key pkc and the proof that the public key pkc is valid to the remote server S.
In the Chip Authentication CA step: the client C is authenticated by the server S by verifying an authentication token computed from an exchanged Diffie-Hellman key so as the public key from client side is the long-term key pkc certified during the passive authentication step PA and the public key from server side is the ephemeral key pks chosen by the server S during the terminal authentication step TA. The Diffie-Hellman key shared between the client C and the server S is used to compute or verify the authentication token and also to establish the secure channel. This Diffie-Hellman key is computed from pkc and sks at the server side and from skc and pks at the client side.
Part of the public key pks generated by the remote server S is sent during the Terminal Authentication TA step. The complete key pks is sent from the server S to the client C in the chip authentication step CA.
The client C also generates an ephemeral key pair (skcc,pkcc) during the chip Authentication step CA and sends the public key pkcc of said ephemeral key pair (skcc,pkcc) to the server S.
The client C calculates the common secret key as following:
K=KDF(skc,pks,skcc,pks)
The server is also calculates the common secret key as following:
K=KDF(sks,pkc,sks,pkcc)
where KDF is a Key Derivation Function.
According to the invention, the used protocol is the Diffie-Hellman protocol (DH or ECDH) and the used hash function Hash (e.g. SHA-1, SHA-224, or SHA-256) such that:
The common secret generated by both the client C and the server S is partly based on the client key pair (skc,pkc).
The secure channel can then be established with the common secret.
By doing so, the security impact is reduced significantly when the long-term secret of the client is compromised.
According to another embodiment, data are securely exchanged between the client and the gateway, and between the gateway and the remote server. Data are exchanged into a secure channel SC1 between the client C and the gateway G. A Password Based Mechanism such as PACE protocol is for example used between the client and the gateway G. This protocol is based on a common password and allows to derivate common session keys between the client C and the gateway G. These keys are then used for establishing a secure channel between the client C and the gateway G, chiefly when the client is a contactless card.
Data are exchanged into a secure channel SC2 between the remote server S and the gateway G, for example according to a protocol called SSL/TLS protocol.
It will be well understood that a smartcard with a middle-ware installed on a smartcard host is not a limited example. The invention can be advantageously applied to any web service deployment with a client-middleware installed in the dubious environment of a smartcard host such as a user's PC.
It also be understood that the middle-ware can be not installed onto the client host and therefore a gateway is provided between the client C and the remote service S.
This method can be easily incorporated on smart cards by re-using their existing libraries. The changes do not impact kernel cryto functions, only input values to these function may change.
Number | Date | Country | Kind |
---|---|---|---|
10306028.1 | Sep 2010 | EP | regional |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/EP11/65382 | 9/6/2011 | WO | 00 | 3/23/2013 |