# Problem with Gatling certificate

**URL:** <https://community.gatling.io/t/problem-with-gatling-certificate/325>\
**Category:** Gatling (Open-Source)\
**Created:** [April 11, 2013, 9:59am UTC](https://community.gatling.io/t/problem-with-gatling-certificate/325 "2013-04-11T09:59:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![natalja.librante](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@natalja.librante](https://community.gatling.io/u/natalja.librante)\
**Post date:** [April 11, 2013, 9:59am UTC](https://community.gatling.io/t/problem-with-gatling-certificate/325/1 "2013-04-11T09:59:13Z")

</div>

I run Gatling recorder for site with selfsigned certificate. As I understood, I must accept also Gatling certificate for this site, but I didn’t get any message or alert about Gatling certificate, so I can’t accept it… When I try to login on my tested site (with proxy and Gatling recorder turned on) i can’t even go further than login\_page…

When I run recorder, I get following:  
GATLING\_HOME is set to “C:\Workspace\Stress\_Test\_Gatling”  
"C:\Program Files\Java\jdk1.6.0\_43\bin"java -server -XX:+UseThreadPriorities -X  
X:ThreadPriorityPolicy=42 -Xms512M -Xmx512M -Xmn100M -Xss1024k -XX:+HeapDumpOnOu  
tOfMemoryError -XX:+AggressiveOpts -XX:+OptimizeStringConcat -XX:+UseFastAccesso  
rMethods -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled  
-XX:+CMSClassUnloadingEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX  
:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -cp “C:\W  
orkspace\Stress\_Test\_Gatling”\lib\*;“C:\Workspace\Stress\_Test\_Gatling”\conf; com  
.excilys.ebi.gatling.recorder.GatlingRecorder  
12:09:37.549 [WARN] c.e.e.g.r.h.h.BrowserHttpsRequestHandler - Trying to connec  
t to [https://testweb:443](https://testweb:443), make sure you’ve accepted the recorder certificate for t  
his site  
12:09:37.768 [ERROR] c.e.e.g.r.h.h.BrowserHttpsRequestHandler - Exception caught

java.io.IOException: An existing connection was forcibly closed by the remote ho  
st  
at sun.nio.ch.SocketDispatcher.read0(Native Method) ~[na:1.6.0\_43]  
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:25) ~[na:1.6.0  
\_43]  
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:198) ~[na:1.6.0\_43  
]  
at sun.nio.ch.IOUtil.read(IOUtil.java:166) ~[na:1.6.0\_43]  
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:245) ~[na:1.  
6.0\_43]  
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:64)  
~[netty-3.6.3.Final.jar:na]  
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(Abstract  
NioWorker.java:107) ~[netty-3.6.3.Final.jar:na]  
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNi  
oSelector.java:312) ~[netty-3.6.3.Final.jar:na]  
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioW  
orker.java:88) ~[netty-3.6.3.Final.jar:na]  
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)  
~[netty-3.6.3.Final.jar:na]  
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec  
utor.java:895) [na:1.6.0\_43]  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor  
.java:918) [na:1.6.0\_43]  
at java.lang.Thread.run(Thread.java:662) [na:1.6.0\_43]

---

<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:** [April 11, 2013, 4:28pm UTC](https://community.gatling.io/t/problem-with-gatling-certificate/325/2 "2013-04-11T16:28:03Z")

</div>

Does this help: [https://github.com/excilys/gatling/wiki/Recorder#wiki-https](https://github.com/excilys/gatling/wiki/Recorder#wiki-https)

---

<div class="post-metadata">

**Author:** ![natalja.librante](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@natalja.librante](https://community.gatling.io/u/natalja.librante)\
**Post date:** [April 12, 2013, 7:00am UTC](https://community.gatling.io/t/problem-with-gatling-certificate/325/3 "2013-04-12T07:00:31Z")

</div>

Yes, it helps. Thank You!

---

<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:** [April 12, 2013, 7:36am UTC](https://community.gatling.io/t/problem-with-gatling-certificate/325/4 "2013-04-12T07:36:11Z")

</div>

Glad to hear.  
Have fun!
