main: Add rsa to command sanity checker

pull/143/merge
Andri Yngvason 2023-10-02 22:01:21 +00:00
parent cdeefd0851
commit 9ff7ba61e2
1 changed files with 2 additions and 2 deletions

View File

@ -1002,12 +1002,12 @@ int check_cfg_sanity(struct cfg* cfg)
return -1;
}
if (!cfg->certificate_file) {
if (!cfg->certificate_file && !cfg->rsa_private_key_file) {
nvnc_log(NVNC_LOG_ERROR, "Authentication enabled, but missing certificate_file");
rc = -1;
}
if (!cfg->private_key_file) {
if (!cfg->private_key_file && !cfg->rsa_private_key_file) {
nvnc_log(NVNC_LOG_ERROR, "Authentication enabled, but missing private_key_file");
rc = -1;
}