to specify a thread set which spans across several thread groups for such a
listener as this may caused "nbconn" to not work as intended.
+tls-tickets
+ This setting is only available when support for OpenSSL was built in. It
+ enables the stateless session resumption (RFC 5077 TLS Ticket extension). It
+ is the default, but it may be needed to selectively re-enable the feature on
+ a "bind" line if it had been globaly disabled via "no-tls-tickets" mentioned
+ in "ssl-default-bind-options". See also the "no-tls-tickets" bind keyword.
+
tls-ticket-keys <keyfile>
Sets the TLS ticket keys file to load the keys from. The keys need to be 48
or 80 bytes long, depending if aes128 or aes256 is used, encoded with base64
return parse_tls_method_minmax(args, *cur_arg, &newsrv->ssl_ctx.methods, err);
}
-/* parse the "no-tls-tickets" bind keyword */
+/* parse the "no-tls-tickets" and "tls-tickets" bind keywords */
static int bind_parse_no_tls_tickets(char **args, int cur_arg, struct proxy *px, struct bind_conf *conf, char **err)
{
- conf->ssl_options |= BC_SSL_O_NO_TLS_TICKETS;
+ if (strncmp(args[cur_arg], "no-", 3) == 0)
+ conf->ssl_options |= BC_SSL_O_NO_TLS_TICKETS;
+ else
+ conf->ssl_options &= ~BC_SSL_O_NO_TLS_TICKETS;
return 0;
}
while (*(args[i])) {
if (strcmp(args[i], "no-tls-tickets") == 0)
global_ssl.listen_default_ssloptions |= BC_SSL_O_NO_TLS_TICKETS;
+ else if (strcmp(args[i], "tls-tickets") == 0)
+ global_ssl.listen_default_ssloptions &= ~BC_SSL_O_NO_TLS_TICKETS;
else if (strcmp(args[i], "prefer-client-ciphers") == 0)
global_ssl.listen_default_ssloptions |= BC_SSL_O_PREF_CLIE_CIPH;
else if (strcmp(args[i], "strict-sni") == 0)
{ "ssl-min-ver", bind_parse_tls_method_minmax, 1 }, /* minimum version */
{ "ssl-max-ver", bind_parse_tls_method_minmax, 1 }, /* maximum version */
{ "strict-sni", bind_parse_strict_sni, 0 }, /* refuse negotiation if sni doesn't match a certificate */
+ { "tls-tickets", bind_parse_no_tls_tickets, 0 }, /* enable session resumption tickets */
{ "tls-ticket-keys", bind_parse_tls_ticket_keys, 1 }, /* set file to load TLS ticket keys from */
{ "verify", bind_parse_verify, 1 }, /* set SSL verify method */
{ "npn", bind_parse_npn, 1 }, /* set NPN supported protocols */