> Source: https://docs.cyberelements.io/bastion/4.7/hr/Usage/Reference/ConfigurationFiles/MediationController/SslConf/

# ssl.conf

`ssl.conf` holds the TLS settings shared by the virtual hosts of the Mediation Controller: the protocol versions accepted, the cipher suites, and who chooses between them. It is the single place where the encryption of the published web interfaces is set.

| Property | Value |
|---|---|
| **Component** | Mediation Controller |
| **Path** | `/etc/ipdiva/httpd/ssl.conf` |
| **Owner and permissions** | `root`, `644` |
| **Package** | `ipdiva-hostmanager-webserver` (a configuration file kept on upgrade) |
| **Format** | Apache directives |

## Delivered content

```
1
2
3
4
5
```

| Directive | Effect |
|---|---|
| `SSLEngine` | Enables TLS on the virtual hosts that include this file. |
| `SSLCipherSuite` | The accepted cipher suites, in OpenSSL syntax. The default value keeps the suites with ephemeral key exchange and authenticated encryption, and excludes the suites without authentication and those based on MD5. |
| `SSLProtocol` | The accepted protocol versions. The default value excludes SSL 2.0, SSL 3.0, TLS 1.0 and TLS 1.1, which leaves **TLS 1.2 and TLS 1.3**. |
| `SSLOptions` | Exposes the standard environment variables and the client certificate to the applications behind the web server. |
| `SSLHonorCipherOrder` | The order of the server wins over the preference of the browser. |

> **Hardening guide**
>
> The recommended settings and the reasons behind them are in [TLS 1.2 and 1.3](https://docs.cyberelements.io/bastion/4.7/hr/Security/Tls/), recommendation R51. This page describes the file; that one states what to put in it.

## What includes it

The file is not included by the whole web server but by the **templates of the published virtual hosts**: reverse proxy, transparent reverse proxy and Web VPN. The Web VPN template is the one that publishes the **user portal, the administration console and the system console**: these settings therefore apply to them, as to the reverse proxy virtual hosts declared in the system console. A virtual host that does not include the file does not inherit these settings.

> **The system console reads this file**
>
> The host manager opens `ssl.conf` to report the encryption in use. Keep the file readable and keep one directive per line: a reorganised file still works for Apache, but the console may no longer display what it holds.

## Applying a change

Check the syntax first, then reload the web server:

```
1
2
```

> **An unusable cipher suite cuts access to the consoles**
>
> `configtest` validates the syntax, not the meaning: a `SSLCipherSuite` that no client can negotiate is accepted by Apache and leaves the web interfaces unreachable. Check the result of your value with `openssl ciphers -v '<your value>'` before reloading.

## Upgrade

The file is kept on upgrade. If you modified it, the upgrade asks whether to keep your version or to install the new one: the version not chosen is kept next to it, as `ssl.conf.dpkg-old` (your former version) or `ssl.conf.dpkg-dist` (the new version).

> **A kept version can hold outdated settings**
>
> Protocol versions and cipher suites are exactly what a new version of the product updates. Keeping your file means keeping your settings, including those the product would have raised: compare it with `ssl.conf.dpkg-dist` after the upgrade.
