Skip to content

Add Printer wizard keeps using broken ipps:// DNS-SD URI, driverless PPD generation fails #502

Open

Description

@yokotato

Problem

When adding a network printer that is discovered through DNS-SD and advertises both _ipp._tcp.local and _ipps._tcp.local, the Add Printer wizard ends up submitting the secure ipps:// URI to CUPS. On the device below, the IPPS endpoint rejects the TLS handshake with SSL alert 40 (handshake_failure). cups-filters' driverless PPD generation then fails and the wizard reports that the printer could not be added.

I also tried to force plain IPP by entering ipp://<printer-host>.local:631/ipp/print in the wizard, but the request that reached cupsd still contained the DNS-SD ipps:// URI, so the outcome did not change.

CUPS error log

E [20/Nov/2026:19:03:46] [CGI] Unable to create PPD file: Could not poll sufficient capability info from the printer (ipps://Canon%20TS7530%20series._ipps._tcp.local/, ipps://<printer-host>.local:631/ipp/print) via IPP!
E [20/Nov/2026:19:03:57] [CGI] Unable to create PPD file: Could not poll sufficient capability info from the printer (ipps://Canon%20TS7530%20series._ipps._tcp.local/, ipps://<printer-host>.local:631/ipp/print) via IPP!
E [20/Nov/2026:19:03:57] copy_model: empty PPD file
E [20/Nov/2026:19:03:57] [Client 48] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost/printers/Canon-TS7530-series) from localhost.

Expected behavior

If the user explicitly supplies an ipp:// device URI, that URI should be used for CUPS-Add-Modify-Printer and for driverless PPD generation. More generally, when a device advertises both ipp and ipps and the IPPS endpoint is unusable, the GUI should fall back to the working plain-IPP endpoint instead of failing the whole wizard.

Verification

Plain IPP works correctly from the same machine:

  • ipptool -4 ipp://192.168.0.62:631/ipp/print /usr/share/cups/ipptool/get-printer-attributes.test -> PASS, about 375 KB of attributes returned.
  • driverless ipp://<printer-host>.local:631/ipp/print -> valid 21 KB PPD, exit status 0.
  • driverless ipps://192.168.0.62:631/ipp/print -> exactly the same "Could not poll sufficient capability info ... via IPP!" error as the GUI.
  • OpenSSL: openssl s_client -connect 192.168.0.62:631 -> SSL alert number 40 (handshake failure) for both TLS 1.2 and TLS 1.3; no peer certificate is sent.

Adding the queue from the command line with the pre-generated PPD works:

driverless ipp://<printer-host>.local:631/ipp/print > /tmp/canon.ppd
sudo lpadmin -p Canon_TS7530 -E -v ipp://<printer-host>.local:631/ipp/print -P /tmp/canon.ppd
sudo lpadmin -d Canon_TS7530

Environment

  • Arch Linux (Omarchy), 2026-11-20
  • system-config-printer 1.5.18-7
  • CUPS 2.4.20-1, cups-filters 2.0.1-3, libcupsfilters 2.2.1.r32.gd49e9284-1
  • Printer: Canon TS7530 series, firmware 1.030 (already the latest available), AirPrint 1.8 / Mopria 2.0, advertises both _ipp._tcp and _ipps._tcp on port 631

Since the printer firmware is already current, this looks like an interoperability problem between the device's IPPS stack and recent OpenSSL/cups-filters. The GUI should not force the broken endpoint when a working plain-IPP endpoint is available.

Activity

  1. alexpevzner commented on Nov 20, 2026

    @alexpevzner
    Member

    Is it on the system-config-printer package that comes with the distro, or on the current master?

    The GUI should not force the broken endpoint when a working plain-IPP endpoint is available.

    PWG 5100.19-2015 dictates that:

    12.1.4 Preferring The "ipps" URI Scheme

    A Client SHOULD support the “ipps” URI scheme. A Client SHOULD prefer the “ipps” URI variant when available. A Client probing a Printer for the first time (§4.1.2 and §4.2) SHOULD first try using IPP OVER HTTPS; if the connection fails the Client MAY then try IPP over HTTP.

    However, we understand that firmware can be buggy, so the next version of system-config-printer will give user a choice between IPP and IPPS, as a troubleshooting option.

    For now, as a temporary workaround, I'd suggest to try to configure your printer so that _ipps._tcp service will not be advertised (probably by disabling IPP encryption at the printer side).

  2. yokotato commented on Nov 21, 2026

    @yokotato
    Author

    Hi, thanks for the detailed response.

    To answer your question: this is the distro package from Arch Linux's extra repository, system-config-printer 1.5.18-7 (built 2026-08-29), not a build from current master. Upstream configure.ac on master still reads 1.5.18, so the version strings match, but the binary I tested is the packaged one.

    You are right about PWG 5100.19-2015 section 12.1.4 - preferring ipps is the specified behavior, so I withdraw my wording that the GUI "should not force" it. What I think is worth improving is that the current wizard offers no user-visible way to choose the plain-IPP endpoint: even after I explicitly entered ipp://<printer-host>.local:631/ipp/print, the CUPS-Add-Modify-Printer request that reached cupsd still carried the DNS-SD ipps:// URI. I am glad to hear the next version will expose an IPP/IPPS troubleshooting choice. (The PPD generation failure itself happens in cups-filters' driverless, which returns the same error when called directly with an ipps:// URI.)

    Regarding your suggested workaround: I wanted to check whether this model exposes a setting to disable IPP encryption / stop advertising _ipps._tcp, but the printer is currently powered off or asleep (100% packet loss from this host), so I could not inspect its embedded web UI. I will try again once it is reachable and report back. For reference, the printer's mDNS TXT record for the secure service advertises TLS=1.2.

    In the meantime, the queue has been registered locally using the CLI workaround from the report: generate the PPD with driverless over plain IPP and add it with lpadmin -v ipp://... -P <ppd>. It is set as the default destination and the driver options were picked up correctly.

    Thanks again for the clarification and for considering the troubleshooting option.

  3. yokotato commented on Nov 21, 2026

    @yokotato
    Author

    Update: the printer is powered on again, so I properly checked your suggested workaround (disabling IPP encryption / stopping the _ipps._tcp advertisement in the printer settings) instead of leaving it unverified as in my previous comment.

    Unfortunately, the printer's embedded admin UI is HTTPS-only: http://192.168.0.62/ redirects to index.html, and the settings pages redirect to https://192.168.0.62/rui/login_manager.html?page=PAGE_AAP. Port 443 shows exactly the same TLS failure as the IPPS printing endpoint:

    $ openssl s_client -connect 192.168.0.62:443
    ...:error:0A000410:SSL routines:ssl3_read_bytes:ssl/tls alert handshake failure
    SSL alert number 40
    no peer certificate available
    
    $ curl -k https://192.168.0.62/rui/login_manager.html?page=PAGE_AAP
    curl: (35) TLS connect error: error:0A000410:SSL routines::ssl/tls alert handshake failure
    

    I retried with TLS 1.2 forced and with DEFAULT:@SECLEVEL=0; the result is the same. The printer's JS_MDL/model.js does expose g_ssl_cert_auto_create=1, but I cannot reach the settings page over HTTPS from this client to change it. So disabling the _ipps._tcp advertisement through the embedded web UI does not look feasible on this device; it would need to be done from the printer's own control panel, if such an option exists.

    For now the lpadmin + driverless plain-IPP workaround from the report remains the only working route here. I will add another update if I can verify a control-panel option or if the next system-config-printer version with the IPP/IPPS choice becomes available.

  4. yokotato commented on Nov 21, 2026

    @yokotato
    Author

    Update with information from Canon's official documentation, which I checked after the previous comment:

    • Canon's firmware FAQ (document 103993, updated 2026-10-19) lists 1.030 (2022-11-10) as the latest firmware for the TS7530; 1.020 (2022-08-31) is noted as adding RSA security support. The device is already on the latest firmware.
    • The TS7530 online manual page "Items that can be configured in a web browser" (AF108) lists only password and SSL/TLS certificate settings under [Security], plus a [CHMP settings] -> [Automatically redirect to HTTPS] checkbox under [System information and LAN settings]. It does not document an IPP/IPPS on/off switch for this model (Canon's business-machine Remote UI does have separate Use IPP / Use TLS checkboxes, but that is a different product line).
    • The manual page "Generate a server certificate" (AF114) states that when using SSL on an IPv6 network, a server certificate must be generated in the Remote UI: [Security] -> [SSL/TLS settings] -> [Generate key and certificate] -> [Generate self-signed certificate], with SHA256 and a 2048-bit key. A missing or unusable certificate is a plausible explanation for the printer answering TLS with alert 40 and no peer certificate.

    However, the Remote UI login on this device is only reachable over HTTPS (the HTTP pages redirect to https://.../rui/login_manager.html) and port 443 fails with the same handshake alert, so those settings cannot be reached from this Linux client. The suggested "disable IPP encryption / stop advertising _ipps._tcp" workaround may therefore only be possible from the printer's control panel or with Canon's Windows utility, not through the embedded web UI. I will report back if I can verify a control-panel option.

  5. jmass-ggg commented on Nov 25, 2026

    @jmass-ggg

    Hi @alexpevzner,

    I'd be interested in helping with the device URI selection behavior described in this issue.

    My proposed approach is to:

    • Reproduce the discovery behavior using a device advertising both IPP and IPPS services.
    • Trace how the wizard handles explicitly entered device URIs.
    • Investigate whether the selected URI is overwritten during printer discovery or PPD generation.
    • Preserve the default preference for IPPS while respecting an explicit user choice.
    • Add regression tests covering both URI schemes.

    I understand that an IPP/IPPS troubleshooting option is already planned. Is there a separate part of this issue that I could work on without duplicating existing development? If so, could you assign that scope to me?

    Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions