---
name: azion-set-the-tls-cipher-suite
description: >-
  Set the minimum TLS version and the cipher suite an application accepts over HTTPS, from Azion Console or the API.
---

# Set the TLS cipher suite

> Platform versions: this page applies to API v3.x only, not to API v6.x and API v4.x.
> Equivalent page for API v4.x: [Set the TLS cipher suite](/en/documentation/guides/application-security/tls-and-certificates/ciphers.md)
> Release stage: Deprecated.

You can set the lowest TLS version and the cipher suite that an [application](/en/documentation/platform/applications/v3/) accepts over HTTPS from Azion Console or the API. Both settings belong to the application, in its [Main Settings](/en/documentation/platform/applications/main-settings-v3/).

A cipher suite is a named set of ciphers. During the TLS handshake, the client and the application negotiate one cipher from the suite for the session. The minimum TLS version is a floor: a client that supports only older versions cannot connect.

---

## Prerequisites

### Console

- An application, and a hostname that reaches it over HTTPS, to check the result.
- Access to Azion Console. For more information, refer to [How to access Azion Console](/en/documentation/guides/platform/account-and-billing/how-to-access-azion-console/).

### API

- An application, and a hostname that reaches it over HTTPS, to check the result.
- A personal token for the `Authorization` header, in the form `Token [TOKEN VALUE]`. To create a token, refer to [Personal tokens](/en/documentation/fundamentals/personal-tokens/).
- `curl` or another HTTP client.

---

## Set the minimum TLS version and the cipher suite

### Console

To set the TLS version and the cipher suite of an application in Azion Console:

1. **Open the application**

   Access [Azion Console](https://console.azion.com/) > **Applications** > **your application**.

2. **Turn on HTTPS**

   In **Delivery Settings**, select **HTTP and HTTPS support**. Without it, the minimum TLS version and the cipher suite do not apply.

3. **Choose the minimum TLS version**

   In **Minimum TLS version**, select the floor you want. For example: **TLS 1.2**.

4. **Choose the cipher suite**

   Under **Cipher suite**, select the suite you want. For example: **TLSv1.2_2021**.

5. **Save the application**

   Select **Save**.

For the suites and the ciphers each one holds, refer to [TLS Ciphers](/en/documentation/platform/applications/main-settings-v3/#tls-ciphers).

### API

To set them with the API, first list the applications of the account and read the `id` of the one you want. The request carries the header `Accept: application/json; version=3`:

```bash
curl --request GET \
  --url https://api.azionapi.net/edge_applications \
  --header 'Accept: application/json; version=3' \
  --header 'Authorization: Token [TOKEN VALUE]'
```

Then send a `PATCH` with the three fields, in place of `<application-id>`:

```bash
curl --request PATCH \
  --url https://api.azionapi.net/edge_applications/<application-id> \
  --header 'Accept: application/json; version=3' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Token [TOKEN VALUE]' \
  --data '{
  "delivery_protocol": "http,https",
  "minimum_tls_version": "tls_1_2",
  "supported_ciphers": "TLSv1.2_2021"
}'
```

| Key                   | What it carries                                                                                        |
| --------------------- | ------------------------------------------------------------------------------------------------------ |
| `delivery_protocol`   | The protocols the application answers on. `http,https` turns HTTPS on, which the other two fields need |
| `minimum_tls_version` | The floor, such as `tls_1_2`                                                                           |
| `supported_ciphers`   | The name of the suite, such as `TLSv1.2_2021`                                                          |

The response returns the application as Azion stored it, with the three fields among the rest:

```json
{
  "results": {
    "id": 1234567890,
    "name": "example.org",
    "delivery_protocol": "http,https",
    "minimum_tls_version": "tls_1_2",
    "supported_ciphers": "TLSv1.2_2021",
    "active": true
  }
}
```

For each field and the values it takes, refer to [Main Settings](/en/documentation/platform/applications/main-settings-v3/).

---

## Check the TLS version and the cipher of a session

Expect the new TLS settings to take several minutes to propagate across Azion's distributed infrastructure. Until then, one request can meet the old settings and the next one the new, so run the check several times until the results match.

To see the TLS version and the cipher a session negotiates, send a request with `curl` in verbose mode. The `-k` option skips the certificate check, so the command shows the handshake even when the certificate does not cover the hostname:

```bash
curl -skv https://<your-domain>/ -o /dev/null
```

In the output, the `SSL connection using` line names the TLS version and the cipher of the session. For an application with **TLS 1.2** as its minimum, the line can read:

```text
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384 / [blank] / UNDEF
```

The line shows TLS 1.3 although the floor is TLS 1.2, because the minimum version sets the lowest version the application accepts, not the version every session uses. The cipher in that line is spelled by the client's TLS library, which can name it differently from the suite tables in [TLS Ciphers](/en/documentation/platform/applications/main-settings-v3/#tls-ciphers).

---

## Next steps

- [Main Settings](/en/documentation/platform/applications/main-settings-v3.md#tls-ciphers): Look up the ciphers each suite holds, and the TLS version of each cipher.
- [Upload a digital certificate](/en/documentation/guides/application-security/tls-and-certificates/digital-certificates/v3.md): Serve HTTPS on your hostname with a certificate you bring.
- [Configure mTLS on a domain](/en/documentation/guides/application-security/tls-and-certificates/associate-an-mtls-certificate/v3.md): Require a client certificate signed by a certificate authority you trust.
- [Configure HTTP and HTTPS ports](/en/documentation/guides/application-development/getting-started/configure-ports/v3.md): Choose the ports the application listens on for HTTP and HTTPS.
