Closed oldshensheep closed 6 months ago
Ah they must have added it somewhere along the line, and we don't have it yet.
Ah I see. It needs either LIBFETCH_DYNAMIC
, LIBFETCH_IS_FETCH
or LIBFETCH_IS_LIBCURL
. Easiest there is probably libcurl.
e059d61
$ SSL_NO_VERIFY_PEER=1 ./zfs create -o encryption=on -o keyformat=raw \
-o keylocation=https://lundman.net/key.bin \
BOOM/ccm
$ ./zfs get keylocation BOOM/ccm
NAME PROPERTY VALUE SOURCE
BOOM/ccm keylocation https://lundman.net/key.bin local
Working fine now
I'm still getting this error:
PS [Erwin@VERWIN] C:\> zfs get all | grep keysta
dpool keystatus unavailable -
PS [Erwin@VERWIN] C:\> zfs load-key -a
Key load error: Couldn't GET http://192.168.0.10:84/zfs/zfs-key: No error
0 / 1 key(s) successfully loaded
PS [Erwin@VERWIN] C:\> zfs get all | grep keysta
dpool keystatus unavailable -
PS [Erwin@VERWIN] C:\> zfs set keylocation=file:///zfs-key dpool
PS [Erwin@VERWIN] C:\> zfs load-key -a
1 / 1 key(s) successfully loaded
The curl
command mentioned before works nicely.
Any ideas?
Cheers, Erwin
I am assuming you know what you are doing enough not to have to ask about port 84. I did wonder if we should maybe keep libfetch VERBOSE on, otherwise it is far too quiet. https://github.com/openzfsonwindows/openzfs/blob/development/lib/libzfs/libzfs_crypto.c#L586
Thanks for the quick response. This is a pure testing environment. Changing the port to e.g. 8088 didn't solve anything:
Key load error: Couldn't GET http://192.168.0.10:8088/zfs/zfs-key: No error
0 / 1 key(s) successfully loaded
All these work fine in my Ubuntu environments.
well, you can just telnet 192.168.0.10 8088
then send GET /zfs/zfs-key HTTP/1.0
return, return.
System information
Describe the problem you're observing
these pools are created on Linux.
Describe how to reproduce the problem
looks like http backend is not suppoerted?
Include any warning/errors/backtraces from the system logs