Corretly identify certificates expiring soon