X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fcertificate.py;h=8ca369d7c0135600f701da01c4295825ca950033;hb=9adeb00f508b934de95edc81574c87d75108a435;hp=3b725bdec7d431c8be48bcabb9ce18c0fc7a350a;hpb=bf7a59546861be79f5540553795d9a68014c6649;p=sfa.git diff --git a/sfa/trust/certificate.py b/sfa/trust/certificate.py index 3b725bde..8ca369d7 100644 --- a/sfa/trust/certificate.py +++ b/sfa/trust/certificate.py @@ -523,6 +523,9 @@ class Certificate: if self.is_signed_by_cert(trusted_cert): #print self.get_subject(), "is signed by a root" return + # if the public keys are the same then we are set + if self.is_pubkey(trusted_cert.get_pubkey()): + return # if there is no parent, then no way to verify the chain if not self.parent: