ef set certificate validity