[SSL][Certificate] SSL secured site, and ignore certificate warnings

2,164 views
Skip to first unread message

Théo Mosconi

unread,
Jun 4, 2013, 9:21:57 AM6/4/13
to gat...@googlegroups.com
Hello,

I try to connect to a SSL site and i want to ignore certificate warnings. Is it possible with gatling ?
I looked at this page :
 https://github.com/excilys/gatling/blob/master/gatling-bundle/src/main/assembly/assembly-structure/conf/gatling.conf
But... :)

Thanks for your help

Theo

Stéphane Landelle

unread,
Jun 4, 2013, 10:25:28 AM6/4/13
to gat...@googlegroups.com
Are you talking about the recorder or the engine?
What's the problem exactly?

Stéphane


2013/6/4 Théo Mosconi <theo.m...@harmonie-technologie.com>

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Théo Mosconi

unread,
Jun 4, 2013, 11:49:11 AM6/4/13
to gat...@googlegroups.com
Hi,

I'm talking about the engine.
I have a https request, if i use this one with RESTClient (firefox) i have a 0 NO RESPONSE. If i open a new tab, go to the url, i have the warning "this is not a trust site, would you like to continue", i check yes. Then, if i resend my request (still with RESTClient), it works :)

It works like that on firefox, but it's different with chrome..

==>>
With RESTClient on chrome we can't overwrite the "Host" header..


I missunderstood my problem.
Now it's :
Does the "Host" header is overwrite with the real host address in gatling (as in chrome RESTClient)?
I see that the new "Host" header is set in in the request (in the windows console), but is it true ? :D

i will try wireshark :)

Stéphane Landelle

unread,
Jun 4, 2013, 12:01:58 PM6/4/13
to gat...@googlegroups.com
Sorry, I still don't understand the problem.
Gatling doesn't handle Host header for you.
Gatling works well with self signed certificates.


2013/6/4 Théo Mosconi <theo.m...@harmonie-technologie.com>

Théo Mosconi

unread,
Jun 4, 2013, 12:02:37 PM6/4/13
to gat...@googlegroups.com
That's a https communication, every thing is encrypted in wireshark :(
I will try an other way :)

Stéphane Landelle

unread,
Jun 4, 2013, 12:05:46 PM6/4/13
to gat...@googlegroups.com
Use a proxy such as Charles


2013/6/4 Théo Mosconi <theo.m...@harmonie-technologie.com>
That's a https communication, every thing is encrypted in wireshark :(
I will try an other way :)

Théo Mosconi

unread,
Jun 4, 2013, 12:23:32 PM6/4/13
to gat...@googlegroups.com
Ok, i'm not sure to really understand my problem too :)

It's just that, set a "host" header is sometime useless, cause this header is overwrite with the real host of the request in many programs (like Advanced RESTClient chrome), but not always (RESTClient firefox). :)  (maybe i'm wrong, it's new for me)

Does gatling overwrite this header ? "Gatling doesn't handle Host header for you." so i don't think so ;)

Thanks for trying to help me :) I will search for understand my problem, and what i really want to do :)

Théo

Stéphane Landelle

unread,
Jun 4, 2013, 12:36:18 PM6/4/13
to gat...@googlegroups.com
2013/6/4 Théo Mosconi <theo.m...@harmonie-technologie.com>
Ok, i'm not sure to really understand my problem too :)

It's just that, set a "host" header is sometime useless, cause this header is overwrite with the real host of the request in many programs (like Advanced RESTClient chrome), but not always (RESTClient firefox). :)  (maybe i'm wrong, it's new for me)

Does gatling overwrite this header ? "Gatling doesn't handle Host header for you." so i don't think so ;)

Stefan Magnus Landrø

unread,
Jun 4, 2013, 3:29:07 PM6/4/13
to gat...@googlegroups.com
Just to make sure: is the server using a certificate where the common name (cn) doesn't match the host name you supply?

Théo Mosconi

unread,
Jun 5, 2013, 5:21:18 AM6/5/13
to gat...@googlegroups.com

Just to make sure: is the server using a certificate where the common name (cn) doesn't match the host name you supply?

Yeah that's it

----

I solved my problem, i just changed my windows /etc/hosts file. So the header will be fill up with the custom ip.

Thanks for the help.

Stéphane Landelle

unread,
Jun 5, 2013, 10:20:29 AM6/5/13
to gat...@googlegroups.com
Glad to hear!
And thanks for your help, Stefan!


2013/6/5 Théo Mosconi <theo.m...@harmonie-technologie.com>

--
Reply all
Reply to author
Forward
0 new messages