From 045e8a568daf9aa609807be48e759f7f0534c7a0 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 25 Jun 2019 07:00:07 +0200 Subject: [PATCH] src/bin/proxmox-backup-client.rs: change key name to rsa-encrypted.key --- src/bin/proxmox-backup-client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/proxmox-backup-client.rs b/src/bin/proxmox-backup-client.rs index da76c20d..167c7f2c 100644 --- a/src/bin/proxmox-backup-client.rs +++ b/src/bin/proxmox-backup-client.rs @@ -517,11 +517,11 @@ fn create_backup( let pem_data = proxmox_backup::tools::file_get_contents(&path)?; let rsa = openssl::rsa::Rsa::public_key_from_pem(&pem_data)?; let enc_key = crypt_config.generate_rsa_encoded_key(rsa)?; - let target = "rsa-encoded.key"; + let target = "rsa-encrypted.key"; println!("Upload RSA encoded key to '{:?}' as {}", repo, target); client.upload_blob_from_data(enc_key, target, None, false).wait()?; - // openssl rsautl -decrypt -inkey master-private.pem -in mtest.enckey -out t + // openssl rsautl -decrypt -inkey master-private.pem -in rsa-encrypted.key -out t /* let mut buffer2 = vec![0u8; rsa.size() as usize]; let pem_data = proxmox_backup::tools::file_get_contents("master-private.pem")?;