-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Certificates using mkcet fail handshake #250
Comments
Okay here's the root of the error: socket/src/SecureConnector.php Line 59 in 284d72d
|
I had to update |
@mglaman Happy to hear you've got this solved already! In case somebody else stumbles upon the same problem, can you share a short snippet of how you've updated the " |
Ah, yes! Forgot to post the fix here. Here's the command I used for macOS, because Homebrew installs a second version of OpenSSL it's downloaded packages use
You just need to symlink the rootCA.pem to the capath. I did a more lengthy write up here: https://mglaman.dev/blog/php-sockets-fix-unable-complete-tls-handshake-mkcert-local-development-certificates |
I'm using DDEV to run a local API, which leverages mkcert (https://mkcert.org/) to allow valid localhost HTTPS certificates. cURL is happy with it
But I'm getting the following error when trying to connect using react/http, and I tracked the error to StreamEncryption (or so)
It looks like the promise fails here
mkcert installs certificate so that they're valid in the system trust store
The text was updated successfully, but these errors were encountered: