Fix mising ssh cert type

This commit is contained in:
Benjamin Collet 2025-04-23 08:17:16 +02:00
parent 8dcd79d427
commit fdb4926260
Signed by: bcollet
SSH key fingerprint: SHA256:8UJspOIcCOS+MtSOcnuq2HjKFube4ox1s/+A62ixov4

View file

@ -60,6 +60,10 @@ class cert:
self.alg = cert_alg
if cert.type == serialization.SSHCertificateType.USER:
self.type = "User"
elif cert.type == serialization.SSHCertificateType.HOST:
self.type = "Host"
else:
self.type = "Unknown"
self.key_id = cert.key_id
self.principals = cert.valid_principals
self.not_after = cert.valid_before