question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add 'ALPNProtocols' option to TLS Node

See original GitHub issue

Hi all,

In some branches network, where the security policy is strict (eg. only allowing http/https), running mqtt using port 8883 is not working. My options is using only port 443, but it’s not working. After few dyas, i learned that we need to specified Application Layer Protocol Nego (ALPN) options in TLS handshaking.

I’m not into a programming, but i try editing one of the file below, is working.

file: @node-red/nodes/core/io/05-tls.js Excerpt:

TLSConfig.prototype.addTLSOptions = function(opts) { ... ... opts.ALPNProtocols = ["x-amzn-mqtt-ca"]; return opts; }

My question is, can we include this options in the node-red GUI on mqtt tls options? At least user can specified what is the ALPN strings that they want.

Thanks you

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
hbcelikcommented, Nov 30, 2020

Hello all, is there any update regarding this feature ?

1reaction
knollearycommented, Jul 3, 2020

Hi @tarunbatra - sure. Before you dive into the code, would be good to agree what exactly the scope would be.

There are lots of possible options on the TLS node - I had wanted to do a bit of a review to see if there were any other ‘obvious’ ones to ought to be exposed in some way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TLS (SSL) | Node.js v19.3.0 Documentation
The node:tls module provides an implementation of the Transport Layer ... alpnProtocol property is a string that contains the selected ALPN protocol.
Read more >
How to Use SSL/TLS with Node.js - SitePoint
In this tutorial, I'll walk you through a practical example of how to add a Let's Encrypt–generated certificate to your Express.js server. But ......
Read more >
TLS (SSL)
The tls module uses OpenSSL to provide Transport Layer Security and/or Secure Socket Layer: encrypted stream communication. TLS/SSL is a public/private key ...
Read more >
TLSSocketOptions | typescript - v3.7.7
Defined in node_modules/@types/node/tls.d.ts:369. An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their ...
Read more >
TLS (SSL) | NodeJs
Node.js is built with a default suite of enabled and disabled TLS ciphers. ... If this option is specified, host and port are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found