# US 2021/0288795 A1 · Establishing a cryptographic tunnel between a first tunnel endpoint and a second tunnel endpoint where a private key used during the tunnel establishment is remotely located from the second tunnel endpoint

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0288795 A1
- Document ID: US20210288795A1
- Status: Published application
- Kind: A1
- Application number: 17/158,787
- Filed: 2021-01-26
- Published: 2021-09-16
- Earliest claimed: 2020-03-11
- Assignees: Cloudflare, Inc.
- Applicants: Cloudflare, Inc.
- Inventors: Watson Bernard Ladd; Vladislav Krasnov
- Web page: https://patentgrep.com/patent/US20210288795A1

## CPC

- H04L 9/0825: {using asymmetric-key encryption or public key infrastructure [PKI], e.g. key signature or public key certificates}
- H04L 9/083: {involving central third party, e.g. key distribution center [KDC] or trusted third party [TTP]}
- H04L 9/0841: {involving Diffie-Hellman or related key agreement protocols}
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- H04L 9/3297: {involving time stamps, e.g. generation of time stamps}
- H04L 12/4633: {Interconnection of networks using encapsulation techniques, e.g. tunneling}
- H04L 2209/76: Proxy, i.e. using intermediary entity to perform cryptographic operations
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A responder device receives, from an initiator device, a request to initiate a cryptographic tunnel between the initiator device and the responder device. The responder device does not include a static private key to be used in an asymmetric cryptography algorithm when establishing the tunnel. The responder device transmits a request to a key server that has access to the static private key and receives a response that is based on at least a result of at least one cryptographic operation using the static private key. The responder device receives from the key server, or generates, a transport key(s) for the responder device to use for sending and receiving data on the cryptographic tunnel. The responder device transmits a response to the initiator device that includes information for the initiator device to generate a transport key(s) that it is to use for sending and receiving data on the cryptographic tunnel.

## Claims

### Claim 1

A method in a responder device, comprising:
receiving, from an initiator device, a first request to initiate a cryptographic tunnel between the initiator device and the responder device, wherein establishing the cryptographic tunnel includes use of an asymmetric cryptography algorithm, and wherein the responder device does not include a static private key to be used in the asymmetric cryptography algorithm;
transmitting a second request to a key server that has access to the static private key to be used in the asymmetric cryptography algorithm, wherein the second request is requesting the key server to use the static private key in at least one cryptographic operation of the asymmetric cryptography algorithm;
receiving, from the key server, a first response that is based on at least a result of the at least one cryptographic operation of the asymmetric cryptography algorithm using the static private key;
receiving from the key server or generating a first set of one or more transport keys for the responder device to use for sending and receiving data on the cryptographic tunnel;
transmitting a second response to the initiator device that includes information for the initiator device to generate a second set of one or more transport keys that it is to use for sending and receiving data on the cryptographic tunnel;
receiving, from the initiator device, a first encrypted data packet over the cryptographic tunnel;
decrypting the first encrypted data packet using at least one of the first set of one or more transport keys to reveal a first data packet;
processing the first data packet;
encrypting a second data packet using at least one of the first set of one or more transport keys; and
transmitting the encrypted second data packet over the cryptographic tunnel to the initiator device.

### Claim 2 (depends on 1)

The method of claim 1, wherein the at least one cryptographic operation is a Diffie-Hellman computation that affects at least the generation of the second set of one or more transport keys.

### Claim 3 (depends on 1)

The method of claim 1, wherein the first request to initiate the cryptographic tunnel includes:
an ephemeral public key of the initiator device;
an encrypted static public key of the initiator device; and
an encrypted timestamp.

### Claim 4 (depends on 3)

The method of claim 3, wherein the second request includes:
the ephemeral public key of the initiator device;
the encrypted static public key of the initiator device; and
the encrypted timestamp.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first response includes:
an encrypted empty value; and
a static public key of the initiator device.

### Claim 6 (depends on 5)

The method of claim 5, wherein the second response includes:
an ephemeral public key of the responder device; and
the encrypted empty value.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
wherein the first request to initiate the cryptographic tunnel includes a Message Authentication Code (MAC); and
prior to transmitting the second request to the key server, verifying the MAC included in the first request.

### Claim 8

A non-transitory machine-readable storage medium that provides instructions that, if executed by a processor of a responder device, will cause the processor to perform operations comprising:
receiving, from an initiator device, a first request to initiate a cryptographic tunnel between the initiator device and the responder device, wherein establishing the cryptographic tunnel includes use of an asymmetric cryptography algorithm, and wherein the responder device does not include a static private key to be used in the asymmetric cryptography algorithm;
transmitting a second request to a key server that has access to the static private key to be used in the asymmetric cryptography algorithm, wherein the second request is requesting the key server to use the static private key in at least one cryptographic operation of the asymmetric cryptography algorithm;
receiving, from the key server, a first response that is based on at least a result of the at least one cryptographic operation of the asymmetric cryptography algorithm using the static private key;
receiving from the key server or generating a first set of one or more transport keys for the responder device to use for sending and receiving data on the cryptographic tunnel;
transmitting a second response to the initiator device that includes information for the initiator device to generate a second set of one or more transport keys that it is to use for sending and receiving data on the cryptographic tunnel;
receiving, from the initiator device, a first encrypted data packet over the cryptographic tunnel;
decrypting the first encrypted data packet using at least one of the first set of one or more transport keys to reveal a first data packet;
processing the first data packet;
encrypting a second data packet using at least one of the first set of one or more transport keys; and
transmitting the encrypted second data packet over the cryptographic tunnel to the initiator device.

### Claim 9 (depends on 8)

The non-transitory machine-readable storage medium of claim 8, wherein the at least one cryptographic operation is a Diffie-Hellman computation that affects at least the generation of the second set of one or more transport keys.

### Claim 10 (depends on 8)

The non-transitory machine-readable storage medium of claim 8, wherein the first request to initiate the cryptographic tunnel includes:
an ephemeral public key of the initiator device;
an encrypted static public key of the initiator device; and
an encrypted timestamp.

### Claim 11 (depends on 10)

The non-transitory machine-readable storage medium of claim 10, wherein the second request includes:
the ephemeral public key of the initiator device;
the encrypted static public key of the initiator device; and
the encrypted timestamp.

### Claim 12 (depends on 8)

The non-transitory machine-readable storage medium of claim 8, wherein the first response includes:
an encrypted empty value; and
a static public key of the initiator device.

### Claim 13 (depends on 12)

The non-transitory machine-readable storage medium of claim 12, wherein the second response includes:
an ephemeral public key of the responder device; and
the encrypted empty value.

### Claim 14 (depends on 8)

The non-transitory machine-readable storage medium of claim 8, wherein the operations further comprise:
wherein the first request to initiate the cryptographic tunnel includes a Message Authentication Code (MAC); and
prior to transmitting the second request to the key server, verifying the MAC included in the first request.

### Claim 15

A responder device, comprising:
a processor; and
a non-transitory machine-readable storage medium that provides instructions that, if executed by the processor of a responder device, will cause the processor to perform operations comprising:
receiving, from an initiator device, a first request to initiate a cryptographic tunnel between the initiator device and the responder device, wherein establishing the cryptographic tunnel includes use of an asymmetric cryptography algorithm, and wherein the responder device does not include a static private key to be used in the asymmetric cryptography algorithm,
transmitting a second request to a key server that has access to the static private key to be used in the asymmetric cryptography algorithm, wherein the second request is requesting the key server to use the static private key in at least one cryptographic operation of the asymmetric cryptography algorithm,
receiving, from the key server, a first response that is based on at least a result of the at least one cryptographic operation of the asymmetric cryptography algorithm using the static private key,
receiving from the key server or generating a first set of one or more transport keys for the responder device to use for sending and receiving data on the cryptographic tunnel,
transmitting a second response to the initiator device that includes information for the initiator device to generate a second set of one or more transport keys that it is to use for sending and receiving data on the cryptographic tunnel,
receiving, from the initiator device, a first encrypted data packet over the cryptographic tunnel,
decrypting the first encrypted data packet using at least one of the first set of one or more transport keys to reveal a first data packet,
processing the first data packet,
encrypting a second data packet using at least one of the first set of one or more transport keys, and
transmitting the encrypted second data packet over the cryptographic tunnel to the initiator device.

### Claim 16 (depends on 15)

The responder device of claim 15, wherein the at least one cryptographic operation is a Diffie-Hellman computation that affects at least the generation of the second set of one or more transport keys.

### Claim 17 (depends on 15)

The responder device of claim 15, wherein the first request to initiate the cryptographic tunnel includes:
an ephemeral public key of the initiator device;
an encrypted static public key of the initiator device; and
an encrypted timestamp.

### Claim 18 (depends on 17)

The responder device of claim 17, wherein the second request includes:
the ephemeral public key of the initiator device;
the encrypted static public key of the initiator device; and
the encrypted timestamp.

### Claim 19 (depends on 15)

The responder device of claim 15, wherein the first response includes:
an encrypted empty value; and
a static public key of the initiator device.

### Claim 20 (depends on 19)

The responder device of claim 19, wherein the second response includes:
an ephemeral public key of the responder device; and
the encrypted empty value.
