[php-src] PR #20330: Allow an exact date/time range for validity when signing a CSR
| From: | StephenWall | Date: | Wed, 29 Oct 2025 15:48:01 +0000 |
| Subject: | [php-src] PR #20330: Allow an exact date/time range for validity when signing a CSR | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33846@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20330
Author: StephenWall
This changes the
days parameter of openssl_csr_sign() to a
validity parameter, which can be either an integer specifying the number of days the
certificate is to be valid for (compatible with current usage), or it can be an array of two integer
or string values, representing the notBefore and notAfter times to use for the certificate. If they
are integers or numeric strings, they are to be a time_t value. If they are non-numeric strings,
they are to be an ASN.1 timestamp (YYMMDDHHMMSSZ or YYYYMMDDHHMMSSZ).