Is there a way to disable TLS 1.0 and TLS 1.1 and only allow TLS 1.2 with Greenlock-Express and Node.js?
The example code for Greenlock shows something like the following:
var app = require("./app");
require("greenlock-express")
.init({
packageRoot: __dirname,
configDir: "./greenlock.d",
maintainerEmail: "[email protected]",
cluster: false
})
.serve(app);
where app is the Express server object.
Can server TLS options be passed through the Greenlock initialization parameters?
Use
.ready()instead of.serve()and you can get access to node's nativehttpsobject customize as you wish.See examples/https/server.js.