Skip to content

Agents with Old TLS

Agents on cameras with old firmware cannot complete the TLS handshake with Optic:

  • agents with TLS 1.1 only get the protocol_version alert;
  • agents without ECDSA support get the handshake_failure alert when Optic has an ECDSA certificate, including one issued through ACME.

The agent-tls-compat package accepts such connections on the same address and port 443. Agent addresses, certificates and Optic settings stay as they are.

Installation

Install the package on the central machine with the agents role and on the streamers that agent streams are assigned to:

apt-get install agent-tls-compat

The package starts the agent-tls-compat service and restarts the running optic service. Agents reconnect on their own. If a streamer lacks the package, the agent registers but no video arrives from it.

Check

Repeat the old agent's handshake with your server name:

openssl s_client -connect optic.example.com:443 -servername optic.example.com \
    -tls1_1 -cipher 'AES256-SHA:@SECLEVEL=0' -brief </dev/null

A TLSv1.1 handshake with the CN=agent-tls-compat certificate is expected. If an alert comes instead, check systemctl status agent-tls-compat and that systemctl show -p Environment optic contains SAPSAN_AGENT_TLS_COMPAT; if the variable is missing, restart optic.