beyondcode / expose

A beautiful, fully open-source, tunneling service - written in pure PHP
https://expose.dev
MIT License
4.24k stars 262 forks source link

Could not connect to server error:80000002 #391

Closed scottybo closed 10 months ago

scottybo commented 1 year ago

Hi guys,

I'm getting this error when attempting to run herd share or when running expose share https://mylocalurl.test

Could not connect to the server.
Connection to tls://sharedwithexpose.com:443 failed during TLS handshake: SSL operation failed with code 5. OpenSSL Error messages: error:80000002:system library::No such file or directory error:80000002:system library::No such file or directory error:80000002:system library::No such file or directory error:80000002:system library::No such file or directory error:0A000086:SSL routines::certificate verify failed
kovalmatej commented 1 year ago

Hi guys,

I'm getting this error when attempting to run herd share or when running expose share https://mylocalurl.test

Could not connect to the server.
Connection to tls://sharedwithexpose.com:443 failed during TLS handshake: SSL operation failed with code 5. OpenSSL Error messages: error:80000002:system library::No such file or directory error:80000002:system library::No such file or directory error:80000002:system library::No such file or directory error:80000002:system library::No such file or directory error:0A000086:SSL routines::certificate verify failed

Have you solved this?

lhilton commented 11 months ago

@scottybo and @kovalmatej did you ever resolve this? I'm seeing the same error.

alexgarrettsmith commented 11 months ago

I just wrote up what solved a similar issue for me. Hope this helps.

https://github.com/beyondcode/expose/discussions/399

thoresuenert commented 10 months ago

in the following blog post in the section "Managing PHP settings" a few envs are written to the config files,https://beyondco.de/blog/announcing-laravel-herd

Please check if those envs are written to your configs. That is the main cause of the problem.

sschlein commented 10 months ago

I am so sorry that we haven't addressed this yet but this is the open source repository of Expose and unrelated to herd or the managed Expose network.

The problem happens when the path to your certificates is wrong or missing from your php.ini. Please check your Herd php.ini and make sure that these lines (with your username!) are in there and point to the correct files:

curl.cainfo=/Users/seb/Library/Application Support/Herd/config/php/cacert.pem
openssl.cafile=/Users/seb/Library/Application Support/Herd/config/php/cacert.pem