src/bin/proxmox-backup-api.rs: create cert here
This commit is contained in:
parent
ca6119551d
commit
22be470d90
|
@ -33,6 +33,8 @@ async fn run() -> Result<(), Error> {
|
||||||
|
|
||||||
config::create_configdir()?;
|
config::create_configdir()?;
|
||||||
|
|
||||||
|
config::update_self_signed_cert(false)?;
|
||||||
|
|
||||||
if let Err(err) = generate_auth_key() {
|
if let Err(err) = generate_auth_key() {
|
||||||
bail!("unable to generate auth key - {}", err);
|
bail!("unable to generate auth key - {}", err);
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,6 @@ async fn run() -> Result<(), Error> {
|
||||||
bail!("unable to inititialize syslog - {}", err);
|
bail!("unable to inititialize syslog - {}", err);
|
||||||
}
|
}
|
||||||
|
|
||||||
config::update_self_signed_cert(false)?;
|
|
||||||
|
|
||||||
let _ = public_auth_key(); // load with lazy_static
|
let _ = public_auth_key(); // load with lazy_static
|
||||||
let _ = csrf_secret(); // load with lazy_static
|
let _ = csrf_secret(); // load with lazy_static
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue