Skip to content

phpseclib3: RSASSA-PSS crl fails validation  #1837

@kulikov-a

Description

@kulikov-a

Hi.
CRLs created with phpseclib3 and signed (RSASSA-PSS) by a RSA-type CA key fails validation with
PHP Fatal error: Uncaught phpseclib3\Exception\UnsupportedAlgorithmException: Signature algorithm unsupported in /usr/local/share/phpseclib/File/X509.php:1455
trace: phpseclib3\File\X509->validateSignatureHelper('rsaEncryption', '-----BEGIN PUBL...', 'id-RSASSA-PSS', '\xA7\xB5[\x84=k\xC2\xD6\x14\x0F(\xA1\xD4r\xE4...', '0\x81\x970\v\x06\t*\x86H\x86\xF7\r\x01\x01...')

maybe it makes sense to slightly change the validateSignatureCountable() like
kulikov-a@bf4487c
and separate the steps of key loading and signature parameters loading?

Thanks!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions