def cert_from_instance(instance):
 if instance.signature:
  if instance.signature.key_info:
   return cert_from_key_info(instance.signature.key_info, ignore_age=True)
 return []

def cert_from_instance ( instance ) : if instance . signature : if instance . signature . key_info : return cert_from_key_info ( instance . signature . key_info , ignore_age = True ) return [ ]
find certificates that are part of an instance .