Exemplo n.º 1
0
def check_core_cert(testcase, as_, trc):
    """
    Check that the AS's core certificate can be verified with the TRC.
    """
    testcase.assertIsNotNone(as_.core_certificate)
    cert = Certificate(as_.core_certificate)
    isd_as = as_.isd_as_str()
    cert.verify(isd_as, TRC(trc).core_ases[isd_as]['OnlineKey'])
Exemplo n.º 2
0
 def _check_core_cert(self, as_, trc):
     self.assertIsNotNone(as_.core_certificate)
     cert = Certificate(as_.core_certificate)
     isd_as = as_.isd_as_str()
     cert.verify(isd_as, TRC(trc).core_ases[isd_as]['OnlineKey'])