Disable hostname verifier in gatling?

Hi so my application involves 2 way ssl. but i am trying to disable the hostname verification gatling does when i pass it my certificate. Is there a way to do this? I have tried acceptAnyCertificate value to true in the conf file but i keep getting
java.security.cert.Certificateexception : no subject slternative DNS name matching error