We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62a9fc9 commit ee94ba2Copy full SHA for ee94ba2
sigstore/_internal/trustroot.py
@@ -300,7 +300,10 @@ def ct_keyring(self) -> CTKeyring:
300
301
def _get_ctfe_keys(self) -> Keyring:
302
"""Return the CTFE public keys contents."""
303
- ctfes: list[bytes] = list(self._get_tlog_keys(self.ctlogs, self.purpose))
+ if self.args and self.args.ctfe_pem:
304
+ ctfes = [self.args.ctfe_pem.read()]
305
+ else:
306
+ ctfes = list(self._get_tlog_keys(self.ctlogs, self.purpose))
307
if not ctfes:
308
raise MetadataError("CTFE keys not found in trusted root")
309
return Keyring(ctfes)
0 commit comments