From e08f521781f57de567b16ba1f7b7b7716450204f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauricio=20S=C3=A1nchez?= Date: Mon, 23 Feb 2015 10:38:32 -0500 Subject: [PATCH] Adding example to disable SSL certificate verification in earlier Guzzle versions --- doc/index.rst | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index 0b95a89..d9a6a3f 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -205,18 +205,33 @@ with support for 6 drivers out of the box: .. Tips : HTTPS and self-signed certificate In case you use Behat/Mink/Goutte to test your application, and want to test an application secured with HTTPS, but with a self-signed certificate, you can use - the following parameters to avoid the validation error triggered by Guzzle : + the following parameters to avoid the validation error triggered by Guzzle: - .. code-block:: yaml + * For ``Guzzle 4`` or later: + + .. code-block:: yaml - default: - extensions: - Behat\MinkExtension: - sessions: - my_session: - goutte: - guzzle_parameters: - verify: false + default: + extensions: + Behat\MinkExtension: + sessions: + my_session: + goutte: + guzzle_parameters: + verify: false + + * For ``Guzzle 3`` or earlier: + + .. code-block:: yaml + + default: + extensions: + Behat\MinkExtension: + sessions: + my_session: + goutte: + guzzle_parameters: + ssl.certificate_authority: false * ``Selenium2Driver`` - javascript driver. In order to use it, modify your ``behat.yml`` profile: