Skip to content

Commit ec48ecd

Browse files
mhujerp365labs
authored andcommitted
[Docs] recommend composer/ca-bundle instead of Kdyby/CurlCaBundle (elastic#613)
1 parent 617ce60 commit ec48ecd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/security.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ $client = ClientBuilder::create()
6060

6161

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

6666

6767
[source,php]
6868
----
6969
$hosts = ['https://localhost:9200'];
70-
$caBundle = \Kdyby\CurlCaBundle\CertificateHelper::getCaInfoFile();
70+
$caBundle = \Composer\CaBundle\CaBundle::getBundledCaBundlePath();
7171
7272
$client = ClientBuilder::create()
7373
->setHosts($hosts)

0 commit comments

Comments
 (0)