1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

Added textual representation for "IKE Intermediate" key usage flag

This commit is contained in:
Lauri Võsandi 2015-10-17 20:53:46 +03:00
parent e6817b0c81
commit 90e7458136

View File

@ -209,7 +209,11 @@ class CertificateBase:
def iterate():
for key, value, data in self.extensions:
if key == "keyUsage" or key == "extendedKeyUsage":
yield value
for bit in value.split(", "):
if bit == "1.3.6.1.5.5.8.2.2":
yield "IKE Intermediate"
else:
yield bit
return ", ".join(iterate())
@property