Open DrSchimke opened 8 years ago
Shouldn't you be using this value somewhere, like maybe in #32 ? Apparently it should be enough indeed
It would be great if this is merged, I'm using a workaround and this could be quite helpful
Can the maintainer please accept this PR? Its been open since 2016.. not cool to be honest.
For now overriding config with reflection - but honestly when the maintainer wakes up - please merge PR.
For now resorting to this:
$api = $this->getExternalContext(WebApiContext::class);
$reflection = new ReflectionObject($api);
$reflectionMethod = $reflection->getMethod('getClient');
$reflectionMethod->setAccessible(true);
$client = $reflectionMethod->invoke($api);
$reflection = new ReflectionObject($client);
$reflectionProperty = $reflection->getProperty('config');
$reflectionProperty->setAccessible(true);
$config = $reflectionProperty->getValue($client);
$config['verify'] = false;
$reflectionProperty->setValue($client, $config);
I want to be able to disable the certification verification for guzzle client