Skip to content

Commit a0e503a

Browse files
committed
Add cert when using phpseclib
1 parent dc94e45 commit a0e503a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/XMLSecurityKey.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ public function loadKey($key, $isFile=false, $isCert = false)
395395
default:
396396
throw new Exception('Unknown type');
397397
}
398+
} elseif ($this->cryptParams['library'] === 'phpseclib') {
399+
if ($isCert) {
400+
$this->X509Thumbprint = self::getRawThumbprint($this->key);
401+
}
398402
}
399403
}
400404

0 commit comments

Comments
 (0)