You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature] Add support for tls-crypt instead of tls-auth #252
OpenVPN 2.4 onwards supports the tls-crypt option instead of tls-auth.
It would be great if OpenWISP would support this feature instead of just tls-auth.
OpenVPN 2.5 would even support client-specific tls-crypt keys, see Client-specific tls-crypt keys (--tls-crypt-v2) tls-crypt-v2 adds the ability to supply each client with a unique tls-crypt key. This allows large organisations and VPN providers to profit from the same DoS and TLS stack protection that small deployments can already achieve using tls-auth or tls-crypt.
changed the title [-][feature] add support for tls-crypt instead of tls-auth[/-][+][feature] Add support for tls-crypt instead of tls-auth[/+]on Jun 13, 2024
schema: new optional tls_crypt string field (textarea) in the OpenVPN backend, next to tls_auth;
converter: when the field holds the key material rather than a path, write it to <ca dir>/<dev>_tls_crypt.key the same way __add_tls_auth_key does and render tls-crypt <path> (no key direction, tls-crypt keys are symmetric);
auto_client(): copy the key material into the generated client config, so clients created by openwisp-controller pick it up automatically;
validation: reject configurations that set both tls_auth and tls_crypt, since OpenVPN refuses to start with both (--tls-auth and --tls-crypt are mutually exclusive);
the OpenWrt backend needs no special handling (tls_crypt is already in the openvpn package's option list) and the parser picks the directive up through the generic key/value path; docs and tests included.
I'd leave tls-crypt-v2 out of this PR: it needs per-client keys, so auto_client() would need a new argument to receive them. Better handled separately once the basic option is in.
Unless you'd prefer a different approach, I'll open a PR referencing this issue.
Activity
kosli commentedon Feb 16, 2023
OpenVPN 2.5 would even support client-specific tls-crypt keys, see
Client-specific tls-crypt keys (--tls-crypt-v2)
tls-crypt-v2adds the ability to supply each client with a unique tls-crypt key. This allows large organisations and VPN providers to profit from the same DoS and TLS stack protection that small deployments can already achieve using tls-auth or tls-crypt.[-][feature] add support for tls-crypt instead of tls-auth[/-][+][feature] Add support for tls-crypt instead of tls-auth[/+]amanbn8 commentedon Oct 4, 2026
Hi, I'd like to take this one.
Plan, mirroring how
tls_authis handled today:tls_cryptstring field (textarea) in the OpenVPN backend, next totls_auth;<ca dir>/<dev>_tls_crypt.keythe same way__add_tls_auth_keydoes and rendertls-crypt <path>(no key direction, tls-crypt keys are symmetric);auto_client(): copy the key material into the generated client config, so clients created by openwisp-controller pick it up automatically;tls_authandtls_crypt, since OpenVPN refuses to start with both (--tls-auth and --tls-crypt are mutually exclusive);tls_cryptis already in the openvpn package's option list) and the parser picks the directive up through the generic key/value path; docs and tests included.I'd leave
tls-crypt-v2out of this PR: it needs per-client keys, soauto_client()would need a new argument to receive them. Better handled separately once the basic option is in.Unless you'd prefer a different approach, I'll open a PR referencing this issue.
openwisp-companion commentedon Oct 4, 2026
This issue has been automatically assigned to @amanbn8 who opened PR #421 to address it. 🎯