1
0

store invoices in a separate file, with their status

This commit is contained in:
ThomasV
2014-11-11 11:08:25 +01:00
parent 3bac924303
commit 036f96cf35
4 changed files with 140 additions and 112 deletions

View File

@@ -75,6 +75,9 @@ class X509(tlslite.X509):
self.subject = self.tbs.getComponentByName('subject')
self.extensions = self.tbs.getComponentByName('extensions') or []
def get_common_name(self):
return self.extract_names()['CN']
def get_issuer(self):
results = {'CN': None, 'OU': None,}
issuer = self.tbs.getComponentByName('issuer')