]> git.ipfire.org Git - thirdparty/systemd.git/commit
ukify: ellipsize CN to not exceed maximum length
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Dec 2024 13:42:23 +0000 (14:42 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 2 Dec 2024 16:55:57 +0000 (16:55 +0000)
commit544df97b4102069b59dc8f9014bab645c4fd7690
tree0431897e5e31c5a6c3e459796cbbaef7998d6139
parent703b1b7f243f0faabfcc4968712d8beb65a951a8
ukify: ellipsize CN to not exceed maximum length

Currently the generation of the certificate fails if len(fqdn) >= 43.
Ellipsize the fqdn to let the tests pass in all cases.

Fixes https://github.com/systemd/systemd/issues/34581.
src/ukify/ukify.py