Skip to content

efikeygen: handle tokens that do not support trust - #138

Merged
vathpela merged 1 commit into
rhboot:mainfrom
vathpela:internal-trust-pr
Aug 6, 2026
Merged

efikeygen: handle tokens that do not support trust#138
vathpela merged 1 commit into
rhboot:mainfrom
vathpela:internal-trust-pr

Conversation

@vathpela

@vathpela vathpela commented Aug 6, 2026

Copy link
Copy Markdown
Member

When generating keys on a token efikeygen fails with the following error: efikeygen.c:add_trust:104: could not set trust for certificate

This happens because CERT_ChangeCertTrust tries to write trust to the actual token first and then to the internal token that is not authenticated yet.

Fix this by authenticating internal token and trying again.

When generating keys on a token efikeygen fails with the following error:
efikeygen.c:add_trust:104: could not set trust for certificate

This happens because CERT_ChangeCertTrust tries to write trust to the
actual token first and then to the internal token that is not
authenticated yet.

Fix this by authenticating internal token and trying again.

Signed-off-by: Peter Jones <pjones@redhat.com>
@vathpela
vathpela marked this pull request as ready for review August 6, 2026 15:29
@vathpela
vathpela merged commit 92a3561 into rhboot:main Aug 6, 2026
6 checks passed
@vathpela
vathpela deleted the internal-trust-pr branch August 6, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants