# \[2.0.0-SNAPSHOT\] Some Trouble to record scripts because of the not trusted SSL certification.

**URL:** <https://community.gatling.io/t/2-0-0-snapshot-some-trouble-to-record-scripts-because-of-the-not-trusted-ssl-certification/863>\
**Category:** Gatling (Open-Source)\
**Created:** [March 10, 2014, 2:41am UTC](https://community.gatling.io/t/2-0-0-snapshot-some-trouble-to-record-scripts-because-of-the-not-trusted-ssl-certification/863 "2014-03-10T02:41:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dian](https://avatars.discourse-cdn.com/v4/letter/d/c4cdca/32.png) [@Dian](https://community.gatling.io/u/Dian)\
**Post date:** [March 10, 2014, 2:41am UTC](https://community.gatling.io/t/2-0-0-snapshot-some-trouble-to-record-scripts-because-of-the-not-trusted-ssl-certification/863/1 "2014-03-10T02:41:22Z")

</div>

The URL is HTTPS link, and the certification is not the offcial trusted certification, so the browser often prompts the certification is not trusted and asks if you will continue to use it or not, if you answer yes, the browser will jump to the correct web page.

Gatling [2.0.0-M3a] recorder could deal with such situation and record the scripts, after answer yes, the browser could jump to the correct web page.

Gatling [2.0.0-SNAPSHOT] recorder looks like have some trouble to deal with it, after answer yes, the browser pending there and could NOT jump to the correct web page, and looks like the Gatling recorder can’t jump into the correct web page. And Recorder will report some exceptions like below:

The Gatling [2.0.0-SNAPSHOT] was downloaded from below URL according the wiki page :  
[https://oss.sonatype.org/content/repositories/snapshots/io/gatling/highcharts/gatling-charts-highcharts/2.0.0-SNAPSHOT/](https://oss.sonatype.org/content/repositories/snapshots/io/gatling/highcharts/gatling-charts-highcharts/2.0.0-SNAPSHOT/).

GATLING\_HOME is set to “C:\Gatling\2.0.0-SNAPSHOT”  
Mar 10, 2014 10:22:28 AM org.jboss.netty.channel.SimpleChannelHandler  
WARNING: EXCEPTION, please implement io.gatling.recorder.http.handler.ServerHttpResponseHandler.exceptionCaught() for proper handling.  
java.lang.ClassCastException: org.jboss.netty.handler.codec.http.DefaultHttpResponse incompatible with org.jboss.netty.handler.codec.http.HttpRequest  
at org.jboss.netty.handler.codec.http.HttpRequestEncoder.encodeInitialLine(HttpRequestEncoder.java:31)  
at org.jboss.netty.handler.codec.http.HttpMessageEncoder.encode(HttpMessageEncoder.java:86)  
at org.jboss.netty.handler.codec.http.HttpClientCodec$Encoder.encode(HttpClientCodec.java:112)  
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.doEncode(OneToOneEncoder.java:66)  
at org.jboss.netty.handler.codec.oneone.OneToOneEncoder.handleDownstream(OneToOneEncoder.java:59)  
at org.jboss.netty.handler.codec.http.HttpClientCodec.handleDownstream(HttpClientCodec.java:97)  
at org.jboss.netty.channel.Channels.write(Channels.java:704)  
at org.jboss.netty.channel.Channels.write(Channels.java:671)  
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248)  
at io.gatling.recorder.http.handler.ServerHttpResponseHandler.messageReceived(ServerHttpResponseHandler.scala:50)  
at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:145)  
at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:108)  
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)  
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)  
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)  
at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)  
at org.jboss.netty.handler.codec.http.HttpClientCodec.handleUpstream(HttpClientCodec.java:92)  
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)  
at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)  
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)  
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)  
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)  
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)  
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)  
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)  
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)  
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)  
at java.lang.Thread.run(Thread.java:804)

10:22:33.989 [ERROR] i.g.r.h.h.ClientHttpsRequestHandler - SSLException Received fatal alert: bad\_certificate, did you accept the certificate for [https://sb-ssl.google.com:443](https://sb-ssl.google.com:443)?

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [March 10, 2014, 5:43am UTC](https://community.gatling.io/t/2-0-0-snapshot-some-trouble-to-record-scripts-because-of-the-not-trusted-ssl-certification/863/2 "2014-03-10T05:43:17Z")

</div>

Stupid mistake.  
Fixed: [https://github.com/excilys/gatling/issues/1682](https://github.com/excilys/gatling/issues/1682)

Thanks for reporting!
