Skip to content

Commit

Permalink
[Docs] recommend composer/ca-bundle instead of Kdyby/CurlCaBundle (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhujer authored and polyfractal committed Aug 10, 2017
1 parent 57b5489 commit 7f43b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/security.asciidoc
Expand Up @@ -60,14 +60,14 @@ $client = ClientBuilder::create()


If your server has out-dated root certificates, you may need to use a certificate bundle. For PHP clients, the best
way is to use https://github.com/Kdyby/CurlCaBundle[Kdyby/CurlCaBundle]. Once installed, you need to tell the client to
way is to use https://github.com/composer/ca-bundle[composer/ca-bundle]. Once installed, you need to tell the client to
use your certificates instead of the system-wide bundle. To do this, specify the path to verify:


[source,php]
----
$hosts = ['https://localhost:9200'];
$caBundle = \Kdyby\CurlCaBundle\CertificateHelper::getCaInfoFile();
$caBundle = \Composer\CaBundle\CaBundle::getBundledCaBundlePath();
$client = ClientBuilder::create()
->setHosts($hosts)
Expand Down

0 comments on commit 7f43b2e

Please sign in to comment.