tools/certs: Add print-cert-tbs-hash.shAdd a new helper print-cert-tbs-hash.sh to generate a TBSCertificatehash from a given certificate. This is useful to generate a blacklistkey description us
tools/certs: Add print-cert-tbs-hash.shAdd a new helper print-cert-tbs-hash.sh to generate a TBSCertificatehash from a given certificate. This is useful to generate a blacklistkey description used to forbid loading a specific certificate in akeyring, or to invalidate a certificate provided by a PKCS#7 file.This kind of hash formatting is required to populate the file pointedout by CONFIG_SYSTEM_BLACKLIST_HASH_LIST, but only the kernel code wasavailable to understand how to effectively create such hash.Cc: David Howells <[email protected]>Cc: David Woodhouse <[email protected]>Cc: Eric Snowberg <[email protected]>Signed-off-by: Mickaël Salaün <[email protected]>Reviewed-by: Jarkko Sakkinen <[email protected]>Link: https://lore.kernel.org/r/[email protected]Signed-off-by: Jarkko Sakkinen <[email protected]>
show more ...