mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
keyinfo typing (#4552)
This commit is contained in:
parent
438567f58c
commit
b4d0e5b660
@ -101,7 +101,7 @@ class Cert(serializable.Serializable):
|
||||
return self._cert.serial_number
|
||||
|
||||
@property
|
||||
def keyinfo(self):
|
||||
def keyinfo(self) -> Tuple[str, int]:
|
||||
public_key = self._cert.public_key()
|
||||
if isinstance(public_key, rsa.RSAPublicKey):
|
||||
return "RSA", public_key.key_size
|
||||
|
Loading…
Reference in New Issue
Block a user