hilla-push-notifications icon indicating copy to clipboard operation
hilla-push-notifications copied to clipboard

InvalidKeyException: Not an EC key: ECDH

Open wwwAiru opened this issue 3 years ago • 3 comments

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

wwwAiru avatar Sep 03 '22 06:09 wwwAiru

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

marcushellberg avatar Sep 03 '22 17:09 marcushellberg

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 avatar Sep 03 '22 21:09 wwwAiru

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

wwwAiru avatar Sep 07 '22 07:09 wwwAiru