> Source: https://docs.cyberelements.io/bastion/4.7/el/Security/Tls/

# 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](#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**](#r50) | General TLS policy | ✅ | ❌ |
| [**R51**](#r51) | Configuration of the Mediation Controller Apache portal | ✅ | ❌ |
| [**R52**](#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
```

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
```

> **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
```

## 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
```

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](https://docs.cyberelements.io/bastion/4.7/el/Security/Ssh/); Edge Gateway certificates, see [Edge Gateway certificate and private key](https://docs.cyberelements.io/bastion/4.7/el/Security/GatewayCertificates/)), this check must be **repeated after every major update** of CyberElements Bastion, not only at initial setup.
