git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
working towards supporting speaks for credentials
[sfa.git]
/
sfa
/
trust
/
certificate.py
diff --git
a/sfa/trust/certificate.py
b/sfa/trust/certificate.py
index
59ec442
..
9e5a36e
100644
(file)
--- a/
sfa/trust/certificate.py
+++ b/
sfa/trust/certificate.py
@@
-463,8
+463,12
@@
class Certificate:
# Get the issuer name
def get_issuer(self, which="CN"):
# Get the issuer name
def get_issuer(self, which="CN"):
- x = self.cert.get_issuer()
- return getattr(x, which)
+ if self.cert:
+ x = self.cert.get_issuer()
+ subject = getattr(x, which)
+ else:
+ subject = ""
+ return subject
##
# Set the subject name of the certificate
##
# Set the subject name of the certificate