java.security.InvalidKeyException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • sun jdk support
    via GitHub by nikhil32
    ,
  • sun jdk support
    via GitHub by nikhil32
    ,
    • java.security.InvalidKeyException: Not an EC key: ECDH at sun.security.ec.ECKeyFactory.checkKey(ECKeyFactory.java:121) at sun.security.ec.ECKeyFactory.toECKey(ECKeyFactory.java:90) at sun.security.ec.ECDHKeyAgreement.engineInit(ECDHKeyAgreement.java:67) at javax.crypto.KeyAgreement.implInit(KeyAgreement.java:341) at javax.crypto.KeyAgreement.chooseProvider(KeyAgreement.java:373) at javax.crypto.KeyAgreement.init(KeyAgreement.java:465) at javax.crypto.KeyAgreement.init(KeyAgreement.java:436) at nl.martijndwars.webpush.HttpEce.deriveDH(HttpEce.java:117) at nl.martijndwars.webpush.HttpEce.deriveKey(HttpEce.java:54) at nl.martijndwars.webpush.HttpEce.encrypt(HttpEce.java:166) at nl.martijndwars.webpush.PushService.encrypt(PushService.java:62)
    No Bugmate found.