Modification to handle multiple app certificates.