[PATCH 17/23] certs: Introduce search_trusted_key()