src/bin/proxmox-backup-api.rs: create cert here

This commit is contained in:
Dietmar Maurer 2019-12-27 13:44:21 +01:00
parent ca6119551d
commit 22be470d90
2 changed files with 2 additions and 2 deletions

View File

@ -33,6 +33,8 @@ async fn run() -> Result<(), Error> {
config::create_configdir()?;
config::update_self_signed_cert(false)?;
if let Err(err) = generate_auth_key() {
bail!("unable to generate auth key - {}", err);
}

View File

@ -32,8 +32,6 @@ 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