# Error when running simulation

**URL:** https://community.gatling.io/t/error-when-running-simulation/1580
**Category:** Gatling (Open-Source)
**Created:** [October 22, 2014, 2:21pm UTC](https://community.gatling.io/t/error-when-running-simulation/1580 "2014-10-22T14:21:52Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Daniel\_Hernandez](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Daniel\_Hernandez](https://community.gatling.io/u/Daniel_Hernandez)
#### Post date: [October 22, 2014, 2:21pm UTC](https://community.gatling.io/t/error-when-running-simulation/1580/1 "2014-10-22T14:21:52Z")

</div>

Hello,

I am getting the following error when running a simulation :

“javax.net.ssl.SSLProtocolException: handshake alert: unrecognized\_name”

The site I am trying to reach does require the acceptance of a certificate. Is there anything I need to do to configure gatling to auto accept the certificate?

Thank you for your time!

---

<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: [October 22, 2014, 2:25pm UTC](https://community.gatling.io/t/error-when-running-simulation/1580/2 "2014-10-22T14:25:44Z")

</div>

[http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0](http://stackoverflow.com/questions/7615645/ssl-handshake-alert-unrecognized-name-error-since-upgrade-to-java-1-7-0)

---

<div class="post-metadata">

### Author: ![Daniel\_Hernandez](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Daniel\_Hernandez](https://community.gatling.io/u/Daniel_Hernandez)
#### Post date: [October 22, 2014, 2:49pm UTC](https://community.gatling.io/t/error-when-running-simulation/1580/3 "2014-10-22T14:49:14Z")

</div>

Thank you for the link! I am not a developer so please excuse my ignorance but I am able to run the test successfully by using the ip address of the application and not the url. Why is that?

Thank you for your time!

---

<div class="post-metadata">

### Author: ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)
#### Post date: [October 22, 2014, 2:53pm UTC](https://community.gatling.io/t/error-when-running-simulation/1580/4 "2014-10-22T14:53:51Z")

</div>

Java 7 enables by default SNI (Server Name Indication), an extensions to TLS. But as SNI deals with communicating the server’s hostname to the client, if there’s no hostname because you’re using its IP, there’s no need for SNI apparently.

---

<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: [October 22, 2014, 3:06pm UTC](https://community.gatling.io/t/error-when-running-simulation/1580/5 "2014-10-22T15:06:49Z")

</div>

Tldr: disable it with the System property

---

<div class="post-metadata">

### Author: ![Daniel\_Hernandez](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Daniel\_Hernandez](https://community.gatling.io/u/Daniel_Hernandez)
#### Post date: [October 22, 2014, 8:51pm UTC](https://community.gatling.io/t/error-when-running-simulation/1580/6 "2014-10-22T20:51:51Z")

</div>

Would it be possible to give a step by step on how to do that? I’m not quite sure where to start.

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: [October 27, 2014, 9:23am UTC](https://community.gatling.io/t/error-when-running-simulation/1580/7 "2014-10-27T09:23:21Z")

</div>

The first answer in this SOF thread explains how you can either pass the System property in the command line (edit Gatling launch scripts) or add it programmatically (in the Simulation class then).
