fix certificate validity encoding