Same symptom here with a Canon TS5300 on Ubuntu 26.04 (cups 2.4.16-1ubuntu1.3,
cups-browsed 2.1.1-0ubuntu3). In my case the TLS 1.2 workaround does not help:
the printer rejects every TLS handshake, so the root cause is different. It
seems
it allows me to set up certificates, but doesn't actually allow IPPS to work.
What I found:
- The printer advertises both _ipp._tcp and _ipps._tcp. cups-browsed creates
an implicitclass:// queue and picks the IPPS endpoint.
- The printer sends handshake_failure (alert 40) immediately after the
ClientHello for every protocol version (TLS 1.0-1.3) and every individual
OpenSSL cipher at SECLEVEL=0, on ports 631 and 443:
```
openssl s_client -connect PRINTER:631 -tls1_2 -cipher 'ALL:@SECLEVEL=0'
ipptool -tv ipps://96BE280000.local:631/ipp/print get-printer-attributes.test
# -> "A TLS fatal alert has been received."
```
- The printer's web UI (Security > TLS) reported that no key/certificate
existed. Generating one did not change the behavior. I tried using
Firmware/Install Update, but it claims that 1.100 is the current version.
- Plain IPP works: ipp://96BE280000.local:631/ipp/print passes
get-printer-attributes, and a manually created driverless queue prints
fine:
```
lpadmin -p Canon_TS5300 -E -m everywhere \
-v 'dnssd://Canon%20TS5300%20series._ipp._tcp.local/?uuid=...'
```
- The job on the cups-browsed queue loops forever with only:
```
Read cups-browsed-dest-printer option: "5 NO_DEST_FOUND"
No suitable destination host found by cups-browsed, retrying later
Backend implicitclass returned status 7 (retry job immediately)
```
The GNOME printer dialog shows the address as "(null):631".
The printer is at fault for advertising IPPS it can't serve, but I didn't have
this problem printing to it from earlier Ubuntu releases or from Windows, and
I don't expect Canon to ship another firmware update for this model. It would
help a lot if CUPS handled this more gracefully:
1. When the IPPS endpoint fails the TLS handshake and the same device (same
UUID) also advertises plain IPP, fall back to IPP (or try IPP if IPPS is
unreachable), at least for link-local/.local destinations.
2. Log the actual reason (TLS handshake failure to host:port) in cups-browsed
and in the job's printer-state-message instead of only NO_DEST_FOUND /
"(null)", so users can diagnose this without packet-level debugging.
Upstream reports that look like the same issue:
https://github.com/OpenPrinting/cups-browsed/issues/71 (and duplicate #74).
** Bug watch added: github.com/OpenPrinting/cups-browsed/issues #71
https://github.com/OpenPrinting/cups-browsed/issues/71
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2164820
Title:
Print job never reaches the printer if it exposes IPPS and only speaks
TLS1.2
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/2164820/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs