mojolicious / mojo

:sparkles: Mojolicious - Perl real-time web framework
https://mojolicious.org
Artistic License 2.0
2.66k stars 576 forks source link

SSL error for Perl/Mojolicious Apps on a Raspberry Pi 4 #1997

Open bislink opened 1 year ago

bislink commented 1 year ago

Steps to reproduce the behavior

Open https://spanel.gnani.xyz:44042 in a browser, I get error ERR_CONNECTION_RESET

Expected behavior

Should load without error just like https://spanel.gnani.xyz served by Apache2

Actual behavior

wget --spider https://spanel.gnani.xyz:44042 gives the following error:

GnuTLS: The TLS connection was non-properly terminated. 
Unable to establish SSL connection.

but the same certificate works ok for Apache2 : https://spanel.gnani.xyz

Certificate for Mojo App:

hypnotoad:
  listen:
    - 'http://*:44040'
    - 'https://*:44042?cert=certs/spanel.gnani.xyz/cert.pem&key=certs/spanel.gnani.xyz/privkey.pem'
  workers: 10

Tried changing the port, same error.

kensanata commented 1 year ago

Looks like the same issue as #1876.