mirror of
https://github.com/crypto-pro-web/crypto-pro-php.git
synced 2025-01-18 11:25:50 +03:00
Исправление ошибки проверки даты сертификата
This commit is contained in:
parent
84879f7a1e
commit
84dd8b6dfd
@ -691,16 +691,18 @@ class CryptoPro
|
||||
|
||||
if ($validOnly === true)
|
||||
{
|
||||
$currentDateTime = (new \DateTime())->format('YmdHis.u') . 'Z';
|
||||
|
||||
$cadesCertificates = $cadesCertificates->Find(
|
||||
CAPICOM_CERTIFICATE_FIND_TYPE::TIME_VALID,
|
||||
'',
|
||||
$currentDateTime,
|
||||
true
|
||||
);
|
||||
|
||||
$cadesCertificates = $cadesCertificates->Find(
|
||||
CAPICOM_CERTIFICATE_FIND_TYPE::EXTENDED_PROPERTY,
|
||||
CAPICOM_PROPID::KEY_PROV_INFO,
|
||||
true
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user