зеркало из https://github.com/microsoft/CCF.git
Don't start ACME clients without directory URL (#4925)
This commit is contained in:
Родитель
087716a958
Коммит
649297c4ae
|
@ -1335,7 +1335,9 @@ namespace ccf
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (acme_clients.find(cfg_name) == acme_clients.end())
|
if (
|
||||||
|
!cit->second.directory_url.empty() &&
|
||||||
|
acme_clients.find(cfg_name) == acme_clients.end())
|
||||||
{
|
{
|
||||||
const auto& cfg = cit->second;
|
const auto& cfg = cit->second;
|
||||||
|
|
||||||
|
@ -1358,9 +1360,9 @@ namespace ccf
|
||||||
}
|
}
|
||||||
|
|
||||||
auto client = acme_clients[cfg_name];
|
auto client = acme_clients[cfg_name];
|
||||||
if (!client->has_active_orders())
|
if (client && !client->has_active_orders())
|
||||||
{
|
{
|
||||||
acme_clients[cfg_name]->get_certificate(
|
client->get_certificate(
|
||||||
make_key_pair(network.identity->priv_key), true);
|
make_key_pair(network.identity->priv_key), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2536,8 +2538,11 @@ namespace ccf
|
||||||
{
|
{
|
||||||
for (auto& [cfg_name, client] : state.acme_clients)
|
for (auto& [cfg_name, client] : state.acme_clients)
|
||||||
{
|
{
|
||||||
client->check_expiry(
|
if (client)
|
||||||
state.network.tables, state.network.identity);
|
{
|
||||||
|
client->check_expiry(
|
||||||
|
state.network.tables, state.network.identity);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче