SUPPORT-8767. Добавлена обязательность полей sign_cert_thumbprint, sign_cert_password и esia_cert_thumbprint

This commit is contained in:
Наиля Алашкова 2024-12-10 10:02:37 +03:00
parent 2fc0e6fe70
commit d6c6cd96ee
2 changed files with 15 additions and 0 deletions

View file

@ -78,6 +78,16 @@ sign_conf_load(sign_conf_t *conf, const conf_file_context_t conf_file)
goto error;
}
if (str_t_is_null(conf->sign_cert_thumbprint)) {
LOG_ERROR(SIGN_CONF_SECTION ":" SIGN_CONF_KEY_SIGN_CERT_THUMBPRINT " is required");
goto error;
}
if (str_t_is_null(conf->sign_cert_password)) {
LOG_ERROR(SIGN_CONF_SECTION ":" SIGN_CONF_KEY_SIGN_CERT_PASSWORD " is required");
goto error;
}
LOG_TRACE("sign_conf_load exit");
return 0;

View file

@ -74,6 +74,11 @@ verify_conf_load(verify_conf_t *conf, const conf_file_context_t conf_file)
goto error;
}
if (conf->esia_cert_thumbprint_list.size == 0) {
LOG_ERROR(VERIFY_CONF_SECTION ":" VERIFY_CONF_KEY_THUMBPRINT " is required");
goto error;
}
LOG_TRACE("verify_conf_load exit");
return 0;