Adding example to disable SSL certificate verification in earlier Guzzle versions

This commit is contained in:
Mauricio Sánchez
2015-02-23 10:38:32 -05:00
parent 22a365469c
commit e08f521781

View File

@@ -205,7 +205,9 @@ with support for 6 drivers out of the box:
.. Tips : HTTPS and self-signed certificate .. Tips : HTTPS and self-signed certificate
In case you use Behat/Mink/Goutte to test your application, and want to test an 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 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:
* For ``Guzzle 4`` or later:
.. code-block:: yaml .. code-block:: yaml
@@ -218,6 +220,19 @@ with support for 6 drivers out of the box:
guzzle_parameters: guzzle_parameters:
verify: false 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 * ``Selenium2Driver`` - javascript driver. In order to use it, modify your
``behat.yml`` profile: ``behat.yml`` profile: