diff --git a/src/PhpSigep/Services/Real/SoapClientFactory.php b/src/PhpSigep/Services/Real/SoapClientFactory.php index 2a77a52548..e90a317f7f 100644 --- a/src/PhpSigep/Services/Real/SoapClientFactory.php +++ b/src/PhpSigep/Services/Real/SoapClientFactory.php @@ -33,6 +33,15 @@ public static function getSoapClient() "exceptions" => Bootstrap::getConfig()->getEnv() != Config::ENV_PRODUCTION, 'encoding' => self::WEB_SERVICE_CHARSET, 'connection_timeout' => 60, + 'stream_context' => stream_context_create( + array( + 'ssl' => array( + 'verify_peer' => false, + 'verify_peer_name' => false, + 'allow_self_signed' => true, + ), + ) + ), )); } @@ -49,6 +58,15 @@ public static function getSoapCalcPrecoPrazo() "exceptions" => Bootstrap::getConfig()->getEnv() != Config::ENV_PRODUCTION, 'encoding' => self::WEB_SERVICE_CHARSET, 'connection_timeout' => 60, + 'stream_context' => stream_context_create( + array( + 'ssl' => array( + 'verify_peer' => false, + 'verify_peer_name' => false, + 'allow_self_signed' => true, + ), + ) + ), )); }