Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to activate mixed mode ecryption #15

Open
marianoemon opened this issue Feb 12, 2019 · 3 comments
Open

Unable to activate mixed mode ecryption #15

marianoemon opened this issue Feb 12, 2019 · 3 comments
Labels
needinfo Ticket is on stall. We need more information.

Comments

@marianoemon
Copy link

marianoemon commented Feb 12, 2019

I try to implement stenc for bacula, in particular on a LTO6 unit and it seems this option is not compatible. Could be this true?

Ubuntu Server 18.04.2, stenc 1.0.7-2

stenc -f /dev/nst0 -e mixed -k /etc/bacula/myaes.key -a 1 --ckod
Provided key length is 256 bits.
Key checksum is ffffcad2.
Turning on encryption on device '/dev/nst0'...
Sense Code:              Illegal Request (0x05)
 ASC:                    0x26
 ASCQ:                   0x00
 Additional data:        0x00000e00202020202020201500005881b9000097f0b982b5504c3
60000000000000000000000000000000000000000000000000000000000000000000000000000000
00045573233584d3250314100000000000000000000
Error: Turning encryption on for '/dev/nst0' failed!
Usage: stenc --version | -g <length> -k <file> [-kd <description>] | -f <device> 
[--detail] [-e <on/mixed/rawread/off> [-k <file>] [-kd <description>] [-a <index>] 
[--protect | --unprotect] [--ckod] ]
Type 'man stenc' for more information.
root@mxmexbkp01:/etc/bacula/scripts# Error: Turning encryption on for '/dev/nst0 
' failed!
Error:: command not found

@jonasstein
Copy link
Collaborator

jonasstein commented Dec 25, 2019

I use stenc together with an Tandberg LTO-6 drive.
I was told that there are very few LTO-6 drives, which do not support AES just to add more products on the marked. But I could not confirm this yet. Which exact drive do you use?
Can you explain how bacula adds the AES support now? Does it really use the AES chip in the LTO drive? What is the output of
stenc -f /dev/st0 --detail

In order to set a key and forget after eject you can test with:
stenc -f /dev/nst0 -e on -k /root/myaes.key -a 1 --ckod

@jonasstein
Copy link
Collaborator

@marianoemon ping, any news?

@jonasstein jonasstein added the needinfo Ticket is on stall. We need more information. label Jun 16, 2020
@svalx
Copy link

svalx commented Dec 1, 2020

Probably incorrect encryption algorithm for drive. Try without -a option or another value. I receive such error on HP drive when set -a option other than one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needinfo Ticket is on stall. We need more information.
Projects
None yet
Development

No branches or pull requests

3 participants