set_cert_times
if (!set_cert_times(ret, startdate, enddate, days, 0))
int set_cert_times(X509 *x, const char *startdate, const char *enddate,
if (!set_cert_times(new_x509, not_before, not_after, days, 1))
if (!preserve_dates && !set_cert_times(x, not_before, not_after, days, 1))