Merge pull request #195 from mauricios/master

Update docs example for disable SSL certificate verification in Guzzle
This commit is contained in:
Christophe Coevoet
2015-03-02 11:42:03 +01:00

View File

@@ -202,21 +202,36 @@ 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
* For ``Guzzle 4`` or later:
.. code-block:: yaml
default:
extensions:
Behat\MinkExtension:
sessions:
my_session:
goutte:
guzzle_parameters:
ssl.certificate_authority: 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: