Skip to content

Commit

Permalink
Fix #21
Browse files Browse the repository at this point in the history
  • Loading branch information
stavarengo committed Jan 3, 2016
1 parent 55754a0 commit 1ce44a0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/PhpSigep/Services/Real/SoapClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
)
),
));
}

Expand All @@ -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,
),
)
),
));
}

Expand Down

4 comments on commit 1ce44a0

@viebig
Copy link
Contributor

@viebig viebig commented on 1ce44a0 Jan 4, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfeito. Era a validação do certificado. Obrigado

@viebig
Copy link
Contributor

@viebig viebig commented on 1ce44a0 Jan 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stavarengo, não vai dar merge na master?

@stavarengo
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@viebig esse commit já está no master a 22 dias, agora.

@viebig
Copy link
Contributor

@viebig viebig commented on 1ce44a0 Jan 25, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stavarengo nevermind.. meu packagist estava na v1.0-dev ao invés da dev-master

Please sign in to comment.