diff --git a/src/CryptoPro.php b/src/CryptoPro.php index a036eb2..d14a507 100755 --- a/src/CryptoPro.php +++ b/src/CryptoPro.php @@ -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 ); }