jose icon indicating copy to clipboard operation
jose copied to clipboard

ECDSA alg Fatal error

Open paceto256 opened this issue 8 years ago • 3 comments

Fatal error: Class 'phpseclib\File\ASN1' not found in /home/paceto/proj/sgapi/vendor/namshi/jose/src/Namshi/JOSE/Signer/OpenSSL/ECDSA.php on line 46

ref to old issue: https://github.com/namshi/jose/issues/55

paceto256 avatar Jul 05 '16 10:07 paceto256

hi @paceto256 would you mind sending a PR?

odino avatar Jul 05 '16 11:07 odino

Not sure what you mean by PR (Pull Request?) but this is my composer row "require": { "namshi/jose": "^7.1" }

Fixed the issue by adding "phpseclib/phpseclib": "^2.0" to require.

"require": {
    "namshi/jose": "^7.1",
    "phpseclib/phpseclib": "^2.0"
}

It's needed since Namshi\JOSE\Signer\OpenSSL\ECDSA depends on phpseclib\File\ASN1

paceto256 avatar Jul 05 '16 12:07 paceto256

yes, I mean a pull request :) We made phpseclib an optional dependency so if you want to use ECDSA signers you should include it separately

odino avatar Jul 09 '16 11:07 odino