OpenPrinting / OpenPrinting/ghostscript-printer-app
Server seemingly randomly chooses between multiple certificates for IPPS
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- PostScript
- Sterne
- 44
- Forks
- 16
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When printing to a ghostscript-printer-app server via IPPS from CUPS, the server seems to use one of three common names for the certificate:
- The mDNS hostname (
print.local) - The DNS hostname (
print.intra.my.domain) - The IPv6 ULA (
fd11:367d:c329:80:****:**ff:fe**:****)
It seems to choose randomly between the three, even for jobs sent from the same client shortly after each other./var/snap/ghostscript-printer-app/common/cups/sslcontains different certificates and keys for all three; even after deleting these, it still seems to choose one of the three hostnames at random and generates new certificates as they are used.
This means that only the first print job from each client will reliably work - on subsequent jobs, if a different certificate is sent, the client won't trust the certificate as it is different from the one sent with the first job.
I have worked around this by manually issuing a single certificate that is valid for all three hostnames and symlinking it to all three hostnames in /var/snap/ghostscript-printer-app/common/cups/ssl, but this surely isn't intended behaviour.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem, indem du aufeinanderfolgende IPPS-Aufträge von CUPS sendest, und untersuche /var/snap/ghostscript-printer-app/common/cups/ssl, einschließlich der Zertifikate und Schlüssel für die drei gemeldeten Namen. Vergleiche, welches Zertifikat der Server bei jeder Verbindung präsentiert, und ermittle das beabsichtigte Verhalten bei der Zertifikatsauswahl. Erledigt ist die Aufgabe, wenn die Zertifikatsauswahl bei aufeinanderfolgenden Aufträgen nicht mehr unerwartet inkonsistent ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Bereich
- networking, security
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100