qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-discuss] passphase is not correct when cryptsetup open a luks imag


From: Han Han
Subject: [Qemu-discuss] passphase is not correct when cryptsetup open a luks image created by qemu-img
Date: Tue, 16 Aug 2016 05:48:37 -0400 (EDT)

Hi all,
I created a luks image via qemu-img and tried to open it via cryptsetup but 
failed.
I did following steps:
# qemu-img create -f luks --object 
secret,id=sec0,data=c3RhdGUxMjMK,format=base64 -o key-secret=sec0 /tmp/qemu 
500M                                                                        
Formatting '/tmp/qemu', fmt=luks size=524288000 key-secret=sec0

# cryptsetup luksOpen /tmp/qemu ss                                              
                                                                                
                           
Enter passphrase for /tmp/qemu: 
No key available with this passphrase.
Enter passphrase for /tmp/qemu: 
No key available with this passphrase.

Both the encoded password c3RhdGUxMjMK and decoded password state123 are not 
correct. So how can I open the luks image via cryptsetup? Is there anything 
wrong in above steps? 
Thks

Han Han



reply via email to

[Prev in Thread] Current Thread [Next in Thread]