Package: ca-certificates
Version: 20200601
Severity: normal

Dear Maintainer,

when installing certificates into /usr/share/ca-certificates with a
folder starting with a 1 the postinst
script mangles and disables the custom certificates.

The problem is this sed in the postinst

          (echo $CERTS_ENABLED | tr ',' '\n'; \
           echo $CERTS_AVAILABLE | tr ',' '\n') | \
            sed -e 's/^[[:space:]]*//' | \
            sort | uniq -c | \
            sed -e 's/^[[:space:]]*2[[:space:]]*//' \
                -e 's/^[[:space:]]*1[[:space:]]*/!/' \
            >> /etc/ca-certificates.conf

-e 's/^[[:space:]]*1[[:space:]]*/!/' matches the 1and1 folder and thus
converts it to
!and1/cert.crt e.g.:

$ echo -e "1and1/ca.crt\n1and1/ca.crt" | uniq -c | sed -e
's/^[[:space:]]*//' | sed -e 's/^[[:space:]]*2[[:space:]]*//' -e
's/^[[:space:]]*1[[:space:]]*/!/'
!and1/ca.crt

Probably the sed should use -e 's/^[[:space:]]*1[[:space:]]\+/!/' or
even better use better ways to create the difference e.g.
https://stackoverflow.com/a/13038235

-- System Information:
Debian Release: bullseye/sid

-- 
Julian Taylor

System Administrator
Automation Services

1&1 Mail & Media Development & Technology GmbH | Brauerstraße 48 | 76135 
Karlsruhe | Germany
Phone: +49 721 91374 6334
E-Mail: julian.tay...@1und1.de | Web: www.1und1.de

Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 5452

Geschäftsführer: Alexander Charles, Thomas Ludwig, Jan Oetjen, Sascha Vollmer


Member of United Internet

Diese E-Mail kann vertrauliche und/oder gesetzlich geschützte Informationen 
enthalten. Wenn Sie nicht der bestimmungsgemäße Adressat sind oder diese E-Mail 
irrtümlich erhalten haben, unterrichten Sie bitte den Absender und vernichten 
Sie diese E-Mail. Anderen als dem bestimmungsgemäßen Adressaten ist untersagt, 
diese E-Mail zu speichern, weiterzuleiten oder ihren Inhalt auf welche Weise 
auch immer zu verwenden.
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient of this e-mail, you are hereby notified that saving, 
distribution or use of the content of this e-mail in any way is prohibited. If 
you have received this e-mail in error, please notify the sender and delete the 
e-mail.

Reply via email to