Меняем регистр отпечатка сертификата перед поиском в хранилище

This commit is contained in:
Artem Vasilev 2022-11-08 13:57:44 +03:00
parent 3b292bb8dc
commit b59ace27c7

View File

@ -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();