Wrapper for certificate reading