Is there a way to force SSLv3 for a vertx httpclient?

204 views
Skip to first unread message

Carter Youngblood

unread,
Aug 13, 2013, 3:28:13 PM8/13/13
to ve...@googlegroups.com
I have a odd case where after a few hundred requests to an external API, I get the following error.

After talking to the API creators, they say to try to force to use SSLv3 for the client.

javax.net.ssl.SSLException: Received fatal alert: bad_record_mac



at sun
.security.ssl.Alerts.getSSLException(Alerts.java:208)

 at sun
.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1639)

 at sun
.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1607)

 at sun
.security.ssl.SSLEngineImpl.recvAlert(SSLEngineImpl.java:1776)

 at sun
.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:1080)

 at sun
.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:884)

 at sun
.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:758)

 at javax
.net.ssl.SSLEngine.unwrap(SSLEngine.java:624)

 at io
.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:882)

 at io
.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:828)

 at io
.netty.handler.ssl.SslHandler.decode(SslHandler.java:803)

 at io
.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:231)

 at io
.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:131)

 at io
.netty.channel.DefaultChannelHandlerContext.invokeChannelRead(DefaultChannelHandlerContext.java:368)

 at io
.netty.channel.DefaultChannelHandlerContext.fireChannelRead(DefaultChannelHandlerContext.java:353)

 at io
.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:780)

 at io
.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:100)

 at io
.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:497)

 at io
.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:465)

 at io
.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:359)

 at io
.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)

 at java
.lang.Thread.run(Thread.java:722)

Aug 13, 2013 11:40:33 AM org.vertx.java.core.logging.impl.JULLogDelegate error

SEVERE
: Error in request to Klipfolio.

javax
.net.ssl.SSLHandshakeException: Failed to create SSL connection


Is there anyway to set the context of the SSL connection to use TLS?

I can try to create a simple example, the problem is the credentials to the API.

Any help/thoughts would be great.

-Carter

Carter Youngblood

unread,
Aug 13, 2013, 3:30:22 PM8/13/13
to ve...@googlegroups.com
I have tried to add -Dforce.http.jre.executor=true and -Dhttps.protocols=SSLv3
Reply all
Reply to author
Forward
0 new messages