Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sbsign doesn't work with old key and openssl3 provider #79

Open
alxchk opened this issue Jun 18, 2023 · 2 comments
Open

sbsign doesn't work with old key and openssl3 provider #79

alxchk opened this issue Jun 18, 2023 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@alxchk
Copy link

alxchk commented Jun 18, 2023

Old - openssl 1.1.1 + tpm2tss engine

# /usr/bin/sbsign --key /etc/secureboot/tpm/secureboot.key --cert /etc/secureboot/tpm/secureboot.crt --output test vmlinuz-6.3.2 
Can't load key from file '/etc/secureboot/tpm/secureboot.key'

New - openssl 3.0.9 + tpm2 provider, enabled in openssl.cnf

# /usr/bin/sbsign --key /etc/secureboot/tpm/secureboot.key --cert /etc/secureboot/tpm/secureboot.crt --output test vmlinuz-6.3.2 
error in key/certificate chain
40C77854147F0000:error:03000072:digital envelope routines:X509_PUBKEY_get0:decode error:../openssl-3.0.9/crypto/x509/x_pubkey.c:458:
40C77854147F0000:error:0580006C:x509 certificate routines:X509_check_private_key:unable to get certs public key:../openssl-3.0.9/crypto/x509/x509_cmp.c:399:
40C77854147F0000:error:1080007F:PKCS7 routines:PKCS7_sign_add_signer:private key does not match certificate:../openssl-3.0.9/crypto/pkcs7/pk7_smime.c:125:
@gotthardp gotthardp added the help wanted Extra attention is needed label Oct 7, 2023
@gotthardp
Copy link
Contributor

Well, the sbsign may be missing some OpenSSL 3.x support. This is not necessarily our fault.

@mittwerk
Copy link

mittwerk commented Mar 6, 2024

Yeah, I have the same issue and wrote it here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants