# \[1.5.5\]\[SSL\] SSL errors during simulation when getting https url

**URL:** <https://community.gatling.io/t/1-5-5-ssl-ssl-errors-during-simulation-when-getting-https-url/1116>\
**Category:** Gatling (Open-Source)\
**Created:** [June 26, 2014, 3:50pm UTC](https://community.gatling.io/t/1-5-5-ssl-ssl-errors-during-simulation-when-getting-https-url/1116 "2014-06-26T15:50:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Bougeard](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@Gregory\_Bougeard](https://community.gatling.io/u/Gregory_Bougeard)\
**Post date:** [June 26, 2014, 3:50pm UTC](https://community.gatling.io/t/1-5-5-ssl-ssl-errors-during-simulation-when-getting-https-url/1116/1 "2014-06-26T15:50:54Z")

</div>

Hello,

I’m having trouble some while I’m running a Simulation (via the maven plugin) when getting a https url.

`
17:38:06.221 [GatlingSystem-akka.actor.default-dispatcher-2][INFO] c.e.e.g.h.a.HttpRequestAction - Sending Request ‘Login Page PHP’: Scenario ‘Back Office’, UserId #1
17:38:06.451 [New I/O worker #2][WARN] c.e.e.g.h.a.GatlingAsyncHandler - Request ‘Login Page PHP’ failed
sun.security.validator.ValidatorException: No trusted certificate found
at sun.security.validator.SimpleValidator.buildTrustedChain(SimpleValidator.java:384) ~[na:1.7.0_55]
at sun.security.validator.SimpleValidator.engineValidate(SimpleValidator.java:134) ~[na:1.7.0_55]
at sun.security.validator.Validator.validate(Validator.java:260) ~[na:1.7.0_55]
at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326) ~[na:1.7.0_55]
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:283) ~[na:1.7.0_55]
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:138) ~[na:1.7.0_55]
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1328) ~[na:1.7.0_55]
Wrapped by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.fatal(SSLEngineImpl.java:1694) ~[na:1.7.0_55]
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:278) ~[na:1.7.0_55]
at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270) ~[na:1.7.0_55]
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341) ~[na:1.7.0_55]
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153) ~[na:1.7.0_55]
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868) ~[na:1.7.0_55]
at sun.security.ssl.Handshaker$1.run(Handshaker.java:808) ~[na:1.7.0_55]
at sun.security.ssl.Handshaker$1.run(Handshaker.java:806) ~[na:1.7.0_55]
at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_55]
at sun.security.ssl.Handshaker$DelegatedTask.run(Handshaker.java:1227) ~[na:1.7.0_55]
at org.jboss.netty.handler.ssl.SslHandler$4.run(SslHandler.java:1377) ~[netty-3.8.0.Final.jar:na]
at org.jboss.netty.handler.ssl.ImmediateExecutor.execute(ImmediateExecutor.java:31) ~[netty-3.8.0.Final.jar:na]
at org.jboss.netty.handler.ssl.SslHandler.runDelegatedTasks(SslHandler.java:1374) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1261) [netty-3.8.0.Final.jar:na]
Wrapped by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
at sun.security.ssl.Handshaker.checkThrown(Handshaker.java:1290) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.checkTaskThrown(SSLEngineImpl.java:513) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.readNetRecord(SSLEngineImpl.java:793) ~[na:1.7.0_55]
at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:761) ~[na:1.7.0_55]
at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:624) ~[na:1.7.0_55]
at org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1237) [netty-3.8.0.Final.jar:na]
Wrapped by: java.net.ConnectException: General SSLEngine problem to https://mysecuresite/manager/login.php
at com.ning.http.client.providers.netty.NettyConnectListener.operationComplete(NettyConnectListener.java:103) ~[async-http-client-1.8.3.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListener(DefaultChannelFuture.java:427) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.notifyListeners(DefaultChannelFuture.java:413) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelFuture.setFailure(DefaultChannelFuture.java:380) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.handler.ssl.SslHandler.setHandshakeFailure(SslHandler.java:1429) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1305) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.handler.ssl.SslHandler.decode(SslHandler.java:925) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:425) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108) [netty-3.8.0.Final.jar:na]
at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42) [netty-3.8.0.Final.jar:na]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_55]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_55]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_55]
17:38:06.459 [GatlingSystem-akka.actor.default-dispatcher-2][WARN] c.e.e.g.h.a.GatlingAsyncHandlerActor - Request ‘Login Page PHP’ failed : General SSLEngine problem to https://mysecuresite/manager/login.php
17:38:06.471 [GatlingSystem-akka.actor.default-dispatcher-6][INFO] c.e.e.g.c.a.PauseAction - Pausing for 500ms (real=492ms)
`

I have set the http.ssl.truststore and http.ssl.keystore configuration in gatling.conf .

Do I miss something?

---

<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:** [June 26, 2014, 4:07pm UTC](https://community.gatling.io/t/1-5-5-ssl-ssl-errors-during-simulation-when-getting-https-url/1116/2 "2014-06-26T16:07:05Z")

</div>

By default, Gatling/ahc disables certificate validation ( truststore trusts all). You overrode this but it seems your truststore doesn’t trust your server.

---

<div class="post-metadata">

**Author:** ![S\_Reddi](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@S\_Reddi](https://community.gatling.io/u/S_Reddi)\
**Post date:** [June 2, 2017, 11:37am UTC](https://community.gatling.io/t/1-5-5-ssl-ssl-errors-during-simulation-when-getting-https-url/1116/3 "2017-06-02T11:37:07Z")

</div>

hi,

I have the issue something similar to this. I have the keystore and truststore added in the config.

ssl {  
trustStore {  
type = “JKS” # Type of SSLContext’s TrustManagers store  
file = “src/test/resources/TST.site1.green/truststoreIdentitiesTest.jks” # Location of SSLContext’s TrustManagers store  
password = “changeit” # Password for SSLContext’s TrustManagers store  
#algorithm = “” # Algorithm used by SSLContext’s TrustManagers store  
}  
keyStore {  
type = “JKS” # Type of SSLContext’s KeyManagers store  
file = “src/test/resources/TST.site1.green/tomcatIdentitiesTest.jks” # Location of SSLContext’s KeyManagers store  
password = “changeit” # Password for SSLContext’s KeyManagers store  
#algorithm = “” # Algorithm used SSLContext’s KeyManagers store  
}

but, I am getting the following message when Im executing the gatling project. Can anyone help me to solve the same.

11:57:39.968 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:39.987 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.020 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.039 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.070 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.088 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.117 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.149 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.170 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.190 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.217 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.239 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.270 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.298 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.329 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.350 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.368 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine  
11:57:40.401 [WARN] i.g.h.a.ResponseProcessor - Request ‘GetProfiles’ failed: j.n.ConnectException: General SSLEngine
