Skip to content

Error after upgrade: supplied parameter cannot be coerced into an X509 certificate #589

@onnerby

Description

@onnerby

We just made an upgrade from 3.6.1 to 3.7.0 that works perfect against Google SSO.
But after upgrading - one of our customers that are using some internal SAML-implementation got errors like this

openssl_x509_read(): supplied parameter cannot be coerced into an X509 certificate! in .../vendor/robrichards/xmlseclibs/src/XMLSecurityKey.php(365)
#1 .../vendor/robrichards/xmlseclibs/src/XMLSecurityKey.php(365): openssl_x509_read('-----BEGIN CERT...')
#2 .../vendor/onelogin/php-saml/src/Saml2/Utils.php(1500): RobRichards\XMLSecLibs\XMLSecurityKey->loadKey('-----BEGIN CERT...', false, true)
#3 .../vendor/onelogin/php-saml/src/Saml2/Response.php(433): OneLogin\Saml2\Utils::validateSign(Object(DOMDocument), '-----BEGIN CERT...', '', 'sha1', '/samlp:Response...', Array)

I quickly reverted back to 3.6.1 that works great.
Any idea what went wrong?

Thank you for a great library 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions