Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECDSA alg Fatal error #98

Open
paceto256 opened this issue Jul 5, 2016 · 3 comments
Open

ECDSA alg Fatal error #98

paceto256 opened this issue Jul 5, 2016 · 3 comments

Comments

@paceto256
Copy link

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:
#55

@odino
Copy link
Contributor

odino commented Jul 5, 2016

hi @paceto256 would you mind sending a PR?

@paceto256
Copy link
Author

paceto256 commented Jul 5, 2016

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

@odino
Copy link
Contributor

odino commented Jul 9, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants