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:
parent
e6817b0c81
commit
90e7458136
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user