FastKey Buffer

The Fastkey Buffer maintains a mapping between session secrets and client random values. The FastKey Buffer receives session secrets from SKI Sensors using the FastKey Protocol, and buffers the keys in memory for a configurable amount of time. When session keys expire, their memory is set to 0 and then freed. The Key Buffer exposes an REST API call to lookup keys based on the value of the Client Random which is when a new session is created or a session is restarted.

FastKey Buffers can be used in multiple use cases. The figure below depicts a FastKey Buffers receiving keys from multiple SKI Sensors, and returning keys to multiple SKI Decryptors.


FastKey Buffer is also referred to as FastKey Server


The following figure shows a FastKey Buffer receiving keys from multiple sensors and returning keys to a SKI Decryption Library.


Deploying a FastKey Buffer

To launch a FastKey Buffer run the following command:

docker run --name nubeva-ks -d -p4433:4433 -p4433:4433/udp  \
-v $(pwd)/../certs:/certs nubeva/fastkey \
--cert /certs/yourcert.pem --key /certs/yourkey.pem


You should adjust the mounted directory -v $(pwd)../certs to match your certs directory, and yourcert.pem and yourkey.pem files to match your cetificiate and key file names.

The instance running the FastKey Buffer must resolve your server DNS to (usually with /etc/hosts).

Command Line Parameters

  • bind <addr> : Address to bind to. Default
  • port <port> : Port to use (both TCP & UDP). Default 4433
  • cert <file> : Server PEM-encoded X.509 Certificate chain file
  • key <file> : Server PEM-encoded Private Key file
  • client-timeout <n> : Timeout in seconds before client disconnects, default 60
  • key-timeout <n> : Timeout in seconds before a key is forgotten, default 300
  • max-key-count <n> : Maximum number of keys to keep. Default 32768
  • ciphers <str> : Accepted SSL Ciphers to use
  • enable-protocol <p> : Enable one of the following protocols: SSLv3, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3 or ALL
  • disable-protocol <p> : Disable one of the following protocols: SSLv3, TLSv1, TLSv1.1, TLSv1.2, TLSv1.3 or ALL


You do not need to launch a FastKey Buffer if you have your own key management solution that implements the FastKey protocol.

API Calls

If you use Nubeva’s demo certificate the the FastKey Buffer must resolve to The following API calls are supported:

  • stats: returns buffer statistics
# Call stats
curl https://[buffer DNS or IP]:4433/stats

# Returns
  • dumpkeys dumps the contents of the key buffer
# Call dumpkeys

curl https://[buffer DNS or IP]:4433/dumpkeys

# Returns
f98cde0d83171d5cb6e53a1d3894b49d3757687a0b7e0aacffdc236d26229c53 (1s): {
faf7ab15ba9c1872dc92ec7d17607e7f13844afb9beed83b28615cd7647f4ccd (1s): {
  • flush_keys clears the key buffer
# Call flush_keys
curl https://[buffer DNS or IP]:4433/flush_keys

# No return value