mirror of
				https://github.com/crypto-pro-web/crypto-pro-php.git
				synced 2025-10-31 02:13:23 +03:00 
			
		
		
		
	Меняем регистр отпечатка сертификата перед поиском в хранилище
This commit is contained in:
		
							parent
							
								
									3b292bb8dc
								
							
						
					
					
						commit
						b59ace27c7
					
				| @ -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(); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user