tls: Add certficate_revocation_list option for client/server encryption options
Fixes #9630 Adds support for importing a CRL certificate reovcation list. This will be monitored and reloaded like certs/keys. Allows blacklisting individual certs. Closes #9655
This commit is contained in:
committed by
Nadav Har'El
parent
82bcc2cbd2
commit
a8bb4dcd28
@@ -435,6 +435,7 @@ commitlog_total_space_in_mb: -1
|
||||
# certificate: conf/scylla.crt
|
||||
# keyfile: conf/scylla.key
|
||||
# truststore: <none, use system trust>
|
||||
# certficate_revocation_list: <none>
|
||||
# require_client_auth: False
|
||||
# priority_string: <none, use default>
|
||||
|
||||
@@ -444,6 +445,7 @@ commitlog_total_space_in_mb: -1
|
||||
# certificate: conf/scylla.crt
|
||||
# keyfile: conf/scylla.key
|
||||
# truststore: <none, use system trust>
|
||||
# certficate_revocation_list: <none>
|
||||
# require_client_auth: False
|
||||
# priority_string: <none, use default>
|
||||
|
||||
|
||||
@@ -724,6 +724,7 @@ db::config::config(std::shared_ptr<db::extensions> exts)
|
||||
"certificate : (Default: conf/scylla.crt) The location of a PEM-encoded x509 certificate used to identify and encrypt the internode communication.\n"
|
||||
"keyfile : (Default: conf/scylla.key) PEM Key file associated with certificate.\n"
|
||||
"truststore : (Default: <system truststore> ) Location of the truststore containing the trusted certificate for authenticating remote servers.\n"
|
||||
"certficate_revocation_list : (Default: <none> ) PEM encoded certificate revocation list.\n"
|
||||
"\n"
|
||||
"The advanced settings are:\n"
|
||||
"\n"
|
||||
@@ -737,6 +738,7 @@ db::config::config(std::shared_ptr<db::extensions> exts)
|
||||
"\tcertificate: (Default: conf/scylla.crt) The location of a PEM-encoded x509 certificate used to identify and encrypt the client/server communication.\n"
|
||||
"\tkeyfile: (Default: conf/scylla.key) PEM Key file associated with certificate.\n"
|
||||
"truststore : (Default: <system truststore> ) Location of the truststore containing the trusted certificate for authenticating remote servers.\n"
|
||||
"certficate_revocation_list : (Default: <none> ) PEM encoded certificate revocation list.\n"
|
||||
"\n"
|
||||
"The advanced settings are:\n"
|
||||
"\n"
|
||||
@@ -1093,6 +1095,9 @@ future<> configure_tls_creds_builder(seastar::tls::credentials_builder& creds, d
|
||||
if (options.contains("truststore")) {
|
||||
co_await creds.set_x509_trust_file(options.at("truststore"), seastar::tls::x509_crt_format::PEM);
|
||||
}
|
||||
if (options.contains("certficate_revocation_list")) {
|
||||
co_await creds.set_x509_crl_file(options.at("certficate_revocation_list"), seastar::tls::x509_crt_format::PEM);
|
||||
}
|
||||
}
|
||||
|
||||
future<gms::inet_address> resolve(const config_file::named_value<sstring>& address, gms::inet_address::opt_family family, gms::inet_address::opt_family preferred) {
|
||||
|
||||
Reference in New Issue
Block a user