key: make 'default' master key explicit

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-02-05 16:35:26 +01:00
committed by Dietmar Maurer
parent 777690a121
commit 05f17d1ec4
2 changed files with 10 additions and 7 deletions

View File

@ -896,7 +896,7 @@ async fn create_backup(
let crypt_config = CryptConfig::new(key)?;
match key::find_master_pubkey()? {
match key::find_default_master_pubkey()? {
Some(ref path) if path.exists() => {
let pem_data = file_get_contents(path)?;
let rsa = openssl::rsa::Rsa::public_key_from_pem(&pem_data)?;