From 7f43b2e9bad61df5f6be7c0dbad2a05c85c10936 Mon Sep 17 00:00:00 2001 From: Martin Hujer Date: Thu, 10 Aug 2017 21:36:41 +0200 Subject: [PATCH] [Docs] recommend composer/ca-bundle instead of Kdyby/CurlCaBundle (#613) --- docs/security.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/security.asciidoc b/docs/security.asciidoc index b4484fbe2..f0e632acd 100644 --- a/docs/security.asciidoc +++ b/docs/security.asciidoc @@ -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)