mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
use max possible certificate age for user identities
This commit is contained in:
parent
8c6627cfb8
commit
c1f087e5ec
1 changed files with 7 additions and 3 deletions
|
|
@ -10,8 +10,8 @@ use \OpenSSLCertificate;
|
|||
|
||||
class Gemini extends \Yggverse\Yoda\Abstract\Model\Identity
|
||||
{
|
||||
// Update defaults
|
||||
public const CSR_SIGN_DAYS = 365 * 1965; // @TODO
|
||||
// Init defaults
|
||||
public const CSR_SIGN_DATE = '99991231235959Z';
|
||||
|
||||
// Init identity variables
|
||||
protected OpenSSLAsymmetricKey $_key;
|
||||
|
|
@ -32,7 +32,11 @@ class Gemini extends \Yggverse\Yoda\Abstract\Model\Identity
|
|||
),
|
||||
$this->_key,
|
||||
null,
|
||||
self::CSR_SIGN_DAYS
|
||||
intval( // use max possible certificate age for user identities
|
||||
floor(
|
||||
(strtotime(self::CSR_SIGN_DATE) - time()) / (60 * 60 * 24)
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue