mirror of
https://github.com/crypto-pro-web/crypto-pro-php.git
synced 2025-01-18 19:25:51 +03:00
Меняем регистр отпечатка сертификата перед поиском в хранилище
This commit is contained in:
parent
3b292bb8dc
commit
b59ace27c7
@ -180,6 +180,7 @@ class CryptoPro
|
|||||||
*/
|
*/
|
||||||
public static function getCertificate(string $thumbprint)
|
public static function getCertificate(string $thumbprint)
|
||||||
{
|
{
|
||||||
|
$thumbprint = mb_strtoupper($thumbprint);
|
||||||
$thumbprint = trim($thumbprint);
|
$thumbprint = trim($thumbprint);
|
||||||
|
|
||||||
if (!$thumbprint)
|
if (!$thumbprint)
|
||||||
@ -712,6 +713,9 @@ class CryptoPro
|
|||||||
|
|
||||||
protected static function getCadesCertificateFromStore(string $thumbprint, int $storeLocation, string $storeName = 'My')
|
protected static function getCadesCertificateFromStore(string $thumbprint, int $storeLocation, string $storeName = 'My')
|
||||||
{
|
{
|
||||||
|
$thumbprint = mb_strtoupper($thumbprint);
|
||||||
|
$thumbprint = trim($thumbprint);
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$cadesStore = new \CPStore();
|
$cadesStore = new \CPStore();
|
||||||
|
Loading…
Reference in New Issue
Block a user