|
@@ -38,6 +38,20 @@ exports available: 1
|
|
|
size: 67108864
|
|
|
min block: 1
|
|
|
|
|
|
+== check TLS fail over TCP with mismatched hostname ==
|
|
|
+qemu-img: Could not open 'driver=nbd,host=localhost,port=PORT,tls-creds=tls0': Certificate does not match the hostname localhost
|
|
|
+qemu-nbd: Certificate does not match the hostname localhost
|
|
|
+
|
|
|
+== check TLS works over TCP with mismatched hostname and override ==
|
|
|
+image: nbd://localhost:PORT
|
|
|
+file format: nbd
|
|
|
+virtual size: 64 MiB (67108864 bytes)
|
|
|
+disk size: unavailable
|
|
|
+exports available: 1
|
|
|
+ export: ''
|
|
|
+ size: 67108864
|
|
|
+ min block: 1
|
|
|
+
|
|
|
== check TLS with different CA fails ==
|
|
|
qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': The certificate hasn't got a known issuer
|
|
|
qemu-nbd: The certificate hasn't got a known issuer
|
|
@@ -55,6 +69,8 @@ qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': F
|
|
|
qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': Failed to read option reply: Cannot read from TLS channel: Software caused connection abort
|
|
|
|
|
|
== final server log ==
|
|
|
+qemu-nbd: option negotiation failed: Failed to read opts magic: Cannot read from TLS channel: Software caused connection abort
|
|
|
+qemu-nbd: option negotiation failed: Failed to read opts magic: Cannot read from TLS channel: Software caused connection abort
|
|
|
qemu-nbd: option negotiation failed: Verify failed: No certificate was found.
|
|
|
qemu-nbd: option negotiation failed: Verify failed: No certificate was found.
|
|
|
qemu-nbd: option negotiation failed: TLS x509 authz check for DISTINGUISHED-NAME is denied
|