i try test features of drupal site in local development environment (ubuntu 14.04 lts, apache2, php-5.6.17) behat run ssl certificate problem (since site switches http https if log in user). testing features anonymous user works correctly because requires http connection.
the site need tested not mine, have test features in it. able use site in localhost (to able log in https connection) created virtual host site ssl properties. described here, instead of default-ssl.conf use own virtual host file. generated self signed ssl certificate related files described in above linked article.
i set behat site standalone installation (using composer) , in behat.yml file tried below goutte configuration no luck:
extensions: behat\minkextension: goutte: guzzle_parameters: verify: false
i same error message during testing:
curl error 60: ssl certificate problem: self signed certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) (guzzlehttp\exception\requestexception)
what problem, how ignore ssl check?
the error means hostname connecting via https using self-signed certificate instead of certificate issued trusted authority.
if connecting production website, symptom wrong destination website , may represent potential security issue. instead, if target destination known (e.g. setup hostname) , can guarantee authenticity, can ignore error.
in general, should not allow untrusted https connections.
Comments
Post a Comment