spring - java.security.InvalidAlgorithmParameterException: null -


i've run exception when trying run spring boot application ssl certificate. app running inside kubernetes docker container.

the key issue description of excpetion null.

has run such issue?

update1 - i've based dockerfile on openjdk:8-jre-alpine. i've revert openjdk:8u111-jre-alpine , error disapear. still don't know cause of error.

java.lang.runtimeexception: java.security.invalidalgorithmparameterexception         @ sun.security.ssl.handshaker.checkthrown(handshaker.java:1476) ~[na:1.8.0_121]         @ sun.security.ssl.sslengineimpl.checktaskthrown(sslengineimpl.java:535) ~[na:1.8.0_121]         @ sun.security.ssl.sslengineimpl.readnetrecord(sslengineimpl.java:813) ~[na:1.8.0_121]         @ sun.security.ssl.sslengineimpl.unwrap(sslengineimpl.java:781) ~[na:1.8.0_121]         @ javax.net.ssl.sslengine.unwrap(sslengine.java:624) ~[na:1.8.0_121]         @ org.apache.tomcat.util.net.secureniochannel.handshakeunwrap(secureniochannel.java:459) ~[tomcat-embed-core-8.5.6.jar!/:8.5.6]         @ org.apache.tomcat.util.net.secureniochannel.handshake(secureniochannel.java:232) ~[tomcat-embed-core-8.5.6.jar!/:8.5.6]         @ org.apache.tomcat.util.net.nioendpoint$socketprocessor.dorun(nioendpoint.java:1387) ~[tomcat-embed-core-8.5.6.jar!/:8.5.6]         @ org.apache.tomcat.util.net.socketprocessorbase.run(socketprocessorbase.java:49) [tomcat-embed-core-8.5.6.jar!/:8.5.6]         @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) [na:1.8.0_121]         @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) [na:1.8.0_121]         @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) [tomcat-embed-core-8.5.6.jar!/:8.5.6]         @ java.lang.thread.run(thread.java:745) [na:1.8.0_121] caused by: java.security.providerexception: java.security.invalidalgorithmparameterexception         @ sun.security.ec.eckeypairgenerator.generatekeypair(eckeypairgenerator.java:147) ~[sunec.jar:1.8.0_121]         @ java.security.keypairgenerator$delegate.generatekeypair(keypairgenerator.java:703) ~[na:1.8.0_121]         @ sun.security.ssl.ecdhcrypt.<init>(ecdhcrypt.java:65) ~[na:1.8.0_121]         @ sun.security.ssl.serverhandshaker.setupephemeralecdhkeys(serverhandshaker.java:1431) ~[na:1.8.0_121]         @ sun.security.ssl.serverhandshaker.trysetciphersuite(serverhandshaker.java:1229) ~[na:1.8.0_121]         @ sun.security.ssl.serverhandshaker.chooseciphersuite(serverhandshaker.java:1026) ~[na:1.8.0_121]         @ sun.security.ssl.serverhandshaker.clienthello(serverhandshaker.java:741) ~[na:1.8.0_121]         @ sun.security.ssl.serverhandshaker.processmessage(serverhandshaker.java:224) ~[na:1.8.0_121]         @ sun.security.ssl.handshaker.processloop(handshaker.java:1026) ~[na:1.8.0_121]         @ sun.security.ssl.handshaker$1.run(handshaker.java:966) ~[na:1.8.0_121]         @ sun.security.ssl.handshaker$1.run(handshaker.java:963) ~[na:1.8.0_121]         @ java.security.accesscontroller.doprivileged(native method) ~[na:1.8.0_121]         @ sun.security.ssl.handshaker$delegatedtask.run(handshaker.java:1416) ~[na:1.8.0_121]         @ org.apache.tomcat.util.net.secureniochannel.tasks(secureniochannel.java:407) ~[tomcat-embed-core-8.5.6.jar!/:8.5.6]         @ org.apache.tomcat.util.net.secureniochannel.handshakeunwrap(secureniochannel.java:467) ~[tomcat-embed-core-8.5.6.jar!/:8.5.6]         ... 7 common frames omitted caused by: java.security.invalidalgorithmparameterexception: null         @ sun.security.ec.eckeypairgenerator.generateeckeypair(native method) ~[sunec.jar:1.8.0_121]         @ sun.security.ec.eckeypairgenerator.generatekeypair(eckeypairgenerator.java:128) ~[sunec.jar:1.8.0_121]         ... 21 common frames omitted 

i opened issue on docker-openjdk's github, , seems issue supported eliptic curves in openjdk/jdk/src/share/classes/sun/security/ssl/supportedellipticcurvesextension.java

https://github.com/docker-library/openjdk/issues/115

the fix merged 8.131.11-r2 of openjdk-alpine


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -