From b59ace27c7ba0a2e6e913f771d5c3dc9d2f12141 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Tue, 8 Nov 2022 13:57:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BD=D1=8F=D0=B5=D0=BC=20=D1=80?= =?UTF-8?q?=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=20=D0=BE=D1=82=D0=BF=D0=B5?= =?UTF-8?q?=D1=87=D0=B0=D1=82=D0=BA=D0=B0=20=D1=81=D0=B5=D1=80=D1=82=D0=B8?= =?UTF-8?q?=D1=84=D0=B8=D0=BA=D0=B0=D1=82=D0=B0=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=20=D0=BF=D0=BE=D0=B8=D1=81=D0=BA=D0=BE=D0=BC=20=D0=B2=20?= =?UTF-8?q?=D1=85=D1=80=D0=B0=D0=BD=D0=B8=D0=BB=D0=B8=D1=89=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/CryptoPro.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CryptoPro.php b/src/CryptoPro.php index f975f0e..a44a274 100755 --- a/src/CryptoPro.php +++ b/src/CryptoPro.php @@ -180,6 +180,7 @@ class CryptoPro */ public static function getCertificate(string $thumbprint) { + $thumbprint = mb_strtoupper($thumbprint); $thumbprint = trim($thumbprint); if (!$thumbprint) @@ -712,6 +713,9 @@ class CryptoPro protected static function getCadesCertificateFromStore(string $thumbprint, int $storeLocation, string $storeName = 'My') { + $thumbprint = mb_strtoupper($thumbprint); + $thumbprint = trim($thumbprint); + try { $cadesStore = new \CPStore();