# Specify Cipher for MQTT

**URL:** <https://discourse.nodered.org/t/specify-cipher-for-mqtt/4410>\
**Category:** General\
**Created:** [30 October 2018 04:08 UTC](https://discourse.nodered.org/t/specify-cipher-for-mqtt/4410 "2018-10-30T04:08:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2mi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/m2mi/32/3439_2.png) [@m2mi](https://discourse.nodered.org/u/m2mi)\
**Post date:** [30 October 2018 04:08 UTC](https://discourse.nodered.org/t/specify-cipher-for-mqtt/4410/1 "2018-10-30T04:08:28Z")

</div>

Is there a way to specify the preferred openssl TLS cipher in node-red? For example,

TLS\_ECDHE\_RSA\_WITH\_AES\_128\_GCM\_SHA256

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 October 2018 12:38 UTC](https://discourse.nodered.org/t/specify-cipher-for-mqtt/4410/2 "2018-10-30T12:38:38Z")

</div>

> [@m2mi](#):
>
> Is there a way to specify the preferred openssl TLS cipher in node-red?

The settings are in `settings.js` and the object is, I think, actually that of the underlying NodeJS TLS settings. So have a look at the NodeJS docs for what you can put in there.
