mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-26 08:38:29 +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') {
|
if ($signatureAlgorithm != 'id-RSASSA-PSS') {
|
||||||
$signatureAlgorithm = ['algorithm' => $signatureAlgorithm];
|
$signatureAlgorithm = ['algorithm' => $signatureAlgorithm];
|
||||||
} else {
|
} else {
|
||||||
$r = PSS::load($issuer->privateKey->toString('PSS'));
|
$r = PSS::load($issuer->privateKey->withPassword()->toString('PSS'));
|
||||||
$signatureAlgorithm = [
|
$signatureAlgorithm = [
|
||||||
'algorithm' => 'id-RSASSA-PSS',
|
'algorithm' => 'id-RSASSA-PSS',
|
||||||
'parameters' => PSS::savePSSParams($r)
|
'parameters' => PSS::savePSSParams($r)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user