From 84dd8b6dfd167c29a38909f81aa68f7769929646 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Wed, 9 Nov 2022 18:43:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8=20=D0=B4?= =?UTF-8?q?=D0=B0=D1=82=D1=8B=20=D1=81=D0=B5=D1=80=D1=82=D0=B8=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D0=B0=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CryptoPro.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 ); }