MXS-2483: Re-configuring SSL for servers is an error
Since listeners cannot be reconfigured, we can accept this limitation and impose it on the servers as well. This keeps the behavior consistent and removes the need to resolve the deletion issue (for the time being).
This commit is contained in:
parent
3b8e28392e
commit
9c6ec5e6c9
@ -434,7 +434,11 @@ bool runtime_enable_server_ssl(Server* server,
|
||||
{
|
||||
bool rval = false;
|
||||
|
||||
if (key && cert && ca)
|
||||
if (server->ssl_context())
|
||||
{
|
||||
config_runtime_error("Server '%s' already configured to use SSL.", server->name());
|
||||
}
|
||||
else if (key && cert && ca)
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(crt_lock);
|
||||
mxs::SSLContext* ssl = create_ssl(server->name(), key, cert, ca, version, depth, verify);
|
||||
|
Loading…
x
Reference in New Issue
Block a user