Richard W.M. Jones
e1a6dc91dd
crypto: Implement TLS Pre-Shared Keys (PSK).
...
Pre-Shared Keys (PSK) is a simpler mechanism for enabling TLS
connections than using certificates. It requires only a simple secret
key:
$ mkdir -m 0700 /tmp/keys
$ psktool -u rjones -p /tmp/keys/keys.psk
$ cat /tmp/keys/keys.psk
rjones:d543770c15ad93d76443fb56f501a31969235f47e999720ae8d2336f6a13fcbc
The key can be secretly shared between clients and servers. Clients
must specify the directory containing the "keys.psk" file and a
username (defaults to "qemu"). Servers must specify only the
directory.
Example NBD client:
$ qemu-img info \
--object tls-creds-psk,id=tls0,dir=/tmp/keys,username=rjones,endpoint=client \
--image-opts \
file.driver=nbd,file.host=localhost,file.port=10809,file.tls-creds=tls0,file.export=/
Example NBD server using qemu-nbd:
$ qemu-nbd -t -x / \
--object tls-creds-psk,id=tls0,endpoint=server,dir=/tmp/keys \
--tls-creds tls0 \
image.qcow2
Example NBD server using nbdkit:
$ nbdkit -n -e / -fv \
--tls=on --tls-psk=/tmp/keys/keys.psk \
file file=disk.img
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2018-07-03 13:04:38 +01:00
..
2018-06-15 16:10:11 -03:00
2018-06-11 22:19:57 +03:00
2017-07-18 05:49:01 -05:00
2018-02-22 15:44:07 -08:00
2018-06-29 12:22:28 +01:00
2018-06-08 14:39:24 -03:00
2018-06-08 14:39:24 -03:00
2017-09-22 10:46:25 +08:00
2018-06-25 16:50:48 -04:00
2018-06-08 14:39:24 -03:00
2018-03-21 15:13:40 +01:00
2018-06-22 16:33:46 +02:00
2018-07-02 19:50:37 -05:00
2017-07-11 17:45:00 +02:00
2018-06-20 22:13:32 +01:00
2018-06-08 14:39:24 -03:00
2018-06-21 09:21:19 -05:00
2017-03-02 07:14:27 +02:00
2018-01-16 14:54:52 +01:00
2018-06-15 14:49:44 +02:00
2018-06-28 19:05:31 +02:00
2018-07-02 15:41:17 +02:00
2018-07-02 15:41:17 +02:00
2018-07-02 15:41:17 +02:00
2018-06-11 22:19:57 +03:00
2018-02-14 11:43:41 +01:00
2018-06-08 13:17:39 -04:00
2018-02-14 11:43:41 +01:00
2018-06-29 13:02:50 +02:00
2018-06-08 13:17:39 -04:00
2018-06-22 16:33:46 +02:00
2018-06-15 14:49:44 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-06-15 14:49:44 +02:00
2017-09-04 13:09:13 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-07-03 13:04:38 +01:00
2018-07-03 13:04:38 +01:00
2017-09-04 10:45:19 +01:00
2016-10-28 18:17:24 +03:00
2018-05-04 08:27:53 +02:00
2017-01-31 10:10:13 +11:00
2018-05-04 08:27:53 +02:00
2018-02-14 11:43:41 +01:00
2017-03-01 11:51:28 +04:00
2018-02-14 11:43:41 +01:00
2017-03-01 11:51:05 +04:00
2017-10-20 13:32:10 +02:00
2017-05-09 09:14:40 +02:00
2018-02-14 11:43:41 +01:00
2018-06-15 14:49:44 +02:00
2018-02-14 11:43:02 +01:00
2018-06-15 14:49:44 +02:00
2018-02-09 13:50:17 +01:00
2017-02-21 11:14:07 +00:00
2017-02-21 11:14:07 +00:00
2017-10-20 13:32:10 +02:00
2017-03-01 11:51:05 +04:00
2018-06-29 12:22:28 +01:00
2018-06-04 10:15:16 +01:00
2018-05-30 13:19:14 -03:00
2017-10-20 13:32:10 +02:00
2018-05-20 08:48:13 +03:00
2018-05-04 08:27:53 +02:00
2018-07-03 13:04:38 +01:00
2018-02-14 11:43:41 +01:00
2018-05-15 20:24:27 +02:00
2018-05-30 13:19:14 -03:00
2017-05-11 11:08:40 +02:00
2018-06-08 13:15:32 +01:00
2016-10-19 10:09:24 +01:00
2018-01-17 09:35:24 +11:00
2017-10-20 13:32:10 +02:00
2017-09-19 16:19:39 +02:00
2018-02-09 05:05:11 +01:00
2016-10-24 16:26:53 +01:00
2018-05-04 08:27:53 +02:00
2018-02-14 11:43:41 +01:00
2018-05-04 08:27:53 +02:00
2018-06-15 07:42:55 -10:00
2018-05-30 13:19:14 -03:00
2018-05-04 08:27:53 +02:00
2018-03-12 16:12:47 +01:00
2018-02-14 11:43:41 +01:00
2017-08-01 17:27:33 +02:00
2018-02-14 11:43:02 +01:00
2018-03-06 14:01:27 +01:00
2018-03-13 18:06:06 +00:00
2018-03-13 18:06:06 +00:00
2016-10-16 12:04:15 +11:00
2018-05-04 08:27:53 +02:00
2018-02-09 13:50:17 +01:00
2018-03-27 13:05:28 +01:00
2016-10-24 16:26:54 +01:00
2018-06-18 15:03:25 +02:00
2017-01-10 08:49:59 -08:00
2018-03-02 18:39:07 +01:00
2018-05-30 13:31:01 +02:00
2018-05-30 13:31:01 +02:00
2018-06-01 15:13:46 +02:00
2018-02-09 13:52:15 +01:00
2018-02-08 09:22:03 +08:00
2017-11-08 11:03:46 +00:00
2016-12-21 14:26:26 +00:00
2016-10-19 10:23:55 +01:00
2016-12-22 09:24:59 +00:00
2018-07-03 13:04:38 +01:00
2018-07-02 15:41:10 +02:00
2017-10-20 13:32:10 +02:00
2018-02-07 14:09:25 +01:00
2018-06-18 17:04:56 +02:00
2018-03-05 10:30:15 +08:00
2016-10-26 08:29:00 -07:00
2017-03-01 00:09:28 +04:00
2018-02-15 16:54:57 +00:00
2018-03-13 18:06:06 +00:00
2018-04-06 11:28:31 +01:00
2018-03-06 10:19:05 +00:00
2017-09-05 22:34:40 +02:00
2018-07-02 15:41:10 +02:00
2018-05-04 08:27:53 +02:00
2017-03-22 19:24:34 +01:00
2018-02-09 05:05:11 +01:00
2017-07-17 15:41:30 -03:00
2018-07-02 15:41:10 +02:00
2018-06-29 12:22:28 +01:00
2018-06-15 07:42:55 -10:00
2018-05-30 13:19:14 -03:00
2018-06-29 12:22:28 +01:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00
2018-06-15 14:49:44 +02:00
2017-01-31 10:10:14 +11:00
2018-02-09 13:52:15 +01:00
2018-02-10 10:45:14 +03:00
2018-05-20 08:48:13 +03:00
2017-09-05 18:12:21 +02:00
2018-03-13 18:06:06 +00:00
2017-12-20 22:01:24 +08:00
2018-05-04 08:27:53 +02:00
2017-09-27 11:44:18 +01:00
2018-05-04 08:27:53 +02:00
2017-05-18 18:04:54 +02:00
2018-06-08 13:15:32 +01:00
2018-06-06 15:44:07 -04:00
2018-03-29 17:41:03 -04:00
2018-05-20 08:38:38 +03:00
2018-06-29 12:22:28 +01:00
2018-06-06 15:44:07 -04:00
2018-06-06 15:44:07 -04:00
2018-06-06 15:44:12 -04:00
2018-02-21 07:24:50 -05:00
2018-06-06 15:44:12 -04:00
2018-06-06 15:44:12 -04:00
2018-02-14 11:43:02 +01:00
2018-02-14 11:43:41 +01:00
2018-06-12 12:07:30 +02:00
2018-05-24 21:14:11 +03:00
2018-06-29 12:22:28 +01:00
2018-02-14 11:43:41 +01:00
2017-10-20 13:32:10 +02:00
2018-02-14 11:43:41 +01:00
2017-10-20 13:32:10 +02:00
2018-05-04 08:27:53 +02:00
2016-10-28 09:36:58 +11:00
2018-03-12 16:12:46 +01:00
2017-10-20 13:32:10 +02:00
2018-05-04 08:27:53 +02:00
2018-05-04 08:27:53 +02:00