mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-23 00:25:18 +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():
|
def iterate():
|
||||||
for key, value, data in self.extensions:
|
for key, value, data in self.extensions:
|
||||||
if key == "keyUsage" or key == "extendedKeyUsage":
|
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())
|
return ", ".join(iterate())
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user