Open vmitchell85 opened 1 month ago
Hey @vmitchell85! I have a couple ideas, let me give this a try.
I'm about to publish some updates for this project (been tied up with family/work).
@vmitchell85 I think I figured this out. The issue is that once compiled, it can't find the path to the system CA bundle.
The easiest way I found to solve it is to use https://github.com/composer/ca-bundle. Composer was nice enough to extract this to its own package.
Then in your app, you can use it like so:
use Composer\CaBundle\CaBundle;
Http::withOptions(['verify' => CaBundle::getSystemCaRootBundlePath()])
->get('https://api.ipify.org/');
Thanks @joecampo ... I'll give it a shot!
I have a Laravel Zero project that I've used Haulable for. The commands run, which is great, but I've gotten a error with my HTTP call.
Error Message:
Code:
To test I updated my HTTP call to use
withoutVerifying()
andwithOptions(["verify"=>false])
, recompiled, re-hauled (is that a word?), and it then runs without the SSL error.Working Code:
I would prefer to keep the SSL verification if possible.
Thanks in advance for your awesome package and your help.