redbird
redbird copied to clipboard
Request: Document multiple 'secureOptions' behavior
When using the secureOptions attribute with an SSL proxy, what is the expected structure for supplying multiple Crypto SSL constant values?
Do we use an array, ||, &&? Is this even possible? Code does not make it clear.
{ssl: {
redirect: true, // False to disable HTTPS autoredirect to this route.
key: keyPath,
cert: certPath,
ca: caPath, // optional
secureOptions: constants.SSL_OP_NO_TLSv1 && constants.SSL_OP_CIPHER_SERVER_PREFERENCE
}
}
Hi! Taking from nodejs documentation: https://nodejs.org/api/tls.html
"secureOptions
So I think it should be bitwise or (single | symbol), like this:
{
ssl: {
redirect: true, // False to disable HTTPS autoredirect to this route.
key: keyPath,
cert: certPath,
ca: caPath, // optional
secureOptions: constants.SSL_OP_NO_TLSv1 | constants.SSL_OP_CIPHER_SERVER_PREFERENCE
}
}