diff --git a/phpseclib/File/X509.php b/phpseclib/File/X509.php index daf54796..17be2117 100644 --- a/phpseclib/File/X509.php +++ b/phpseclib/File/X509.php @@ -2203,8 +2203,10 @@ class X509 $key = $keyinfo['subjectPublicKey']; switch ($keyinfo['algorithm']['algorithm']) { + case 'id-RSASSA-PSS': + return RSA::loadFormat('PSS', $key); case 'rsaEncryption': - return RSA::loadFormat('PKCS8', $key); + return RSA::loadFormat('PKCS8', $key)->withPadding(RSA::SIGNATURE_PKCS1); case 'id-ecPublicKey': case 'id-Ed25519': case 'id-Ed448':