Building certificate validity