mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-24 11:05:30 +00:00
X509: signing with pw protected PSS keys yielded errors
This commit is contained in:
parent
c98b163e76
commit
84f07cc9cb
@ -2615,7 +2615,7 @@ class X509
|
||||
if ($signatureAlgorithm != 'id-RSASSA-PSS') {
|
||||
$signatureAlgorithm = ['algorithm' => $signatureAlgorithm];
|
||||
} else {
|
||||
$r = PSS::load($issuer->privateKey->toString('PSS'));
|
||||
$r = PSS::load($issuer->privateKey->withPassword()->toString('PSS'));
|
||||
$signatureAlgorithm = [
|
||||
'algorithm' => 'id-RSASSA-PSS',
|
||||
'parameters' => PSS::savePSSParams($r)
|
||||
|
Loading…
Reference in New Issue
Block a user