diff --git a/src/ukify/test/test_ukify.py b/src/ukify/test/test_ukify.py index 7db7c6ba61a..0a0a9024e96 100755 --- a/src/ukify/test/test_ukify.py +++ b/src/ukify/test/test_ukify.py @@ -859,7 +859,7 @@ def test_key_cert_generation(tmp_path): '-noout', ], text = True) assert 'Certificate' in out - assert 'Issuer: CN = SecureBoot signing key on host' in out + assert re.search('Issuer: CN\s?=\s?SecureBoot signing key on host', out) if __name__ == '__main__': sys.exit(pytest.main(sys.argv)) diff --git a/test/units/testsuite-04.journal-remote.sh b/test/units/testsuite-04.journal-remote.sh index b7d9cbd81ba..c7b99b11fbb 100755 --- a/test/units/testsuite-04.journal-remote.sh +++ b/test/units/testsuite-04.journal-remote.sh @@ -109,6 +109,11 @@ L = Brno O = Foo OU = Bar CN = Test CA + +[ v3_ca ] +subjectKeyIdentifier = hash +authorityKeyIdentifier = keyid:always,issuer:always +basicConstraints = CA:true EOF cat >/run/systemd/remote-pki/client.conf </run/systemd/remote-pki/ca.srl # Generate a client key and signing request openssl req -nodes -newkey rsa:2048 -sha256 \