How to set the allowed protocol for a node.js HTTPS server?
<p>I have built a HTTPS server using the default <code>https</code> module and <code>express</code>.</p>

<p>However, I can't find anywhere how to tell it to only use the latest version of TLS, nor any information on which version of SSL/TLS was supported by the default server.</p>

<p>I did found some express middlware promising to <a href="https://github.com/battlejj/express-force-ssl" rel="nofollow">enforce SSL</a>, but SSL is obsolete since 2015, and there is still no information on which version is enforced.</p>

<p>How can I define which version of TLS to use for my app? Or at least how to find out which version is used?</p>