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

InvalidKeyException: Not an EC key: ECDH #1

Open
wwwAiru opened this issue Sep 3, 2022 · 3 comments
Open

InvalidKeyException: Not an EC key: ECDH #1

wwwAiru opened this issue Sep 3, 2022 · 3 comments

Comments

@wwwAiru
Copy link

wwwAiru commented Sep 3, 2022

Then I run it from fat jar getting Exception in thread "main" java.security.InvalidKeyException: Not an EC key: ECDH. Then i run it from IntelliJ IDEA - the web push works well

@marcushellberg
Copy link
Owner

I have verified that running the jar built with mvn package -Pproduction runs on my computer.

Please check that you're using the same version of Java on your CLI and IntelliJ. See this comment as well web-push-libs/webpush-java#100 (comment)

@wwwAiru
Copy link
Author

wwwAiru commented Sep 3, 2022

Java versions are the same. I got that the problem is with the Bouncy castle provider broken signature. How can exclude bouncycastle provider from fat jar and reference it from outside?

@wwwAiru
Copy link
Author

wwwAiru commented Sep 7, 2022

I do not know why, but there is no such exception with jdk 13

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