From 9adeb00f508b934de95edc81574c87d75108a435 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 11 Aug 2009 03:23:08 +0000 Subject: [PATCH] in verify_chain, if the check if public keys are the same --- sfa/trust/certificate.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.47.0