keyinfo typing (#4552)

This commit is contained in:
Alexander Prinzhorn 2021-04-07 18:22:54 +02:00 committed by GitHub
parent 438567f58c
commit b4d0e5b660
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ class Cert(serializable.Serializable):
return self._cert.serial_number return self._cert.serial_number
@property @property
def keyinfo(self): def keyinfo(self) -> Tuple[str, int]:
public_key = self._cert.public_key() public_key = self._cert.public_key()
if isinstance(public_key, rsa.RSAPublicKey): if isinstance(public_key, rsa.RSAPublicKey):
return "RSA", public_key.key_size return "RSA", public_key.key_size