Add 'ALPNProtocols' option to TLS Node
See original GitHub issueHi 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:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello all, is there any update regarding this feature ?
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.