mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
Update CertReloader.cpp
This commit is contained in:
parent
f3c8821919
commit
6007ea9423
@ -51,8 +51,8 @@ void CertReloader::reload(const Poco::Util::AbstractConfiguration & config)
|
||||
LOG_INFO(log, "Reloading cert({}), key({})", cert_file, key_file);
|
||||
{
|
||||
std::unique_lock lock(mutex);
|
||||
key.reset(new Poco::Crypto::RSAKey("", key_file));
|
||||
cert.reset(new Poco::Crypto::X509Certificate(cert_file));
|
||||
key = std::make_unique<Poco::Crypto::RSAKey>("", key_file);
|
||||
cert = std::make_unique<Poco::Crypto::X509Certificate>(cert_file);
|
||||
}
|
||||
LOG_INFO(log, "Reloaded cert {}", cert_file);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user