Below is the output of remote-viewer with debug mode on for Spice. I'm using the Shell Script suggested in the Proxmox wiki:
note it says the CA is null, not sure if that is concerning.
Also, I noticed in the files generated by the node ( the one with all the connection details etc ), the Certificate has a bunch of \n newline characters included, These are present in VIM, Sublime and cat on the commandline. Not sure if that could cause an issue with remote-viewer parsing the ca?
sebastiaan@sebarch:~|⇒ ./spiceopen.sh -u root@pam -p <MYPASSWORD> 102 <nodename> <node-ip>
AUTH OK
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:286 New session (compiled from package spice-gtk 0.34)
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:290 Supported channels: main, display, inputs, cursor, playback, record, smartcard, usbredir, webdav
(remote-viewer:6038): GSpice-DEBUG: usb-device-manager.c:509 auto-connect filter set to 0x03,-1,-1,-1,0|-1,-1,-1,-1,1
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:1743 no migration in progress
(remote-viewer:6038): GSpice-DEBUG: spice-channel.c:146 main-1:0: spice_channel_constructed
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:2246 main-1:0: new main channel, switching
(remote-viewer:6038): GSpice-DEBUG: spice-gtk-session.c:1107 Changing main channel from (nil) to 0x561b67f9c4f0
(remote-viewer:6038): GSpice-DEBUG: usb-device-manager.c:974 device added 1044:7a03 (0x561b67f6b410)
(remote-viewer:6038): GSpice-DEBUG: usb-device-manager.c:974 device added 0665:6000 (0x561b67f6c310)
(remote-viewer:6038): GSpice-DEBUG: usb-device-manager.c:974 device added 1532:0037 (0x561b67f728f0)
(remote-viewer:6038): GSpice-DEBUG: spice-channel.c:2688 main-1:0: Open coroutine starting 0x561b67f9c4f0
(remote-viewer:6038): GSpice-DEBUG: spice-channel.c:2529 main-1:0: Started background coroutine 0x561b67f9c3a0
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:2180 Missing port value, not attempting unencrypted connection.
(remote-viewer:6038): GSpice-DEBUG: spice-channel.c:2555 main-1:0: trying with TLS port
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:2192 main-1:0: Using TLS, port 61001
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:2140 (with proxy htt p://thebox:3128)
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:2064 proxy lookup ready
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:2047 main-1:0: connecting 0x7f5e7e13aab0...
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:2031 main-1:0: connect ready
(remote-viewer:6038): GSpice-DEBUG: spice-channel.c:2451 main-1:0: Load CA,
file: (null), data: 0x561b67f75200
(remote-viewer:6038): GSpice-WARNING **: main-1:0: SSL_connect: error:00000001:lib(0):func(0):reason(1)
(remote-viewer:6038): GSpice-DEBUG: spice-channel.c:2665 main-1:0: Coroutine exit main-1:0
(remote-viewer:6038): GSpice-DEBUG: spice-channel.c:2858 main-1:0: reset
(remote-viewer:6038): GSpice-DEBUG: channel-main.c:1539 agent connected: no
(remote-viewer:6038): GSpice-DEBUG: spice-channel.c:2800 main-1:0: channel reset
(remote-viewer:6038): GSpice-DEBUG: spice-channel.c:2410 main-1:0: Delayed unref channel 0x561b67f9c4f0
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:1937 session: disconnecting 0
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:286 New session (compiled from package spice-gtk 0.34)
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:290 Supported channels: main, display, inputs, cursor, playback, record, smartcard, usbredir, webdav
(remote-viewer:6038): GSpice-DEBUG: usb-device-manager.c:509 auto-connect filter set to 0x03,-1,-1,-1,0|-1,-1,-1,-1,1
(remote-viewer:6038): GSpice-DEBUG: spice-session.c:1937 session: disconnecting 0
Hoping someone can help. This has really stumped me.
Edit:
Here is a 'cat' of the connection file before it's sent to remote-viewer - note the '\n' throughout the certificate ( me thinks this could be the issue ).
[virt-viewer]
type=spice
delete-this-file=1
password=<redacted>
proxy=
http://thebox:3128
ca=-----BEGIN CERTIFICATE-----\nMIIFtzCCA5+gAwIBAgIJAM1n+dFNDPuVM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2pym+2w9yvri1eyyKJQ8K\nTVtelCzRW70kaY8rtvyn4clK25fu8nrIW57Ld+driDcCAwEAAaNQME4wHQYDVR0O\nBBYEFJVXUuFENg+SJ/7FP9UWWjO0v+HdMB8GA1UdIwQYMBaAFJVXUuFENg+SJ/7F\nP9UWWjO0v+HdMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggIBAK61oDJA\n4AcaHXCJoBhuVHSZq69hrBKQpPXPST1gydZmNfkRN99/YpFFFpKyczH8KnkGDP3g\nn9HGytUljKKrVFTfIl6Xm1VO+juuVs64eeDX9Iq4JEBEH2XLPNQ02tax3qFXJiC8\n7AuqK/rCToqvPHb6m3S79jTQy1ZDe1xQQHfe6SS857XSDLt0WQh7YermMwLDdVPR\nehtKuI7sbJsNuXc7SsteTliVC4fqWhSwO616xbUqmJpH4OEIhxaig1wxNgcxdQz+\nOcfHyc9H5psUMSwqcP7bbXc6rBJ17APcj4eFxZqS2gAdnSy1wERCn245CT/s282K\nmsisSIEjP5AuZtC595hXNTM0DzywK9TTiQcDYv2JLIFyh1i/P711+Mbk4Q5Jcd+B\nErTuJoms3SX+/iBL+Qa2R0Om/hkWh/pfqBQ9FFUl15KIAFgZzJ4G2j6NzoP1MR1l\n5JrpWguh5FwNRLQUEcG4sj2hVTDnUejT8sa02sApHqMrzHAkBzNYxWIDmpT4TxXI\nidHahbl93YtFR0n7haQAPKo5CVBgOLDGXAGDpwgcjdmyYEDVoRMQRMcTfukmPsWT\nWQRNihR76isxybMYcJr0vN3L6CGTOddDEV/mHHLdWozqhJd4OytC1xUUTD+3w9Ry\nf62U874U2O1/2X9EC+Wwk9vEld63J6i9KL2P\n-----END CERTIFICATE-----\n
release-cursor=Ctrl+Alt+R
title=VM 102 - Ubuntu16.04
secure-attention=Ctrl+Alt+Ins
tls-port=61001
host-subject=OU=PVE Cluster Node,O=Proxmox Virtual Environment,CN=thebox.sebastiaan-stoffels.com
host=pvespiceproxy:5aaf47f4:102:thebox::b21cff2011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E9I3gnoiJeyFL6w0WHtJ/HNtcJYnsGVq+io41wV+GU24QECRzMj7
yvGme6+vDsefJiqV9Q7/9TmttcUUuU2s8ht5ccjCS+h2pym+2w9yvri1eyyKJQ8K
TVtelCzRW70kaY8rtvyn4clK25fu8nrIW57Ld+driDcCAwEAAaNQME4wHQYDVR0O
BBYEFJVXUuFENg+SJ/7FP9UWWjO0v+HdMB8GA1UdIwQYMBaAFJVXUuFENg+SJ/7F
P9UWWjO0v+HdMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQELBQADggIBAK61oDJA
4AcaHXCJoBhuVHSZq69hrBKQpPXPST1gydZmNfkRN99/YpFFFpKyczH8KnkGDP3g
n9HGytUljKKrVFTfIl6Xm1VO+juuVs64eeDX9Iq4JEBEH2XLPNQ02tax3qFXJiC8
7AuqK/rCToqvPHb6m3S79jTQy1ZDe1xQQHfe6SS857XSDLt0WQh7YermMwLDdVPR
ehtKuI7sbJsNuXc7SsteTliVC4fqWhSwO616xbUqmJpH4OEIhxaig1wxNgcxdQz+
OcfHyc9H5psUMSwqcP7bbXc6rBJ17APcj4eFxZqS2gAdnSy1wERCn245CT/s282K
msisSIEjP5AuZtC595hXNTM0DzywK9TTiQcDYv2JLIFyh1i/P711+Mbk4Q5Jcd+B
ErTuJoms3SX+/iBL+Qa2R0Om/hkWh/pfqBQ9FFUl15KIAFgZzJ4G2j6NzoP1MR1l
5JrpWguh5FwNRLQUEcG4sj2hVTDnUejT8sa02sApHqMrzHAkBzNYxWIDmpT4TxXI
idHahbl93YtFR0n7haQAPKo5CVBgOLDGXAGDpwgcjdmyYEDVoRMQRMcTfukmPsWT
WQRNihR76isxybMYcJr0vN3L6CGTOddDEV/mHHLdWozqhJd4OytC1xUUTD+3w9Ry
f62U874U2O1/2X9EC+Wwk9vEld63J6i9KL2P
-----END CERTIFICATE-----
The question is - why is it doing this? And How can I get Proxmox to output the file without these spurious '\n's ( if this is indeed the problem )
Edit: tried turning all the \n into actual newlines, but it complains about invalid file. Also tried stripping all newlines, and same thing ( using sed and tr ) The file looked correct, but remote-viewer no like it.
Back to square 1.