src/bin/proxmox-backup-api.rs: create cert here
This commit is contained in:
		@ -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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user