diff --git a/wsclient_soap/wsclient_soap.module b/wsclient_soap/wsclient_soap.module
index dfff704..905abf8 100644
--- a/wsclient_soap/wsclient_soap.module
+++ b/wsclient_soap/wsclient_soap.module
@@ -26,6 +26,14 @@ class WSClientSOAPEndpoint extends WSClientEndpoint {
   public function client() {
     if (!isset($this->client)) {
       $options['exceptions'] = TRUE;
+      $options['stream_context'] = stream_context_create(
+        array(
+          'ssl' => array(
+            'verify_peer' => false,
+            'verify_peer_name' => false
+          )
+        )
+      );
       // Handle Basic HTTP authentication.
       if (!empty($this->service->settings['authentication']['basic'])) {
         $this->service->settings['options']['login'] = $this->service->settings['authentication']['basic']['username'];
@@ -156,7 +164,18 @@ function wsclient_soap_wsclient_service_form_validate($form, $form_state) {
       // fatal error on invalid WSDL files (instead of a catchable SoapFault
       // exception).
       // xdebug_disable();
-      @$endpoint = new SOAPClient($form_state['values']['url']);
+      @$endpoint = new SOAPClient($form_state['values']['url']],
+        array(
+          'stream_context' => stream_context_create(
+            array(
+              'ssl' => array(
+                'verify_peer' => false,
+                'verify_peer_name' => false
+              )
+            )
+          )
+        )
+      );
     }
     catch (SoapFault $e) {
       form_set_error('url', t('Error parsing the WSDL file: %message', array('%message' => $e->getMessage())));
