Pereiti prie turinio

TLS 1.2 and TLS 1.3

This chapter sets out the TLS policy adopted for CyberElements Bastion.

On the Mediation Controller web portal, TLS 1.2 and TLS 1.3 both remain enabled by default, so as to preserve compatibility with the existing ecosystem; TLS 1.0 and 1.1 are disabled in every case.

Information

The Watchdog, the SSL Router and the Edge Gateway servers are TLS 1.3 minimum by default, with no configuration required from the integrator: those flows only involve components of the product talking to each other, never a browser or a third-party tool, and the product already applies the most robust protocol natively. Those components are therefore not covered by the recommendations below, which deal only with the Apache portal of the Mediation Controller, the only point where active configuration is needed.

Information

The careserver recording service, specific to CyberElements Bastion, is configured like the gateways: the protocol level is set in /etc/ipdiva/careserver/careserver.xml through the <min-version> / <max-version> tags. Check the level actually configured by default (see R52) and, where appropriate, set <min-version>tls1.3</min-version> then restart the service: systemctl restart ipdivacarerecord.service.

Information

The ANSSI reference on this subject is the guide "Recommandations de sécurité relatives à TLS" (version 1.2, 26/03/2020). It is not organised into numbered recommendations like the other notes cited in this guide; the points below therefore refer to its content rather than to a number.

Summary

# Recommendation Mediation Controller Edge Gateway
R50 General TLS policy
R51 Configuration of the Mediation Controller Apache portal
R52 Verification of the effective TLS configuration

The in the Edge Gateway column does not indicate an absence of control, but compliance already achieved by default (see the note above): no action is required there.

R50. General TLS policy

Applies to: Mediation Controller · Edge Gateway

TLS 1.0 and TLS 1.1 must be disabled on all HTTPS and SSL/VPN flows of CyberElements Bastion; any connection attempt using either of these two versions must be rejected.

On the Mediation Controller web portal, TLS 1.2 and TLS 1.3 are both accepted by default: this policy preserves compatibility with browsers, operating systems or client tools that may not yet support TLS 1.3, while allowing recent clients to negotiate the most robust protocol available.

The effective negotiation can be checked with the following commands:

1
2
3
openssl s_client -connect <host>:443 -tls1_3
openssl s_client -connect <host>:443 -tls1_2
openssl s_client -connect <host>:443 -tls1_1

The first two commands must establish the connection in the default configuration (1.2 and 1.3); the third must always fail.

R51. Configuration of the Mediation Controller Apache portal

Applies to: Mediation Controller · Edge Gateway

Apache configuration, in /etc/ipdiva/httpd/ssl.conf, default setting (TLS 1.2 and 1.3):

1
2
SSLProtocol ALL -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLCipherSuite ECDH+AESGCM:EDH+AESGCM:!aNULL:!MD5

Information

In this default setting, TLS 1.2 remaining enabled, the SSLCipherSuite directive keeps its full effect on the negotiation of cipher suites for that protocol. The TLS 1.3 suites (chosen by OpenSSL by default: TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, TLS_AES_128_GCM_SHA256) are negotiated separately and are not affected by that directive; they can be adjusted if needed through SSLCipherSuite TLSv1.3 <list>, but the OpenSSL defaults are considered safe.

1
systemctl restart apache2

R52. Verification of the effective TLS configuration

Applies to: Mediation Controller · Edge Gateway

Once the previous recommendation has been applied, the effective configuration of the portal must be checked.

1
2
3
openssl s_client -connect <host>:443 -tls1_3 </dev/null 2>&1 | grep -i protocol
openssl s_client -connect <host>:443 -tls1_2 </dev/null 2>&1 | grep -i protocol
openssl s_client -connect <host>:443 -tls1_1 </dev/null 2>&1 | grep -i "handshake failure\|no protocols"

The first two commands must succeed and the third must fail.

Where a tool such as testssl.sh is available, a full sweep of the protocols and suites accepted by the portal is a more exhaustive check than targeted tests.

Warning!

As with the other elements of cryptographic configuration covered by this guide (SSH keys, see SSH; Edge Gateway certificates, see Edge Gateway certificate and private key), this check must be repeated after every major update of CyberElements Bastion, not only at initial setup.