Add support for 2waySSL to ApiMockServer

if http connection has not method getPeerCertificate();