Richard Cumberland
03/11/2019, 12:43 PMHttpServerOptions
. here's what I'm doing:
val options = HttpServerOptions()
.setSsl(true)
.setPfxKeyCertOptions(PfxOptions().setValue(keystoreBuffer).setPassword(keystorePass))
.setClientAuth(ClientAuth.NONE)
.setLogActivity(false)
keystoreBuffer
exists on the classpath and is found no problem, but i get this error:
Exception in thread "main" io.vertx.core.VertxException: java.io.IOException: DerInputStream.getLength(): lengthTag=111, too big.
at io.vertx.core.net.impl.SSLHelper.createContext(SSLHelper.java:299)
at io.vertx.core.net.impl.SSLHelper.getContext(SSLHelper.java:474)
at io.vertx.core.net.impl.SSLHelper.validate(SSLHelper.java:499)
at io.vertx.core.http.impl.HttpServerImpl.listen(HttpServerImpl.java:220)
at io.vertx.core.http.impl.HttpServerImpl.listen(HttpServerImpl.java:191)
at co.uk.realistic.mercury.VertxServer.<init>(VertxServer.kt:94)
at co.uk.realistic.mercury.BootstrapKt.main(Bootstrap.kt:31)
Caused by: java.io.IOException: DerInputStream.getLength(): lengthTag=111, too big.
at java.base/sun.security.util.DerInputStream.getLength(DerInputStream.java:606)
at java.base/sun.security.util.DerValue.init(DerValue.java:390)
at java.base/sun.security.util.DerValue.<init>(DerValue.java:331)
at java.base/sun.security.util.DerValue.<init>(DerValue.java:344)
at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1993)
i used openssl's standard set of functionality to create the PKCS12 archive and the password is correct. i'm a bit stuck!