git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a3a2b8a
)
checking in some debugging statements, will remove them later
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 11 Aug 2009 19:43:31 +0000
(19:43 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 11 Aug 2009 19:43:31 +0000
(19:43 +0000)
sfa/trust/certificate.py
patch
|
blob
|
history
diff --git
a/sfa/trust/certificate.py
b/sfa/trust/certificate.py
index
3b725bd
..
9480f7a
100644
(file)
--- a/
sfa/trust/certificate.py
+++ b/
sfa/trust/certificate.py
@@
-516,10
+516,14
@@
class Certificate:
# until a certificate is found that is signed by a trusted root.
# TODO: verify expiration time
# until a certificate is found that is signed by a trusted root.
# TODO: verify expiration time
-
+ print "====Verify Chain====="
# if this cert is signed by a trusted_cert, then we are set
for trusted_cert in trusted_certs:
# if this cert is signed by a trusted_cert, then we are set
for trusted_cert in trusted_certs:
+ print "***************"
# TODO: verify expiration of trusted_cert ?
# TODO: verify expiration of trusted_cert ?
+ print "CLIENT CERT", self.dump()
+ print "TRUSTED CERT", trusted_cert.dump()
+ print "Client is signed by Trusted?", self.is_signed_by_cert(trusted_cert)
if self.is_signed_by_cert(trusted_cert):
#print self.get_subject(), "is signed by a root"
return
if self.is_signed_by_cert(trusted_cert):
#print self.get_subject(), "is signed by a root"
return