add validity information in readCertificateInfo