File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,14 +60,14 @@ $client = ClientBuilder::create()
60
60
61
61
62
62
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
64
64
use your certificates instead of the system-wide bundle. To do this, specify the path to verify:
65
65
66
66
67
67
[source,php]
68
68
----
69
69
$hosts = ['https://localhost:9200'];
70
- $caBundle = \Kdyby\CurlCaBundle\CertificateHelper::getCaInfoFile ();
70
+ $caBundle = \Composer\CaBundle\CaBundle::getBundledCaBundlePath ();
71
71
72
72
$client = ClientBuilder::create()
73
73
->setHosts($hosts)
You can’t perform that action at this time.
0 commit comments