distinguish between revoked and expired certificates