-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Unable to connect with STARTTLS: stream_socket_enable_crypto(): SSL operation failed with code 5 #582
Comments
Are we missing ca-certificates @dunglas... that's a pretty weird error. |
This look like the same problem as beyondcode/expose#391 (comment) (Herd also uses static-php-cli under the hood as far as I know). As the standalone binary doesn't bundle certificates, you need to point OpenSSL to your local certificates installation in your This is something that we need to document (help welcome). |
Hi, I've also run into this issue (building on mac). I need it working on cli ( I'm building by cloning the project and running:
Neither when adding a php.ini to the root of the embedded project nor adding the Any clue how I can add the |
This likely doesn't work because it's impossible to reference the PEM file because the app is decompressed in a temporary directory with a random name. Using a script to copy the PEM file in a known path (like /cacert.pem) could work as a workaround, but we need to figure out a better solution. |
Hi, I also encountered the same problem Are there any guides on how to resolve this issue? |
Here is what I think we should do:
|
@dunglas Any chance there's a workaround in the meantime until this is resolved? |
Copying the CA bundle at a known path and hardcoding this absolute path in I'll try to take a look soon. |
In case it helps anyone in the future, this caused me quite some headaches. In the end, I fixed it with these simple changes to my dockerfile:
I was very confused why |
@SimonMacIntyre thanks! Would you mind opening a docs PR about that? I'm sure this will help a lot of people. In this file for instance: https://github.com/dunglas/frankenphp/blob/main/docs/known-issues.md |
I'd be happy to! |
i have followed the documentation, to .env, Connection could not be established with host "ssl://smtp-relay.brevo.com:465": stream_socket_client(): SSL operation failed with code 5. OpenSSL Error messages: |
@ichie-benjamin your env file is not the environment, that is an application thing. You need to set that in your environment variables. |
What happened?
Not sure if this is due to FrankenPHP, but I don't have this issue using PHP-FPM. Whenever I try and send an e-mail using Laravel to Postmark, I get this. I already tried setting
MAIL_ENCRYPTION=null
, but no luck.Build Type
Standalone binary
Worker Mode
Yes
Operating System
GNU/Linux
CPU Architecture
x86_64
Relevant log output
The text was updated successfully, but these errors were encountered: