From 90e7458136a55230d5e26a357984c819cd6eea0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sat, 17 Oct 2015 20:53:46 +0300 Subject: [PATCH] Added textual representation for "IKE Intermediate" key usage flag --- certidude/wrappers.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/certidude/wrappers.py b/certidude/wrappers.py index 3dc0e07..fc1d7f8 100644 --- a/certidude/wrappers.py +++ b/certidude/wrappers.py @@ -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