Fix OTA with certs

This commit is contained in:
2022-01-20 13:20:33 +01:00
parent d14fa028d9
commit 67d7c6d721

View File

@ -293,7 +293,7 @@ void EspAsyncOta::otaTask()
if (!m_cert_pem.empty())
{
config.cert_pem = m_cert_pem.data();
config.cert_len = m_cert_pem.size() - 1;
config.cert_len = m_cert_pem.size();
}
config.skip_cert_common_name_check = false;