From bcc4fd43000e08b0d385b79a9da164bcb832ed2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauricio=20S=C3=A1nchez?= Date: Sat, 21 Feb 2015 23:19:29 -0500 Subject: [PATCH 1/3] Update docs for disable SSL certificate verification in Guzzle Update docs for disable SSL certificate verification behaviour in Guzzle 5 using the verify option, see: http://docs.guzzlephp.org/en/latest/clients.html?highlight=verify#event-subscribers --- doc/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/index.rst b/doc/index.rst index 409d400..ead5dab 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -216,7 +216,7 @@ the following parameters to avoid the validation error triggered by Guzzle : my_session: goutte: guzzle_parameters: - ssl.certificate_authority: false + verify: false * ``Selenium2Driver`` - javascript driver. In order to use it, modify your ``behat.yml`` profile: From 22a365469c445b11907ae3695d6d73e08b823c02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauricio=20S=C3=A1nchez?= Date: Sat, 21 Feb 2015 23:23:53 -0500 Subject: [PATCH 2/3] Fixing inconsistencies in markdown and code indentation Fixing inconsistencies in markdown and code indentation in the Goutte driver examples --- doc/index.rst | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index ead5dab..0b95a89 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -202,21 +202,21 @@ with support for 6 drivers out of the box: my_session: goutte: ~ -.. 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 : + .. 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 : - .. code-block:: yaml + .. 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 * ``Selenium2Driver`` - javascript driver. In order to use it, modify your ``behat.yml`` profile: 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 3/3] 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: