marcushellberg / hilla-push-notifications

The Unlicense
12 stars 13 forks source link

InvalidKeyException: Not an EC key: ECDH #1

Open wwwAiru opened 2 years ago

wwwAiru commented 2 years ago

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 commented 2 years ago

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 https://github.com/web-push-libs/webpush-java/issues/100#issuecomment-923233328

wwwAiru commented 2 years ago

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 commented 2 years ago

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