beyondcode / expose

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

Could not connect to the server. Connection to tls://us-1.sharedwithexpose.com:443 failed during TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number #387

Closed emincer closed 9 months ago

emincer commented 1 year ago

Could not connect to the server.

Connection to tls://us-1.sharedwithexpose.com:443 failed during TLS handshake: SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

This is new after Expose working flawlessly for the past week.

theoreaves commented 1 year ago

I am getting this following error: herd share Could not connect to the server. Connection to tls://us-1.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

I have not been able to get Expose to work yet. Also, in Herd, DNSMasq is not running with this error: dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use

Not sure if the two are related or not.

emincer commented 11 months ago

Bump.

I've once again run into this issue. Anybody out there??

snapey commented 11 months ago

Same. Herd reports;

~/Sites/dev/l10breeze  > herd share l10breeze
Could not connect to the server.
Connection to tls://eu-1.sharedwithexpose.com:443 failed: Last error for IPv4: Connection to tcp://81.99.162.48:443 failed: Network is unreachable (ENETUNREACH). Previous error for IPv6: Connection to tcp://[2a02:8801:200:1::1]:443 failed: No route to host (EHOSTUNREACH)

Expose (Pro) works ok


~/Sites/dev/l10breeze  > expose share l10breeze
------------------------------------------------------------
               Thank you for using Expose Pro
            Your pro features expire in 48 days
      Extend your license now: https://expose.dev/pro
------------------------------------------------------------

Shared URL:             l10breeze
Dashboard:              http://127.0.0.1:4040
Public HTTP:            http://l10breeze.eu-1.sharedwithexpose.com
Public HTTPS:           https://l10breeze.eu-1.sharedwithexpose.com
alexgarrettsmith commented 9 months ago

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

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

sschlein commented 9 months ago

Hey and sorry for the late reply, but this is the open source repository of the expose client and not related to Herd or the managed network directly, so please email our support for cases like this.

This is related to a missing php.ini configuration. Please check your Herd php.ini files and make sure that they include the certificate paths (with your user name)

curl.cainfo=/Users/seb/Library/Application Support/Herd/config/php/cacert.pem
openssl.cafile=/Users/seb/Library/Application Support/Herd/config/php/cacert.pem
UVLabs commented 7 months ago

@sschlein Is this also affected by PHP version?

When i switch to php 8.2 in Herd the link gets generated, but on php 8.3 it fails

sschlein commented 7 months ago

@UVLabs are the certificates in the php..ini of 8.3?

This sometimes also is an IPv6 problem, so if you would switch your Mac DNS to something like 1.1.1.1 (Cloudflare) or 8.8.8.8 (Google), it could also work. But that sounds wirds if it's only on one PHP version.