# Tls\_cipher\_suites configuration

**URL:** <https://discuss.hashicorp.com/t/tls-cipher-suites-configuration/46088>\
**Category:** Consul\
**Tags:** service-mesh, consul\
**Created:** [October 27, 2022, 10:41am UTC](https://discuss.hashicorp.com/t/tls-cipher-suites-configuration/46088 "2022-10-27T10:41:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![boyu.du](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/boyu.du/32/25039_2.png) [@boyu.du](https://discuss.hashicorp.com/u/boyu.du)\
**Post date:** [October 27, 2022, 10:41am UTC](https://discuss.hashicorp.com/t/tls-cipher-suites-configuration/46088/1 "2022-10-27T10:41:06Z")

</div>

Hi All,  
I am trying to configure tls\_cipher\_suites in consul.hcl but once I validated the file it came out with error below:

```auto
Config validation failed: 1 error occurred:
        * tls.defaults.tls_cipher_suites: invalid TLS cipher suites: no matching Consul Agent TLS cipher suite found for ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384

```

The configuration I added is like:

```auto
tls_cipher_suites = "ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384"

```

And the suite list comes from:  
[https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport\_sockets/tls/v3/common.proto](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto)

May I know what the correct suites should be?

---

<div class="post-metadata">

**Author:** ![boyu.du](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/boyu.du/32/25039_2.png) [@boyu.du](https://discuss.hashicorp.com/u/boyu.du)\
**Post date:** [October 28, 2022, 3:15pm UTC](https://discuss.hashicorp.com/t/tls-cipher-suites-configuration/46088/2 "2022-10-28T15:15:02Z")

</div>

Consul version is 1.12.2, did anyone know how to configure this parameter?

---

<div class="post-metadata">

**Author:** ![mikemorris](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/mikemorris/32/8100_2.png) [@mikemorris](https://discuss.hashicorp.com/u/mikemorris)\
**Post date:** [November 1, 2022, 4:24pm UTC](https://discuss.hashicorp.com/t/tls-cipher-suites-configuration/46088/3 "2022-11-01T16:24:48Z")

</div>

Envoy actually uses non-standard names for these cipher suites, which differ from the [IANA spec](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml), and there are two different places cipher suites in Consul can be configured - for Consul Agent TLS (which uses Go’s TLS implementation and appears to be what you’re attempting to configure here), and the Envoy proxy TLS config (e.g. for Ingress or API Gateways).

The full list of supported cipher suites for Consul (both Agent TLS and Envoy proxy) can be found in the source code at [consul/tls.go at 693c8a4706e10bc8cd212ceaf0b6728045e96e17 · hashicorp/consul · GitHub](https://github.com/hashicorp/consul/blob/693c8a4706e10bc8cd212ceaf0b6728045e96e17/types/tls.go#L114-L181)

The docs for [`tls_cipher_suites`](https://developer.hashicorp.com/consul/docs/agent/config/config-files#tls_defaults_tls_cipher_suites) does link to a GitHub search query where you can find the Consul Agent TLS suites valid for that config.

---

<div class="post-metadata">

**Author:** ![panditkb](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/panditkb/32/43080_2.png) [@panditkb](https://discuss.hashicorp.com/u/panditkb)\
**Post date:** [October 1, 2024, 5:50pm UTC](https://discuss.hashicorp.com/t/tls-cipher-suites-configuration/46088/4 "2024-10-01T17:50:43Z")

</div>

can anyone tell how to enable tls1\_2 in consul 1.10 version
