src/bin/proxmox-backup-proxy.rs: create self signed cert at startup.

This commit is contained in:
Dietmar Maurer
2019-12-27 11:20:36 +01:00
parent afddffc7ec
commit f8fd5095d8
3 changed files with 125 additions and 116 deletions

View File

@ -11,6 +11,7 @@ use proxmox::api::RpcEnvironmentType;
use proxmox_backup::configdir;
use proxmox_backup::buildcfg;
use proxmox_backup::server;
use proxmox_backup::config;
use proxmox_backup::tools::daemon;
use proxmox_backup::server::{ApiConfig, rest::*};
use proxmox_backup::auth_helpers::*;
@ -31,6 +32,8 @@ async fn run() -> Result<(), Error> {
bail!("unable to inititialize syslog - {}", err);
}
config::update_self_signed_cert(false)?;
let _ = public_auth_key(); // load with lazy_static
let _ = csrf_secret(); // load with lazy_static