Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: SSL certificate problem: unable to get local issuer certificate #87

Closed
mikerockett opened this issue Aug 2, 2023 · 5 comments
Closed

Comments

@mikerockett
Copy link

Operating system version

macOS Ventura 13.4 (22F66)

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.1.1

PHP Version

PHP 8.2.8 (cli) (built: Jul 28 2023 13:55:05) (NTS)

Bug description

I am running Laravel WebSockets, and when I attempt to broadcast a message from the backend, I receive this error:

cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://[REDACTED].test:6001/apps/[REDACTED]/events?auth_key=[REDACTED]&auth_timestamp=1690963814&auth_version=1.0&body_md5=[REDACTED]&auth_signature=[REDACTED]

I adjusted the installation to use the certificates that Herd uses to serve the domain, ie those that were moved across from Valet (in my case), thinking that it would solve the issue.

Steps to reproduce

No response

Relevant log output

No response

@mpociot
Copy link
Member

mpociot commented Aug 2, 2023

Could you please verify that php82 --ini points to the correct php.ini files?

@mikerockett
Copy link
Author

@mpociot Sure:

$ php82 --ini
Configuration File (php.ini) Path: /lib
Loaded Configuration File:         (none)
Scan for additional .ini files in: /Users/mikerockett/Library/Application Support/Herd/config/php/82/
Additional .ini files parsed:      /Users/mikerockett/Library/Application Support/Herd/config/php/82/php.ini

@mikerockett
Copy link
Author

mikerockett commented Aug 2, 2023

Sorry, I know what the issue is. I have kept Valet installed, and my env runner (porter) is pointing to Valet’s PHP (strange that it runs as I uninstalled all PHP versions from Homebrew).

@mpociot mpociot closed this as completed Aug 2, 2023
@mikerockett
Copy link
Author

mikerockett commented Aug 2, 2023

@mpociot Still getting the error after switching to Herd’s PHP.

Frontend (Vue SPA) is able to connect. It's just the backend that cannot send broadcasts. To be sure, I tested running the server outside of porter (ie directly running websockets:serve), and no difference.

I somehow feel like this is a configuration issue on my end (perhaps related to previous installs, or Valet, or something like that).

@mikerockett
Copy link
Author

@mpociot I've disabled client_options.verify in broadcasting for the time being. But not sure how to fix this – might try find some time this weekend to dig a bit more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants