OpenPrinting / OpenPrinting/ghostscript-printer-app

Server seemingly randomly chooses between multiple certificates for IPPS

Aperta
#27 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
PostScript
Stelle
44
Fork
16
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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/ssl contains 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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproduci il problema inviando lavori IPPS successivi da CUPS e ispeziona /var/snap/ghostscript-printer-app/common/cups/ssl, inclusi i certificati e le chiavi per i tre nomi segnalati. Confronta quale certificato presenta il server a ogni connessione e determina il comportamento previsto per la selezione del certificato. L'attività è completata quando la scelta del certificato non è più inaspettatamente incoerente tra lavori successivi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Ambito
networking, security
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Attiva
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.