[SOLVED] Recover encryption-key.json with master-private.pem

Aug 7, 2017
45
3
48
54
Currently we test our backup in a desaster mode. One scenario is the loss of encryption-key.json with which we encrypted a host backup with proxmox-backup-client:


proxmox-backup-client key import-with-master-key encryption-key.json --encrypted-keyfile rsa-encrypted.key --master-keyfile ./master-private.pem

encryption-key.json has no password
master-private.pem has a password

We successfully extract the rsa-encrypted.key from the snapshot and we can decrypt this file with the master-private.pem. We also can then use the encryption-key.json but need to always provide the password which we have for master-private.pem.

How can we recover and use the encryption-key.json without the password of master-private.pem?
 
Hi,
IIRC you need to specify --kdf none when importing the key.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!